veryfront 0.1.629 → 0.1.630

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.
Files changed (36) hide show
  1. package/esm/cli/commands/worker/command-help.d.ts.map +1 -1
  2. package/esm/cli/commands/worker/command-help.js +0 -5
  3. package/esm/cli/commands/worker/command.d.ts.map +1 -1
  4. package/esm/cli/commands/worker/command.js +0 -6
  5. package/esm/cli/commands/worker/handler.js +1 -1
  6. package/esm/deno.d.ts +6 -0
  7. package/esm/deno.js +11 -5
  8. package/esm/src/platform/adapters/veryfront-api-client/operations.d.ts +2 -2
  9. package/esm/src/platform/adapters/veryfront-api-client/operations.d.ts.map +1 -1
  10. package/esm/src/platform/adapters/veryfront-api-client/operations.js +2 -2
  11. package/esm/src/platform/adapters/veryfront-api-client/schemas/api.schema.d.ts +1 -1
  12. package/esm/src/platform/adapters/veryfront-api-client/schemas/api.schema.js +1 -1
  13. package/esm/src/server/handlers/request/project-run-execute.handler.d.ts +74 -0
  14. package/esm/src/server/handlers/request/project-run-execute.handler.d.ts.map +1 -0
  15. package/esm/src/server/handlers/request/project-run-execute.handler.js +460 -0
  16. package/esm/src/server/runtime-handler/index.d.ts +1 -1
  17. package/esm/src/server/runtime-handler/index.d.ts.map +1 -1
  18. package/esm/src/server/runtime-handler/index.js +3 -0
  19. package/esm/src/utils/version-constant.d.ts +1 -1
  20. package/esm/src/utils/version-constant.js +1 -1
  21. package/esm/src/workflow/worker/executors/index.d.ts +0 -2
  22. package/esm/src/workflow/worker/executors/index.d.ts.map +1 -1
  23. package/esm/src/workflow/worker/executors/index.js +0 -2
  24. package/esm/src/workflow/worker/executors/types.d.ts +7 -17
  25. package/esm/src/workflow/worker/executors/types.d.ts.map +1 -1
  26. package/esm/src/workflow/worker/executors/types.js +0 -1
  27. package/esm/src/workflow/worker/index.d.ts +3 -9
  28. package/esm/src/workflow/worker/index.d.ts.map +1 -1
  29. package/esm/src/workflow/worker/index.js +3 -9
  30. package/esm/src/workflow/worker/run-manager.d.ts +1 -16
  31. package/esm/src/workflow/worker/run-manager.d.ts.map +1 -1
  32. package/esm/src/workflow/worker/run-manager.js +2 -19
  33. package/package.json +1 -1
  34. package/esm/src/workflow/worker/executors/k8s.d.ts +0 -157
  35. package/esm/src/workflow/worker/executors/k8s.d.ts.map +0 -1
  36. package/esm/src/workflow/worker/executors/k8s.js +0 -198
@@ -1 +1 @@
1
- {"version":3,"file":"command-help.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/worker/command-help.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,eAAO,MAAM,UAAU,EAAE,WA8CxB,CAAC"}
1
+ {"version":3,"file":"command-help.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/worker/command-help.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,eAAO,MAAM,UAAU,EAAE,WAyCxB,CAAC"}
@@ -24,11 +24,6 @@ export const workerHelp = {
24
24
  description: "Time before a run is considered stalled",
25
25
  default: "60000",
26
26
  },
27
- {
28
- flag: "-e, --executor <type>",
29
- description: "Run executor type (process | k8s)",
30
- default: "process",
31
- },
32
27
  {
33
28
  flag: "--entrypoint <path>",
34
29
  description: "Path to workflow run entrypoint script",
@@ -1 +1 @@
1
- {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/worker/command.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,WAAW,aAAc,SAAQ,UAAU;CAAG;AAEpD,wBAAsB,aAAa,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAmGzE"}
1
+ {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/worker/command.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,WAAW,aAAc,SAAQ,UAAU;CAAG;AAEpD,wBAAsB,aAAa,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CA0FzE"}
@@ -30,12 +30,6 @@ export async function workerCommand(options) {
30
30
  // It reads WORKFLOW_RUN_ID + TENANT_* env vars, discovers workflows
31
31
  // from the user's project, and executes the matching one.
32
32
  const entrypointPath = options.entrypoint ?? "./workflow-run.ts";
33
- if (options.executor === "k8s") {
34
- cliLogger.error("K8s executor requires custom configuration. Use --executor process for local dev, " +
35
- "or configure K8sRunExecutor programmatically for production.");
36
- exitProcess(1);
37
- return;
38
- }
39
33
  const executor = new ProcessRunExecutor({
40
34
  entrypointPath,
41
35
  env: {
@@ -5,7 +5,7 @@ const getWorkerArgsSchema = defineSchema((v) => v.object({
5
5
  concurrency: v.number().default(3),
6
6
  pollInterval: v.number().default(5000),
7
7
  stalledThreshold: v.number().default(60000),
8
- executor: v.enum(["process", "k8s"]).default("process"),
8
+ executor: v.enum(["process"]).default("process"),
9
9
  entrypoint: v.string().optional(),
10
10
  debug: v.boolean().default(false),
11
11
  }));
package/esm/deno.d.ts CHANGED
@@ -216,6 +216,10 @@ declare namespace _default {
216
216
  "#veryfront/platform/": string;
217
217
  "#veryfront/components": string;
218
218
  "#veryfront/": string;
219
+ "#cli/commands/files/command": string;
220
+ "#cli/commands/knowledge/command": string;
221
+ "#cli/commands/knowledge/result": string;
222
+ "#cli/commands/uploads/command": string;
219
223
  "#deno-config": string;
220
224
  "std/": string;
221
225
  "#std/path": string;
@@ -296,6 +300,8 @@ declare namespace _default {
296
300
  "test:coverage:unit": string;
297
301
  "test:coverage:integration": string;
298
302
  "coverage:report": string;
303
+ "coverage:gate": string;
304
+ "coverage:ci": string;
299
305
  "coverage:html": string;
300
306
  bench: string;
301
307
  clean: string;
package/esm/deno.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "name": "veryfront",
3
- "version": "0.1.629",
3
+ "version": "0.1.630",
4
4
  "license": "Apache-2.0",
5
5
  "nodeModulesDir": "auto",
6
6
  "workspace": [
@@ -244,6 +244,10 @@ export default {
244
244
  "#veryfront/platform/": "./src/platform/",
245
245
  "#veryfront/components": "./src/react/components/index.ts",
246
246
  "#veryfront/": "./src/",
247
+ "#cli/commands/files/command": "./cli/commands/files/command.ts",
248
+ "#cli/commands/knowledge/command": "./cli/commands/knowledge/command.ts",
249
+ "#cli/commands/knowledge/result": "./cli/commands/knowledge/result.ts",
250
+ "#cli/commands/uploads/command": "./cli/commands/uploads/command.ts",
247
251
  "#deno-config": "./deno.json",
248
252
  "std/": "jsr:@std/",
249
253
  "#std/path": "jsr:@std/path",
@@ -326,10 +330,12 @@ export default {
326
330
  "test:integration": "deno task generate && VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --preload=src/schemas/_test-setup.ts --no-check --parallel --allow-all '--ignore=tests/e2e,tests/integration/compiled-binary-e2e.test.ts' tests --unstable-worker-options --unstable-net",
327
331
  "test:integration:cli": "VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --parallel --allow-all --unstable-worker-options --unstable-net $(find cli -name '*.integration.test.ts')",
328
332
  "test:record": "VCR=record deno test --no-check --allow-all $(find cli -name '*.integration.test.ts' -path '*/commands/*')",
329
- "test:coverage": "rm -rf coverage && VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --parallel --fail-fast --allow-all --coverage=coverage '--ignore=tests/integration/compiled-binary-e2e.test.ts' --unstable-worker-options --unstable-net || exit 1",
330
- "test:coverage:unit": "rm -rf coverage && VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --parallel --fail-fast --allow-all --coverage=coverage '--ignore=tests,src/workflow/__tests__' --unstable-worker-options --unstable-net $(find src cli -name '*.test.ts' ! -name '*.integration.test.ts') || exit 1",
331
- "test:coverage:integration": "rm -rf coverage && VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --no-check --parallel --fail-fast --allow-all --coverage=coverage '--ignore=tests/e2e,tests/integration/compiled-binary-e2e.test.ts' tests --unstable-worker-options --unstable-net || exit 1",
333
+ "test:coverage": "rm -rf coverage && deno task generate && VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --preload=src/schemas/_test-setup.ts --no-check --parallel --fail-fast --allow-all --v8-flags=--max-old-space-size=8192 --coverage=coverage '--ignore=tests/integration/compiled-binary-e2e.test.ts' --unstable-worker-options --unstable-net || exit 1",
334
+ "test:coverage:unit": "rm -rf coverage && deno task generate && VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --preload=src/schemas/_test-setup.ts --no-check --parallel --fail-fast --allow-all --v8-flags=--max-old-space-size=8192 --coverage=coverage '--ignore=tests,src/workflow/__tests__' --unstable-worker-options --unstable-net $(find src cli -name '*.test.ts' ! -name '*.integration.test.ts') || exit 1",
335
+ "test:coverage:integration": "rm -rf coverage && deno task generate && VF_DISABLE_LRU_INTERVAL=1 SSR_TRANSFORM_PER_PROJECT_LIMIT=0 REVALIDATION_PER_PROJECT_LIMIT=0 NODE_ENV=production LOG_FORMAT=text deno test --preload=src/schemas/_test-setup.ts --no-check --parallel --fail-fast --allow-all --v8-flags=--max-old-space-size=8192 --coverage=coverage '--ignore=tests/e2e,tests/integration/compiled-binary-e2e.test.ts' tests --unstable-worker-options --unstable-net || exit 1",
332
336
  "coverage:report": "deno coverage coverage --include=src/ --exclude=tests '--exclude=src/**/*_test.ts' '--exclude=src/**/*_test.tsx' '--exclude=src/**/*.test.ts' '--exclude=src/**/*.test.tsx' --lcov > coverage/lcov.info && deno run --allow-read scripts/lint/check-coverage.ts 80",
337
+ "coverage:gate": "deno coverage coverage --include=src/ --exclude=tests '--exclude=src/**/*_test.ts' '--exclude=src/**/*_test.tsx' '--exclude=src/**/*.test.ts' '--exclude=src/**/*.test.tsx' --lcov > coverage/lcov.info && deno run --allow-read scripts/lint/check-coverage.ts 68",
338
+ "coverage:ci": "deno task test:coverage:unit && deno task coverage:gate",
333
339
  "coverage:html": "deno coverage coverage --include=src/ --exclude=tests '--exclude=src/**/*_test.ts' '--exclude=src/**/*_test.tsx' '--exclude=src/**/*.test.ts' '--exclude=src/**/*.test.tsx' --html",
334
340
  "bench": "VF_DISABLE_LRU_INTERVAL=1 NODE_ENV=production LOG_FORMAT=text deno bench --no-check --allow-all --unstable-worker-options --unstable-net $(find src -name '*.bench.ts')",
335
341
  "clean": "rm -rf .cache/",
@@ -366,7 +372,7 @@ export default {
366
372
  "lint:ban-test-only": "deno run --allow-read scripts/lint/ban-test-only.ts",
367
373
  "lint:sanitizer-baseline": "deno run --allow-read scripts/lint/check-sanitizer-baseline.ts",
368
374
  "lint:skipped-tests": "deno run --allow-read scripts/lint/check-skipped-tests-baseline.ts",
369
- "test:scripts": "deno test --config=scripts/test.deno.json --no-check --allow-read --allow-write --allow-run scripts/build/generate-sbom.test.ts scripts/build/npm-dependency-sources.test.ts scripts/build/npm-package-metadata.test.ts scripts/build/npm-react-shims.test.ts scripts/docs/docs-coverage.test.ts scripts/docs/generate-api-reference.test.ts scripts/docs/guide-validation.test.ts scripts/lint/audit-core-deps.test.ts scripts/lint/audit-dependency-boundaries.test.ts scripts/lint/audit-extension-capabilities.test.ts scripts/lint/audit-extension-contracts.test.ts scripts/lint/audit-deps.test.ts scripts/lint/check-circular-baseline.test.ts scripts/lint/ban-test-only.test.ts scripts/lint/check-sanitizer-baseline.test.ts scripts/lint/check-skipped-tests-baseline.test.ts scripts/security/audit-npm.test.ts scripts/security/submit-dependency-snapshot.test.ts",
375
+ "test:scripts": "deno test --config=scripts/test.deno.json --no-check --allow-read --allow-write --allow-run scripts/build/generate-sbom.test.ts scripts/build/npm-dependency-sources.test.ts scripts/build/npm-package-metadata.test.ts scripts/build/npm-react-shims.test.ts scripts/docs/docs-coverage.test.ts scripts/docs/generate-api-reference.test.ts scripts/docs/guide-validation.test.ts scripts/lint/audit-core-deps.test.ts scripts/lint/audit-dependency-boundaries.test.ts scripts/lint/audit-extension-capabilities.test.ts scripts/lint/audit-extension-contracts.test.ts scripts/lint/audit-deps.test.ts scripts/lint/check-circular-baseline.test.ts scripts/lint/ban-test-only.test.ts scripts/lint/check-sanitizer-baseline.test.ts scripts/lint/check-skipped-tests-baseline.test.ts scripts/lint/check-coverage.test.ts scripts/security/audit-npm.test.ts scripts/security/submit-dependency-snapshot.test.ts",
370
376
  "test:cross-runtime": "deno run --allow-all src/platform/compat/cross-runtime.test.ts",
371
377
  "test:node": "node ./tests/node/run-tests.mjs 'src/**/*.test.ts'",
372
378
  "test:bun": "node ./tests/bun/run-tests.mjs src/",
@@ -43,7 +43,7 @@ export interface UpsertStyleArtifactInput extends ResolveStyleArtifactInput {
43
43
  assetPath?: string;
44
44
  contentType?: string;
45
45
  etag?: string;
46
- buildRunExecutionId?: string;
46
+ buildRunId?: string;
47
47
  failureReason?: string;
48
48
  }
49
49
  export interface ProjectStyleArtifactResolution {
@@ -52,7 +52,7 @@ export interface ProjectStyleArtifactResolution {
52
52
  assetPath?: string;
53
53
  etag?: string;
54
54
  contentType?: string;
55
- buildRunExecutionId?: string;
55
+ buildRunId?: string;
56
56
  failureReason?: string;
57
57
  updatedAt?: string;
58
58
  }
@@ -1 +1 @@
1
- {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../../src/src/platform/adapters/veryfront-api-client/operations.ts"],"names":[],"mappings":"AACA,OAAO,EAAyC,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAE7F,OAAO,EAWL,KAAK,oBAAoB,EACzB,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,WAAW,EACjB,MAAM,oBAAoB,CAAC;AAQ5B,MAAM,MAAM,aAAa,GAAG,MAAM,MAAM,CAAC;AAEzC,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC;IAC/B,SAAS,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,SAAS,EAAE,QAAQ,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MA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,EAAE,MAAM,GACf,OAAO,CAAC,UAAU,CAAC;IA+BhB,gBAAgB,CACpB,UAAU,EAAE,MAAM,EAClB,OAAO,SAAW,EAClB,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,cAAc,CAAC;IAkBpB,mBAAmB,CACvB,UAAU,EAAE,MAAM,EAClB,OAAO,SAAW,EAClB,OAAO,GAAE,IAAI,CAAC,gBAAgB,EAAE,QAAQ,CAAM,GAC7C,OAAO,CAAC,WAAW,EAAE,CAAC;IAMzB,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IA+B1F,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IA2CrE,oBAAoB,CACxB,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,yBAAyB,GAC/B,OAAO,CAAC,8BAA8B,CAAC;IAcpC,wBAAwB,CAC5B,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,6BAA6B,GACnC,OAAO,CAAC,8BAA8B,CAAC;IA4BpC,mBAAmB,CACvB,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,wBAAwB,GAC9B,OAAO,CAAC,8BAA8B,CAAC;IAmC1C,OAAO,CAAC,OAAO;CAahB"}
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../../src/src/platform/adapters/veryfront-api-client/operations.ts"],"names":[],"mappings":"AACA,OAAO,EAAyC,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAE7F,OAAO,EAWL,KAAK,oBAAoB,EACzB,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,WAAW,EACjB,MAAM,oBAAoB,CAAC;AAQ5B,MAAM,MAAM,aAAa,GAAG,MAAM,MAAM,CAAC;AAEzC,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC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2CrE,oBAAoB,CACxB,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,yBAAyB,GAC/B,OAAO,CAAC,8BAA8B,CAAC;IAcpC,wBAAwB,CAC5B,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,6BAA6B,GACnC,OAAO,CAAC,8BAA8B,CAAC;IA4BpC,mBAAmB,CACvB,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,wBAAwB,GAC9B,OAAO,CAAC,8BAA8B,CAAC;IAmC1C,OAAO,CAAC,OAAO;CAahB"}
@@ -54,7 +54,7 @@ function mapStyleArtifactResolution(raw) {
54
54
  assetPath: response.asset_path,
55
55
  etag: response.etag,
56
56
  contentType: response.content_type,
57
- buildRunExecutionId: response.build_run_execution_id,
57
+ buildRunId: response.build_run_id,
58
58
  failureReason: response.failure_reason,
59
59
  updatedAt: response.updated_at,
60
60
  };
@@ -348,7 +348,7 @@ export class VeryfrontAPIOperations {
348
348
  asset_path: input.assetPath,
349
349
  content_type: input.contentType,
350
350
  etag: input.etag,
351
- build_run_execution_id: input.buildRunExecutionId,
351
+ build_run_id: input.buildRunId,
352
352
  failure_reason: input.failureReason,
353
353
  }),
354
354
  }));
@@ -400,7 +400,7 @@ export declare const getStyleArtifactResolveResponseSchema: () => import("../../
400
400
  asset_path: import("../../../../internal-agents/schema.js").Schema<string | undefined>;
401
401
  etag: import("../../../../internal-agents/schema.js").Schema<string | undefined>;
402
402
  content_type: import("../../../../internal-agents/schema.js").Schema<string | undefined>;
403
- build_run_execution_id: import("../../../../internal-agents/schema.js").Schema<string | undefined>;
403
+ build_run_id: import("../../../../internal-agents/schema.js").Schema<string | undefined>;
404
404
  failure_reason: import("../../../../internal-agents/schema.js").Schema<string | undefined>;
405
405
  updated_at: import("../../../../internal-agents/schema.js").Schema<string | undefined>;
406
406
  }>>;
@@ -139,7 +139,7 @@ export const getStyleArtifactResolveResponseSchema = defineSchema((v) => v.objec
139
139
  asset_path: v.string().optional(),
140
140
  etag: v.string().optional(),
141
141
  content_type: v.string().optional(),
142
- build_run_execution_id: v.string().uuid().optional(),
142
+ build_run_id: v.string().optional(),
143
143
  failure_reason: v.string().optional(),
144
144
  updated_at: v.string().optional(),
145
145
  }));
@@ -0,0 +1,74 @@
1
+ import type { RuntimeAdapter } from "../../../platform/index.js";
2
+ import type { VeryfrontConfig } from "../../../config/index.js";
3
+ import { type DiscoveredTask } from "../../../task/discovery.js";
4
+ import { type RunTaskOptions, type TaskRunResult } from "../../../task/runner.js";
5
+ import { type DiscoveredWorkflow } from "../../../workflow/discovery/index.js";
6
+ import type { HandlerContext, HandlerMetadata, HandlerResult } from "../types.js";
7
+ import { BaseHandler } from "../response/base.js";
8
+ export interface ProjectRunExecuteRequest {
9
+ runId: string;
10
+ kind: "task" | "workflow";
11
+ target: string;
12
+ projectId: string;
13
+ config?: Record<string, unknown>;
14
+ input?: Record<string, unknown>;
15
+ }
16
+ export interface ProjectRunExecuteResponse {
17
+ success: boolean;
18
+ result?: unknown;
19
+ logs?: string | null;
20
+ error?: string | null;
21
+ duration_ms?: number;
22
+ artifacts?: unknown[];
23
+ }
24
+ interface WorkflowRunView {
25
+ status: string;
26
+ output?: unknown;
27
+ error?: {
28
+ message?: string;
29
+ } | null;
30
+ }
31
+ interface WorkflowClientView {
32
+ readonly statePersistence?: "durable" | "ephemeral";
33
+ register(workflow: unknown): void;
34
+ start(workflowId: string, input: unknown, options?: {
35
+ runId?: string;
36
+ }): Promise<{
37
+ runId: string;
38
+ }>;
39
+ getRun(runId: string): Promise<WorkflowRunView | null>;
40
+ destroy(): Promise<void>;
41
+ }
42
+ export interface ProjectRunExecuteHandlerDeps {
43
+ findTaskById(taskId: string, options: {
44
+ projectDir: string;
45
+ adapter: RuntimeAdapter;
46
+ config?: VeryfrontConfig;
47
+ debug?: boolean;
48
+ }): Promise<DiscoveredTask | null>;
49
+ runTask(options: RunTaskOptions): Promise<TaskRunResult>;
50
+ findWorkflowById(workflowId: string, options: {
51
+ projectDir: string;
52
+ adapter: RuntimeAdapter;
53
+ config?: VeryfrontConfig;
54
+ debug?: boolean;
55
+ }): Promise<DiscoveredWorkflow | null>;
56
+ createWorkflowClient(config?: {
57
+ debug?: boolean;
58
+ }): WorkflowClientView | Promise<WorkflowClientView>;
59
+ executeKnowledgeIngest(input: {
60
+ request: ProjectRunExecuteRequest;
61
+ ctx: HandlerContext;
62
+ req: Request;
63
+ }): Promise<ProjectRunExecuteResponse>;
64
+ sleep(ms: number): Promise<void>;
65
+ now(): number;
66
+ }
67
+ export declare class ProjectRunExecuteHandler extends BaseHandler {
68
+ private readonly deps;
69
+ metadata: HandlerMetadata;
70
+ constructor(deps?: ProjectRunExecuteHandlerDeps);
71
+ handle(req: Request, ctx: HandlerContext): Promise<HandlerResult>;
72
+ }
73
+ export {};
74
+ //# sourceMappingURL=project-run-execute.handler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project-run-execute.handler.d.ts","sourceRoot":"","sources":["../../../../../src/src/server/handlers/request/project-run-execute.handler.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAEjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,KAAK,cAAc,EAAgB,MAAM,4BAA4B,CAAC;AAC/E,OAAO,EAAW,KAAK,cAAc,EAAE,KAAK,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE3F,OAAO,EAAE,KAAK,kBAAkB,EAAoB,MAAM,sCAAsC,CAAC;AAEjG,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAmB,aAAa,EAAE,MAAM,aAAa,CAAC;AACnG,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AASlD,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,GAAG,UAAU,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAA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