@interf/compiler 0.7.2 → 0.9.1
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/README.md +141 -99
- package/TRADEMARKS.md +1 -1
- package/agent-skills/interf-actions/SKILL.md +71 -0
- package/agent-skills/interf-actions/references/cli.md +190 -0
- package/apps/compiler-ui/.next/server/app/index.html +1 -0
- package/apps/compiler-ui/.next/static/XWKL548yXD_UOG4ID9G3J/_buildManifest.js +11 -0
- package/apps/compiler-ui/.next/static/XWKL548yXD_UOG4ID9G3J/_clientMiddlewareManifest.js +1 -0
- package/apps/compiler-ui/.next/static/XWKL548yXD_UOG4ID9G3J/_ssgManifest.js +1 -0
- package/apps/compiler-ui/.next/static/chunks/03~yq9q893hmn.js +1 -0
- package/apps/compiler-ui/.next/static/chunks/06z~l3kwb891e.js +1 -0
- package/apps/compiler-ui/.next/static/chunks/08g7lvje.te.u.js +1 -0
- package/apps/compiler-ui/.next/static/chunks/08m7vf5asqlsm.js +91 -0
- package/apps/compiler-ui/.next/static/chunks/0_i-3_5l9t2qe.js +1 -0
- package/apps/compiler-ui/.next/static/chunks/0b-ywny_j0g~0.js +1 -0
- package/apps/compiler-ui/.next/static/chunks/0b52v41o1gixx.js +1 -0
- package/apps/compiler-ui/.next/static/chunks/0fgt_8knmicoz.js +124 -0
- package/apps/compiler-ui/.next/static/chunks/0gpzgsv0w.q~m.js +31 -0
- package/apps/compiler-ui/.next/static/chunks/0ilwfezfvu6~-.js +1 -0
- package/apps/compiler-ui/.next/static/chunks/0n51hrfoufc7g.js +1 -0
- package/apps/compiler-ui/.next/static/chunks/0ti_66mx7~w2-.js +5 -0
- package/apps/compiler-ui/.next/static/chunks/0xxmf45eskdt~.css +1 -0
- package/apps/compiler-ui/.next/static/chunks/0y5z3t-z1c8ks.js.map +5 -0
- package/apps/compiler-ui/.next/static/chunks/13g~4mamjft.c.css +3 -0
- package/apps/compiler-ui/.next/static/chunks/14wtz~vq25~qq.js +1 -0
- package/apps/compiler-ui/.next/static/chunks/turbopack-109rtik40vwh5.js +1 -0
- package/apps/compiler-ui/.next/static/chunks/turbopack-10e~t1yzi4svj.js +1 -0
- package/apps/compiler-ui/.next/static/chunks/turbopack-worker-0sjn--fhq~1cg.js +1 -0
- package/apps/compiler-ui/.next/static/media/GeistMono_Variable.p.17jn9btb_52pq.woff2 +0 -0
- package/apps/compiler-ui/.next/static/media/Geist_Variable-s.p.0-te~ja_gpvcf.woff2 +0 -0
- package/apps/compiler-ui/.next/static/media/worker.102zas1s52_pf.js +109 -0
- package/builtin-workflows/interf/README.md +8 -8
- package/builtin-workflows/interf/compile/stages/shape/SKILL.md +6 -6
- package/builtin-workflows/interf/compile/stages/structure/SKILL.md +1 -1
- package/builtin-workflows/interf/improve/SKILL.md +2 -2
- package/builtin-workflows/interf/use/query/SKILL.md +2 -2
- package/builtin-workflows/interf/workflow.json +9 -9
- package/builtin-workflows/interf/workflow.schema.json +2 -2
- package/dist/cli/commands/check-draft.d.ts +5 -4
- package/dist/cli/commands/check-draft.js +18 -17
- package/dist/cli/commands/compile-controller.d.ts +3 -0
- package/dist/cli/commands/compile-controller.js +53 -45
- package/dist/cli/commands/compile.js +83 -27
- package/dist/cli/commands/compiled-flow.d.ts +3 -0
- package/dist/cli/commands/compiled-flow.js +9 -7
- package/dist/cli/commands/control-path.d.ts +11 -0
- package/dist/cli/commands/control-path.js +72 -0
- package/dist/cli/commands/create-workflow-wizard.d.ts +12 -0
- package/dist/cli/commands/create-workflow-wizard.js +232 -66
- package/dist/cli/commands/create.js +70 -46
- package/dist/cli/commands/default.js +5 -3
- package/dist/cli/commands/doctor.js +5 -5
- package/dist/cli/commands/executor-flow.js +1 -1
- package/dist/cli/commands/init.js +362 -101
- package/dist/cli/commands/list.js +8 -7
- package/dist/cli/commands/preparation-selection.d.ts +6 -0
- package/dist/cli/commands/preparation-selection.js +11 -0
- package/dist/cli/commands/reset.js +3 -3
- package/dist/cli/commands/source-config-wizard.d.ts +4 -4
- package/dist/cli/commands/source-config-wizard.js +175 -200
- package/dist/cli/commands/status.js +116 -8
- package/dist/cli/commands/test-flow.d.ts +1 -1
- package/dist/cli/commands/test-flow.js +35 -33
- package/dist/cli/commands/test.d.ts +4 -0
- package/dist/cli/commands/test.js +95 -58
- package/dist/cli/commands/verify.js +7 -7
- package/dist/cli/commands/web.d.ts +11 -0
- package/dist/cli/commands/web.js +373 -0
- package/dist/cli/index.d.ts +2 -1
- package/dist/cli/index.js +3 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.js +3 -1
- package/dist/packages/agents/lib/execution.js +4 -2
- package/dist/packages/agents/lib/executors.d.ts +1 -0
- package/dist/packages/agents/lib/executors.js +1 -0
- package/dist/packages/agents/lib/render.d.ts +2 -2
- package/dist/packages/agents/lib/render.js +10 -9
- package/dist/packages/agents/lib/shells.d.ts +3 -11
- package/dist/packages/agents/lib/shells.js +58 -106
- package/dist/packages/agents/lib/types.d.ts +1 -0
- package/dist/packages/compiler/compiled-paths.d.ts +4 -1
- package/dist/packages/compiler/compiled-paths.js +8 -2
- package/dist/packages/compiler/compiled-pipeline.d.ts +7 -0
- package/dist/packages/compiler/compiled-pipeline.js +15 -4
- package/dist/packages/compiler/compiled-schema.js +1 -1
- package/dist/packages/compiler/compiled-stage-plan.d.ts +2 -2
- package/dist/packages/compiler/compiled-stage-plan.js +4 -4
- package/dist/packages/compiler/compiled-stage-runner.d.ts +5 -0
- package/dist/packages/compiler/compiled-stage-runner.js +50 -2
- package/dist/packages/compiler/compiled-target.d.ts +1 -1
- package/dist/packages/compiler/compiled-target.js +2 -2
- package/dist/packages/compiler/lib/schema.d.ts +161 -1
- package/dist/packages/compiler/lib/schema.js +87 -1
- package/dist/packages/compiler/raw-snapshot.d.ts +9 -2
- package/dist/packages/compiler/runtime-acceptance.js +1 -1
- package/dist/packages/compiler/runtime-contracts.js +2 -2
- package/dist/packages/compiler/runtime-prompt.js +7 -7
- package/dist/packages/compiler/runtime-reconcile.js +3 -3
- package/dist/packages/compiler/runtime-runs.js +3 -0
- package/dist/packages/compiler/runtime-types.d.ts +1 -0
- package/dist/packages/compiler/state-health.js +1 -1
- package/dist/packages/compiler/state-view.js +2 -2
- package/dist/packages/compiler/validate-compiled.js +11 -9
- package/dist/packages/execution/adapters.d.ts +15 -0
- package/dist/packages/execution/adapters.js +1 -0
- package/dist/packages/execution/events.d.ts +8 -0
- package/dist/packages/execution/events.js +16 -0
- package/dist/packages/execution/index.d.ts +9 -0
- package/dist/packages/execution/index.js +6 -0
- package/dist/packages/execution/lib/schema.d.ts +1554 -0
- package/dist/packages/execution/lib/schema.js +319 -0
- package/dist/packages/local-service/action-values.d.ts +23 -0
- package/dist/packages/local-service/action-values.js +31 -0
- package/dist/packages/local-service/client.d.ts +119 -0
- package/dist/packages/local-service/client.js +356 -0
- package/dist/packages/local-service/index.d.ts +15 -0
- package/dist/packages/local-service/index.js +11 -0
- package/dist/packages/local-service/lib/schema.d.ts +7355 -0
- package/dist/packages/local-service/lib/schema.js +636 -0
- package/dist/packages/local-service/routes.d.ts +27 -0
- package/dist/packages/local-service/routes.js +32 -0
- package/dist/packages/local-service/runtime.d.ts +134 -0
- package/dist/packages/local-service/runtime.js +2841 -0
- package/dist/packages/local-service/server.d.ts +17 -0
- package/dist/packages/local-service/server.js +572 -0
- package/dist/packages/project-model/index.d.ts +2 -1
- package/dist/packages/project-model/index.js +1 -0
- package/dist/packages/project-model/interf-detect.d.ts +6 -2
- package/dist/packages/project-model/interf-detect.js +48 -19
- package/dist/packages/project-model/interf-scaffold.d.ts +1 -0
- package/dist/packages/project-model/interf-scaffold.js +39 -17
- package/dist/packages/project-model/interf.d.ts +2 -2
- package/dist/packages/project-model/interf.js +2 -2
- package/dist/packages/project-model/lib/schema.d.ts +80 -6
- package/dist/packages/project-model/lib/schema.js +29 -19
- package/dist/packages/project-model/project-paths.d.ts +3 -1
- package/dist/packages/project-model/project-paths.js +6 -2
- package/dist/packages/project-model/source-config.d.ts +25 -11
- package/dist/packages/project-model/source-config.js +152 -82
- package/dist/packages/project-model/source-folders.d.ts +11 -0
- package/dist/packages/project-model/source-folders.js +110 -0
- package/dist/packages/testing/test-execution.js +5 -5
- package/dist/packages/testing/test-paths.js +4 -3
- package/dist/packages/workflow-authoring/workflow-authoring.d.ts +4 -6
- package/dist/packages/workflow-authoring/workflow-authoring.js +46 -85
- package/dist/packages/workflow-authoring/workflow-edit-session.d.ts +2 -0
- package/dist/packages/workflow-authoring/workflow-edit-session.js +83 -49
- package/dist/packages/workflow-authoring/workflow-improvement.js +2 -1
- package/dist/packages/workflow-package/context-interface.js +2 -2
- package/dist/packages/workflow-package/interf-workflow-package.d.ts +6 -0
- package/dist/packages/workflow-package/interf-workflow-package.js +115 -8
- package/dist/packages/workflow-package/local-workflows.js +33 -17
- package/dist/packages/workflow-package/workflow-definitions.d.ts +5 -5
- package/dist/packages/workflow-package/workflow-definitions.js +23 -22
- package/dist/packages/workflow-package/workflow-helpers.js +10 -6
- package/dist/packages/workflow-package/workflow-review-paths.js +5 -1
- package/dist/packages/workflow-package/workflow-stage-runner.d.ts +1 -0
- package/dist/packages/workflow-package/workflow-stage-runner.js +2 -0
- package/package.json +18 -4
- package/dist/cli/commands/dataset-selection.d.ts +0 -6
- package/dist/cli/commands/dataset-selection.js +0 -11
- package/dist/lib/agent-args.d.ts +0 -1
- package/dist/lib/agent-args.js +0 -1
- package/dist/lib/agent-constants.d.ts +0 -1
- package/dist/lib/agent-constants.js +0 -1
- package/dist/lib/agent-detection.d.ts +0 -1
- package/dist/lib/agent-detection.js +0 -1
- package/dist/lib/agent-execution.d.ts +0 -1
- package/dist/lib/agent-execution.js +0 -1
- package/dist/lib/agent-logs.d.ts +0 -1
- package/dist/lib/agent-logs.js +0 -1
- package/dist/lib/agent-preflight.d.ts +0 -1
- package/dist/lib/agent-preflight.js +0 -1
- package/dist/lib/agent-render.d.ts +0 -1
- package/dist/lib/agent-render.js +0 -1
- package/dist/lib/agent-shells.d.ts +0 -1
- package/dist/lib/agent-shells.js +0 -1
- package/dist/lib/agent-status.d.ts +0 -1
- package/dist/lib/agent-status.js +0 -1
- package/dist/lib/agent-types.d.ts +0 -1
- package/dist/lib/agent-types.js +0 -1
- package/dist/lib/agents.d.ts +0 -1
- package/dist/lib/agents.js +0 -1
- package/dist/lib/builtin-compiled-workflow.d.ts +0 -1
- package/dist/lib/builtin-compiled-workflow.js +0 -1
- package/dist/lib/chart-guidance.d.ts +0 -1
- package/dist/lib/chart-guidance.js +0 -1
- package/dist/lib/compiled-compile.d.ts +0 -1
- package/dist/lib/compiled-compile.js +0 -1
- package/dist/lib/compiled-paths.d.ts +0 -1
- package/dist/lib/compiled-paths.js +0 -3
- package/dist/lib/compiled-raw.d.ts +0 -1
- package/dist/lib/compiled-raw.js +0 -3
- package/dist/lib/compiled-reset.d.ts +0 -1
- package/dist/lib/compiled-reset.js +0 -3
- package/dist/lib/compiled-schema.d.ts +0 -1
- package/dist/lib/compiled-schema.js +0 -1
- package/dist/lib/discovery.d.ts +0 -1
- package/dist/lib/discovery.js +0 -1
- package/dist/lib/execution-profile.d.ts +0 -1
- package/dist/lib/execution-profile.js +0 -1
- package/dist/lib/executors.d.ts +0 -1
- package/dist/lib/executors.js +0 -1
- package/dist/lib/filesystem.d.ts +0 -1
- package/dist/lib/filesystem.js +0 -1
- package/dist/lib/interf-bootstrap.d.ts +0 -1
- package/dist/lib/interf-bootstrap.js +0 -3
- package/dist/lib/interf-detect.d.ts +0 -1
- package/dist/lib/interf-detect.js +0 -3
- package/dist/lib/interf-scaffold.d.ts +0 -1
- package/dist/lib/interf-scaffold.js +0 -3
- package/dist/lib/interf-workflow-package.d.ts +0 -1
- package/dist/lib/interf-workflow-package.js +0 -1
- package/dist/lib/interf.d.ts +0 -1
- package/dist/lib/interf.js +0 -3
- package/dist/lib/local-workflows.d.ts +0 -1
- package/dist/lib/local-workflows.js +0 -1
- package/dist/lib/logger.d.ts +0 -1
- package/dist/lib/logger.js +0 -1
- package/dist/lib/package-root.d.ts +0 -1
- package/dist/lib/package-root.js +0 -1
- package/dist/lib/parse.d.ts +0 -1
- package/dist/lib/parse.js +0 -1
- package/dist/lib/project-paths.d.ts +0 -1
- package/dist/lib/project-paths.js +0 -3
- package/dist/lib/runtime-acceptance.d.ts +0 -1
- package/dist/lib/runtime-acceptance.js +0 -1
- package/dist/lib/runtime-contracts.d.ts +0 -1
- package/dist/lib/runtime-contracts.js +0 -1
- package/dist/lib/runtime-inventory.d.ts +0 -1
- package/dist/lib/runtime-inventory.js +0 -1
- package/dist/lib/runtime-paths.d.ts +0 -1
- package/dist/lib/runtime-paths.js +0 -1
- package/dist/lib/runtime-prompt.d.ts +0 -1
- package/dist/lib/runtime-prompt.js +0 -1
- package/dist/lib/runtime-reconcile.d.ts +0 -1
- package/dist/lib/runtime-reconcile.js +0 -1
- package/dist/lib/runtime-runs.d.ts +0 -1
- package/dist/lib/runtime-runs.js +0 -1
- package/dist/lib/runtime-types.d.ts +0 -1
- package/dist/lib/runtime-types.js +0 -1
- package/dist/lib/runtime.d.ts +0 -1
- package/dist/lib/runtime.js +0 -1
- package/dist/lib/schema.d.ts +0 -4
- package/dist/lib/schema.js +0 -6
- package/dist/lib/source-config.d.ts +0 -1
- package/dist/lib/source-config.js +0 -3
- package/dist/lib/state-artifacts.d.ts +0 -1
- package/dist/lib/state-artifacts.js +0 -1
- package/dist/lib/state-health.d.ts +0 -1
- package/dist/lib/state-health.js +0 -1
- package/dist/lib/state-io.d.ts +0 -1
- package/dist/lib/state-io.js +0 -1
- package/dist/lib/state-paths.d.ts +0 -1
- package/dist/lib/state-paths.js +0 -1
- package/dist/lib/state-view.d.ts +0 -1
- package/dist/lib/state-view.js +0 -1
- package/dist/lib/state.d.ts +0 -1
- package/dist/lib/state.js +0 -1
- package/dist/lib/test-execution.d.ts +0 -1
- package/dist/lib/test-execution.js +0 -3
- package/dist/lib/test-matrices.d.ts +0 -1
- package/dist/lib/test-matrices.js +0 -3
- package/dist/lib/test-paths.d.ts +0 -1
- package/dist/lib/test-paths.js +0 -3
- package/dist/lib/test-profile-presets.d.ts +0 -1
- package/dist/lib/test-profile-presets.js +0 -3
- package/dist/lib/test-sandbox.d.ts +0 -1
- package/dist/lib/test-sandbox.js +0 -3
- package/dist/lib/test-specs.d.ts +0 -1
- package/dist/lib/test-specs.js +0 -3
- package/dist/lib/test-targets.d.ts +0 -1
- package/dist/lib/test-targets.js +0 -3
- package/dist/lib/test-types.d.ts +0 -1
- package/dist/lib/test-types.js +0 -3
- package/dist/lib/test.d.ts +0 -1
- package/dist/lib/test.js +0 -3
- package/dist/lib/util.d.ts +0 -1
- package/dist/lib/util.js +0 -1
- package/dist/lib/validate-compiled.d.ts +0 -1
- package/dist/lib/validate-compiled.js +0 -1
- package/dist/lib/validate-helpers.d.ts +0 -1
- package/dist/lib/validate-helpers.js +0 -1
- package/dist/lib/validate.d.ts +0 -1
- package/dist/lib/validate.js +0 -1
- package/dist/lib/workflow-authoring.d.ts +0 -1
- package/dist/lib/workflow-authoring.js +0 -1
- package/dist/lib/workflow-definitions.d.ts +0 -1
- package/dist/lib/workflow-definitions.js +0 -1
- package/dist/lib/workflow-edit-session.d.ts +0 -1
- package/dist/lib/workflow-edit-session.js +0 -1
- package/dist/lib/workflow-edit-utils.d.ts +0 -1
- package/dist/lib/workflow-edit-utils.js +0 -1
- package/dist/lib/workflow-helpers.d.ts +0 -1
- package/dist/lib/workflow-helpers.js +0 -1
- package/dist/lib/workflow-improvement.d.ts +0 -1
- package/dist/lib/workflow-improvement.js +0 -1
- package/dist/lib/workflow-primitives.d.ts +0 -1
- package/dist/lib/workflow-primitives.js +0 -1
- package/dist/lib/workflow-review-paths.d.ts +0 -1
- package/dist/lib/workflow-review-paths.js +0 -1
- package/dist/lib/workflow-stage-policy.d.ts +0 -1
- package/dist/lib/workflow-stage-policy.js +0 -1
- package/dist/lib/workflow-stage-runner.d.ts +0 -1
- package/dist/lib/workflow-stage-runner.js +0 -1
- package/dist/lib/workflows.d.ts +0 -1
- package/dist/lib/workflows.js +0 -1
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { ReadinessStateSchema, RuntimeExecutorInfoSchema, RuntimeStageSchema, WorkflowIdSchema, } from "../../compiler/lib/schema.js";
|
|
3
|
+
import { PreparationNameSchema, } from "../../project-model/lib/schema.js";
|
|
4
|
+
const RunIdSchema = z.string().min(1);
|
|
5
|
+
const JsonObjectSchema = z.record(z.string(), z.unknown());
|
|
6
|
+
export const WorkflowTraceRunStatusSchema = z.enum([
|
|
7
|
+
"pending",
|
|
8
|
+
"running",
|
|
9
|
+
"completed",
|
|
10
|
+
"failed",
|
|
11
|
+
"cancelled",
|
|
12
|
+
]);
|
|
13
|
+
export const WorkflowTraceEventTypeSchema = z.enum([
|
|
14
|
+
"run_created",
|
|
15
|
+
"run_started",
|
|
16
|
+
"run_completed",
|
|
17
|
+
"run_failed",
|
|
18
|
+
"run_cancelled",
|
|
19
|
+
"step_created",
|
|
20
|
+
"step_started",
|
|
21
|
+
"step_completed",
|
|
22
|
+
"step_failed",
|
|
23
|
+
"step_retrying",
|
|
24
|
+
"hook_created",
|
|
25
|
+
"hook_received",
|
|
26
|
+
"hook_disposed",
|
|
27
|
+
"hook_conflict",
|
|
28
|
+
"wait_created",
|
|
29
|
+
"wait_completed",
|
|
30
|
+
]);
|
|
31
|
+
export const WorkflowTraceStructuredErrorSchema = z.object({
|
|
32
|
+
message: z.string().min(1),
|
|
33
|
+
stack: z.string().min(1).optional(),
|
|
34
|
+
code: z.string().min(1).optional(),
|
|
35
|
+
}).strict();
|
|
36
|
+
export const WorkflowTraceRunSchema = z.object({
|
|
37
|
+
runId: RunIdSchema,
|
|
38
|
+
status: WorkflowTraceRunStatusSchema,
|
|
39
|
+
deploymentId: z.string().min(1),
|
|
40
|
+
workflowName: z.string().min(1),
|
|
41
|
+
specVersion: z.literal(1),
|
|
42
|
+
executionContext: JsonObjectSchema.optional(),
|
|
43
|
+
input: z.unknown(),
|
|
44
|
+
output: z.unknown().optional(),
|
|
45
|
+
error: WorkflowTraceStructuredErrorSchema.optional(),
|
|
46
|
+
expiredAt: z.string().min(1).optional(),
|
|
47
|
+
startedAt: z.string().min(1).optional(),
|
|
48
|
+
completedAt: z.string().min(1).optional(),
|
|
49
|
+
createdAt: z.string().min(1),
|
|
50
|
+
updatedAt: z.string().min(1),
|
|
51
|
+
}).strict();
|
|
52
|
+
export const WorkflowTraceEventSchema = z.object({
|
|
53
|
+
runId: RunIdSchema,
|
|
54
|
+
eventId: z.string().min(1),
|
|
55
|
+
eventType: WorkflowTraceEventTypeSchema,
|
|
56
|
+
correlationId: z.string().min(1).optional(),
|
|
57
|
+
specVersion: z.literal(1),
|
|
58
|
+
createdAt: z.string().min(1),
|
|
59
|
+
eventData: z.unknown().optional(),
|
|
60
|
+
}).strict();
|
|
61
|
+
export const WorkflowTraceStreamChunkSchema = z.object({
|
|
62
|
+
streamId: z.string().min(1),
|
|
63
|
+
chunkId: z.string().min(1),
|
|
64
|
+
index: z.number().int().min(0),
|
|
65
|
+
createdAt: z.string().min(1),
|
|
66
|
+
text: z.string(),
|
|
67
|
+
data: z.unknown().optional(),
|
|
68
|
+
}).strict();
|
|
69
|
+
export const WorkflowTraceSchema = z.object({
|
|
70
|
+
run: WorkflowTraceRunSchema,
|
|
71
|
+
events: z.array(WorkflowTraceEventSchema).default([]),
|
|
72
|
+
streams: z.array(WorkflowTraceStreamChunkSchema).default([]),
|
|
73
|
+
}).strict();
|
|
74
|
+
export const ObservableRunTypeSchema = z.enum([
|
|
75
|
+
"preparation-setup",
|
|
76
|
+
"compile",
|
|
77
|
+
"test",
|
|
78
|
+
"readiness-check-draft",
|
|
79
|
+
"method-authoring",
|
|
80
|
+
"method-improvement",
|
|
81
|
+
"job",
|
|
82
|
+
]);
|
|
83
|
+
export const ObservableRunStatusSchema = z.enum([
|
|
84
|
+
"queued",
|
|
85
|
+
"running",
|
|
86
|
+
"succeeded",
|
|
87
|
+
"failed",
|
|
88
|
+
"cancelled",
|
|
89
|
+
]);
|
|
90
|
+
export const ObservableRunMetricSchema = z.object({
|
|
91
|
+
label: z.string().min(1),
|
|
92
|
+
value: z.string().min(1),
|
|
93
|
+
detail: z.string().min(1).optional(),
|
|
94
|
+
}).strict();
|
|
95
|
+
export const ExecutionBackendKindSchema = z.enum([
|
|
96
|
+
"native",
|
|
97
|
+
"workflow-sdk",
|
|
98
|
+
]);
|
|
99
|
+
export const CompileRunStatusSchema = z.enum([
|
|
100
|
+
"queued",
|
|
101
|
+
"running",
|
|
102
|
+
"succeeded",
|
|
103
|
+
"failed",
|
|
104
|
+
"cancelled",
|
|
105
|
+
]);
|
|
106
|
+
export const StageRunStatusSchema = z.enum([
|
|
107
|
+
"queued",
|
|
108
|
+
"running",
|
|
109
|
+
"succeeded",
|
|
110
|
+
"failed",
|
|
111
|
+
"skipped",
|
|
112
|
+
]);
|
|
113
|
+
export const ArtifactRoleSchema = z.enum([
|
|
114
|
+
"source",
|
|
115
|
+
"output",
|
|
116
|
+
"proof",
|
|
117
|
+
"runtime",
|
|
118
|
+
"test",
|
|
119
|
+
]);
|
|
120
|
+
export const ArtifactRefSchema = z.object({
|
|
121
|
+
path: z.string().min(1),
|
|
122
|
+
role: ArtifactRoleSchema,
|
|
123
|
+
stage_id: RuntimeStageSchema.nullable().optional(),
|
|
124
|
+
label: z.string().min(1).optional(),
|
|
125
|
+
sha256: z.string().min(1).optional(),
|
|
126
|
+
}).strict();
|
|
127
|
+
export const ProofCheckSchema = z.object({
|
|
128
|
+
id: z.string().min(1),
|
|
129
|
+
label: z.string().min(1),
|
|
130
|
+
ok: z.boolean(),
|
|
131
|
+
detail: z.string().min(1).optional(),
|
|
132
|
+
}).strict();
|
|
133
|
+
function normalizePreparationMethodFields(value) {
|
|
134
|
+
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
135
|
+
return value;
|
|
136
|
+
const input = value;
|
|
137
|
+
const output = { ...input };
|
|
138
|
+
if (typeof output.preparation !== "string" && typeof input.dataset === "string") {
|
|
139
|
+
output.preparation = input.dataset;
|
|
140
|
+
}
|
|
141
|
+
if (typeof output.method !== "string" && typeof input.workflow === "string") {
|
|
142
|
+
output.method = input.workflow;
|
|
143
|
+
}
|
|
144
|
+
if (output.run_type === "dataset-setup")
|
|
145
|
+
output.run_type = "preparation-setup";
|
|
146
|
+
if (output.run_type === "workflow-authoring")
|
|
147
|
+
output.run_type = "method-authoring";
|
|
148
|
+
if (output.run_type === "workflow-improvement")
|
|
149
|
+
output.run_type = "method-improvement";
|
|
150
|
+
delete output.dataset;
|
|
151
|
+
delete output.workflow;
|
|
152
|
+
return output;
|
|
153
|
+
}
|
|
154
|
+
export const RunObservabilitySchema = z.preprocess(normalizePreparationMethodFields, z.object({
|
|
155
|
+
kind: z.literal("interf-run-observability"),
|
|
156
|
+
version: z.literal(1),
|
|
157
|
+
run_id: RunIdSchema,
|
|
158
|
+
run_type: ObservableRunTypeSchema,
|
|
159
|
+
title: z.string().min(1),
|
|
160
|
+
status: ObservableRunStatusSchema,
|
|
161
|
+
preparation: PreparationNameSchema.nullable().optional(),
|
|
162
|
+
method: WorkflowIdSchema.nullable().optional(),
|
|
163
|
+
source_path: z.string().min(1).nullable().optional(),
|
|
164
|
+
output_path: z.string().min(1).nullable().optional(),
|
|
165
|
+
executor: RuntimeExecutorInfoSchema.nullable().optional(),
|
|
166
|
+
agent_label: z.string().min(1).nullable().optional(),
|
|
167
|
+
created_at: z.string().min(1),
|
|
168
|
+
started_at: z.string().min(1).nullable().optional(),
|
|
169
|
+
finished_at: z.string().min(1).nullable().optional(),
|
|
170
|
+
metrics: z.array(ObservableRunMetricSchema).default([]),
|
|
171
|
+
artifacts: z.array(ArtifactRefSchema).default([]),
|
|
172
|
+
proof: z.array(ProofCheckSchema).default([]),
|
|
173
|
+
readiness: ReadinessStateSchema.nullable().optional(),
|
|
174
|
+
trace: WorkflowTraceSchema,
|
|
175
|
+
}).strict());
|
|
176
|
+
export const ProofRecordSchema = z.object({
|
|
177
|
+
id: z.string().min(1),
|
|
178
|
+
run_id: RunIdSchema,
|
|
179
|
+
stage_id: RuntimeStageSchema.nullable().optional(),
|
|
180
|
+
generated_at: z.string().min(1),
|
|
181
|
+
summary: z.string().min(1),
|
|
182
|
+
files_processed: z.number().int().min(0).optional(),
|
|
183
|
+
artifacts: z.array(ArtifactRefSchema).default([]),
|
|
184
|
+
checks: z.array(ProofCheckSchema).default([]),
|
|
185
|
+
}).strict();
|
|
186
|
+
export const StageRunContractSchema = z.object({
|
|
187
|
+
stage_label: z.string().min(1).optional(),
|
|
188
|
+
stage_index: z.number().int().min(0).optional(),
|
|
189
|
+
stage_total: z.number().int().min(1).optional(),
|
|
190
|
+
reads: z.array(z.string().min(1)).default([]),
|
|
191
|
+
writes: z.array(z.string().min(1)).default([]),
|
|
192
|
+
acceptance: z.record(z.string(), z.unknown()).optional(),
|
|
193
|
+
}).strict();
|
|
194
|
+
export const StageRunLogsSchema = z.object({
|
|
195
|
+
prompt_path: z.string().min(1).optional(),
|
|
196
|
+
event_stream_path: z.string().min(1).optional(),
|
|
197
|
+
status_path: z.string().min(1).optional(),
|
|
198
|
+
contract_path: z.string().min(1).optional(),
|
|
199
|
+
}).strict();
|
|
200
|
+
const RunEventBaseSchema = z.object({
|
|
201
|
+
event_id: z.string().min(1),
|
|
202
|
+
run_id: RunIdSchema,
|
|
203
|
+
timestamp: z.string().min(1),
|
|
204
|
+
});
|
|
205
|
+
export const RunStartedEventSchema = RunEventBaseSchema.extend({
|
|
206
|
+
type: z.literal("run.started"),
|
|
207
|
+
preparation: PreparationNameSchema,
|
|
208
|
+
method: WorkflowIdSchema,
|
|
209
|
+
portable_context_path: z.string().min(1),
|
|
210
|
+
backend: ExecutionBackendKindSchema,
|
|
211
|
+
}).strict();
|
|
212
|
+
export const StageStartedEventSchema = RunEventBaseSchema.extend({
|
|
213
|
+
type: z.literal("stage.started"),
|
|
214
|
+
stage_id: RuntimeStageSchema,
|
|
215
|
+
stage_index: z.number().int().min(0).optional(),
|
|
216
|
+
stage_total: z.number().int().min(1).optional(),
|
|
217
|
+
}).strict();
|
|
218
|
+
export const FileProcessedEventSchema = RunEventBaseSchema.extend({
|
|
219
|
+
type: z.literal("file.processed"),
|
|
220
|
+
stage_id: RuntimeStageSchema,
|
|
221
|
+
path: z.string().min(1),
|
|
222
|
+
}).strict();
|
|
223
|
+
export const ArtifactWrittenEventSchema = RunEventBaseSchema.extend({
|
|
224
|
+
type: z.literal("artifact.written"),
|
|
225
|
+
stage_id: RuntimeStageSchema,
|
|
226
|
+
artifact: ArtifactRefSchema,
|
|
227
|
+
}).strict();
|
|
228
|
+
export const ProofUpdatedEventSchema = RunEventBaseSchema.extend({
|
|
229
|
+
type: z.literal("proof.updated"),
|
|
230
|
+
stage_id: RuntimeStageSchema.nullable().optional(),
|
|
231
|
+
proof: ProofRecordSchema,
|
|
232
|
+
}).strict();
|
|
233
|
+
export const LogAppendedEventSchema = RunEventBaseSchema.extend({
|
|
234
|
+
type: z.literal("log.appended"),
|
|
235
|
+
stage_id: RuntimeStageSchema.nullable().optional(),
|
|
236
|
+
stream: z.enum(["status", "trace", "system"]),
|
|
237
|
+
message: z.string().min(1),
|
|
238
|
+
}).strict();
|
|
239
|
+
export const StagePassedEventSchema = RunEventBaseSchema.extend({
|
|
240
|
+
type: z.literal("stage.passed"),
|
|
241
|
+
stage_id: RuntimeStageSchema,
|
|
242
|
+
summary: z.string().min(1).optional(),
|
|
243
|
+
}).strict();
|
|
244
|
+
export const StageFailedEventSchema = RunEventBaseSchema.extend({
|
|
245
|
+
type: z.literal("stage.failed"),
|
|
246
|
+
stage_id: RuntimeStageSchema,
|
|
247
|
+
error: z.string().min(1),
|
|
248
|
+
}).strict();
|
|
249
|
+
export const RunCompletedEventSchema = RunEventBaseSchema.extend({
|
|
250
|
+
type: z.literal("run.completed"),
|
|
251
|
+
summary: z.string().min(1).optional(),
|
|
252
|
+
}).strict();
|
|
253
|
+
export const RunFailedEventSchema = RunEventBaseSchema.extend({
|
|
254
|
+
type: z.literal("run.failed"),
|
|
255
|
+
error: z.string().min(1),
|
|
256
|
+
}).strict();
|
|
257
|
+
export const ChecksEvaluatedEventSchema = RunEventBaseSchema.extend({
|
|
258
|
+
type: z.literal("checks.evaluated"),
|
|
259
|
+
passed: z.number().int().min(0),
|
|
260
|
+
total: z.number().int().min(0),
|
|
261
|
+
target: z.enum(["raw", "compiled"]).optional(),
|
|
262
|
+
checks_fingerprint: z.string().min(1).optional(),
|
|
263
|
+
stale: z.boolean().optional(),
|
|
264
|
+
test_run_id: z.string().min(1).optional(),
|
|
265
|
+
}).strict();
|
|
266
|
+
export const ReadinessUpdatedEventSchema = RunEventBaseSchema.extend({
|
|
267
|
+
type: z.literal("readiness.updated"),
|
|
268
|
+
preparation: PreparationNameSchema,
|
|
269
|
+
readiness: ReadinessStateSchema,
|
|
270
|
+
}).strict();
|
|
271
|
+
export const InterfRunEventSchema = z.preprocess(normalizePreparationMethodFields, z.discriminatedUnion("type", [
|
|
272
|
+
RunStartedEventSchema,
|
|
273
|
+
StageStartedEventSchema,
|
|
274
|
+
FileProcessedEventSchema,
|
|
275
|
+
ArtifactWrittenEventSchema,
|
|
276
|
+
ProofUpdatedEventSchema,
|
|
277
|
+
LogAppendedEventSchema,
|
|
278
|
+
StagePassedEventSchema,
|
|
279
|
+
StageFailedEventSchema,
|
|
280
|
+
RunCompletedEventSchema,
|
|
281
|
+
RunFailedEventSchema,
|
|
282
|
+
ChecksEvaluatedEventSchema,
|
|
283
|
+
ReadinessUpdatedEventSchema,
|
|
284
|
+
]));
|
|
285
|
+
export const StageRunSchema = z.object({
|
|
286
|
+
run_id: RunIdSchema,
|
|
287
|
+
stage_id: RuntimeStageSchema,
|
|
288
|
+
stage_label: z.string().min(1).optional(),
|
|
289
|
+
stage_index: z.number().int().min(0).optional(),
|
|
290
|
+
stage_total: z.number().int().min(1).optional(),
|
|
291
|
+
status: StageRunStatusSchema,
|
|
292
|
+
started_at: z.string().nullable().optional(),
|
|
293
|
+
finished_at: z.string().nullable().optional(),
|
|
294
|
+
summary: z.string().nullable().optional(),
|
|
295
|
+
contract: StageRunContractSchema.optional(),
|
|
296
|
+
executor: RuntimeExecutorInfoSchema.nullable().optional(),
|
|
297
|
+
artifacts: z.array(ArtifactRefSchema).default([]),
|
|
298
|
+
logs: StageRunLogsSchema.optional(),
|
|
299
|
+
latest_proof: ProofRecordSchema.nullable().optional(),
|
|
300
|
+
failure: z.string().nullable().optional(),
|
|
301
|
+
}).strict();
|
|
302
|
+
export const CompileRunSchema = z.preprocess(normalizePreparationMethodFields, z.object({
|
|
303
|
+
kind: z.literal("interf-compile-run"),
|
|
304
|
+
version: z.literal(1),
|
|
305
|
+
run_id: RunIdSchema,
|
|
306
|
+
status: CompileRunStatusSchema,
|
|
307
|
+
preparation: PreparationNameSchema,
|
|
308
|
+
method: WorkflowIdSchema,
|
|
309
|
+
backend: ExecutionBackendKindSchema,
|
|
310
|
+
source_path: z.string().min(1),
|
|
311
|
+
portable_context_path: z.string().min(1),
|
|
312
|
+
created_at: z.string().min(1),
|
|
313
|
+
started_at: z.string().nullable().optional(),
|
|
314
|
+
finished_at: z.string().nullable().optional(),
|
|
315
|
+
stages: z.array(StageRunSchema).default([]),
|
|
316
|
+
events: z.array(InterfRunEventSchema).default([]),
|
|
317
|
+
latest_proof: ProofRecordSchema.nullable().optional(),
|
|
318
|
+
readiness: ReadinessStateSchema.nullable().optional(),
|
|
319
|
+
}).strict());
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ActionValueIdPattern: RegExp;
|
|
3
|
+
export declare const ActionValueIdSchema: z.ZodString;
|
|
4
|
+
export declare const OptionalActionValueIdSchema: z.ZodString;
|
|
5
|
+
export declare const PreparationSetupActionValuesSchema: z.ZodObject<{
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
path: z.ZodString;
|
|
8
|
+
about: z.ZodString;
|
|
9
|
+
method: z.ZodOptional<z.ZodString>;
|
|
10
|
+
workflow: z.ZodOptional<z.ZodString>;
|
|
11
|
+
readiness_notes: z.ZodOptional<z.ZodString>;
|
|
12
|
+
}, z.core.$strict>;
|
|
13
|
+
export declare const MethodAuthoringActionValuesSchema: z.ZodObject<{
|
|
14
|
+
method_id: z.ZodString;
|
|
15
|
+
label: z.ZodString;
|
|
16
|
+
hint: z.ZodString;
|
|
17
|
+
task_prompt: z.ZodString;
|
|
18
|
+
portable_output: z.ZodOptional<z.ZodString>;
|
|
19
|
+
readiness_notes: z.ZodOptional<z.ZodString>;
|
|
20
|
+
}, z.core.$strict>;
|
|
21
|
+
export type PreparationSetupActionValues = z.infer<typeof PreparationSetupActionValuesSchema>;
|
|
22
|
+
export type MethodAuthoringActionValues = z.infer<typeof MethodAuthoringActionValuesSchema>;
|
|
23
|
+
export declare function methodAuthoringTaskPrompt(values: MethodAuthoringActionValues): string;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const ActionValueIdPattern = /^[a-z0-9][a-z0-9-]{0,79}$/;
|
|
3
|
+
export const ActionValueIdSchema = z.string().trim().regex(ActionValueIdPattern, "Use lowercase letters, numbers, and dashes.");
|
|
4
|
+
export const OptionalActionValueIdSchema = z.string().trim().refine((value) => value === "" || ActionValueIdPattern.test(value), "Use lowercase letters, numbers, and dashes.");
|
|
5
|
+
export const PreparationSetupActionValuesSchema = z.object({
|
|
6
|
+
name: ActionValueIdSchema,
|
|
7
|
+
path: z.string().trim().min(1, "Source Folder is required."),
|
|
8
|
+
about: z.string().trim().min(1, "Agent work is required."),
|
|
9
|
+
method: OptionalActionValueIdSchema.optional(),
|
|
10
|
+
workflow: OptionalActionValueIdSchema.optional(),
|
|
11
|
+
readiness_notes: z.string().trim().optional(),
|
|
12
|
+
}).strict();
|
|
13
|
+
export const MethodAuthoringActionValuesSchema = z.object({
|
|
14
|
+
method_id: ActionValueIdSchema,
|
|
15
|
+
label: z.string().trim().min(1, "Label is required."),
|
|
16
|
+
hint: z.string().trim().min(1, "Summary is required."),
|
|
17
|
+
task_prompt: z.string().trim().min(1, "Agent work is required."),
|
|
18
|
+
portable_output: z.string().trim().optional(),
|
|
19
|
+
readiness_notes: z.string().trim().optional(),
|
|
20
|
+
}).strict();
|
|
21
|
+
function optionalLine(label, value) {
|
|
22
|
+
const trimmed = value?.trim();
|
|
23
|
+
return trimmed ? `${label}: ${trimmed}` : null;
|
|
24
|
+
}
|
|
25
|
+
export function methodAuthoringTaskPrompt(values) {
|
|
26
|
+
return [
|
|
27
|
+
`Agent work: ${values.task_prompt}`,
|
|
28
|
+
optionalLine("Portable-context output", values.portable_output),
|
|
29
|
+
optionalLine("Readiness checks", values.readiness_notes),
|
|
30
|
+
].filter((line) => Boolean(line)).join("\n");
|
|
31
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { type CompileRunCreateRequest, type CompileRunListResponse, type CompileRunResource, type LocalJobEventAppendRequest, type LocalJobRunCreateRequest, type LocalJobRunListResponse, type LocalJobRunResource, type LocalServiceHealth, type ReadinessCheckDraftCreateRequest, type ReadinessCheckDraftResult, type ReadinessListResponse, type TestRunCreateRequest, type TestRunListResponse, type TestRunResource, type WorkflowAuthoringCreateRequest, type WorkflowAuthoringResult } from "./lib/schema.js";
|
|
2
|
+
export interface LocalServiceConnection {
|
|
3
|
+
serviceUrl: string;
|
|
4
|
+
health: LocalServiceHealth;
|
|
5
|
+
}
|
|
6
|
+
export interface LocalServiceJobSubmission<T> {
|
|
7
|
+
serviceUrl: string;
|
|
8
|
+
job: LocalJobRunResource;
|
|
9
|
+
result: T | null;
|
|
10
|
+
error?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface LocalServiceJobSubmitted {
|
|
13
|
+
serviceUrl: string;
|
|
14
|
+
job: LocalJobRunResource;
|
|
15
|
+
}
|
|
16
|
+
export interface LocalServiceRunSnapshot {
|
|
17
|
+
jobs: LocalJobRunResource[];
|
|
18
|
+
compileRuns: CompileRunResource[];
|
|
19
|
+
testRuns: TestRunResource[];
|
|
20
|
+
}
|
|
21
|
+
export declare function configuredLocalServiceUrl(): string;
|
|
22
|
+
export declare function findLocalService(options: {
|
|
23
|
+
projectPath: string;
|
|
24
|
+
timeoutMs?: number;
|
|
25
|
+
}): Promise<LocalServiceConnection | null>;
|
|
26
|
+
export declare function submitCompileRunToLocalService(options: {
|
|
27
|
+
projectPath: string;
|
|
28
|
+
request: CompileRunCreateRequest;
|
|
29
|
+
}): Promise<{
|
|
30
|
+
serviceUrl: string;
|
|
31
|
+
resource: CompileRunResource;
|
|
32
|
+
} | null>;
|
|
33
|
+
export declare function submitTestRunToLocalService(options: {
|
|
34
|
+
projectPath: string;
|
|
35
|
+
request: TestRunCreateRequest;
|
|
36
|
+
}): Promise<{
|
|
37
|
+
serviceUrl: string;
|
|
38
|
+
resource: TestRunResource;
|
|
39
|
+
} | null>;
|
|
40
|
+
export declare function getLocalCompileRun(options: {
|
|
41
|
+
serviceUrl: string;
|
|
42
|
+
runId: string;
|
|
43
|
+
}): Promise<CompileRunResource>;
|
|
44
|
+
export declare function listLocalCompileRuns(options: {
|
|
45
|
+
serviceUrl: string;
|
|
46
|
+
timeoutMs?: number;
|
|
47
|
+
}): Promise<CompileRunListResponse>;
|
|
48
|
+
export declare function listLocalReadiness(options: {
|
|
49
|
+
serviceUrl: string;
|
|
50
|
+
timeoutMs?: number;
|
|
51
|
+
}): Promise<ReadinessListResponse>;
|
|
52
|
+
export declare function waitForLocalCompileRun(options: {
|
|
53
|
+
serviceUrl: string;
|
|
54
|
+
runId: string;
|
|
55
|
+
pollMs?: number;
|
|
56
|
+
onUpdate?: (resource: CompileRunResource) => void;
|
|
57
|
+
}): Promise<CompileRunResource>;
|
|
58
|
+
export declare function getLocalTestRun(options: {
|
|
59
|
+
serviceUrl: string;
|
|
60
|
+
runId: string;
|
|
61
|
+
}): Promise<TestRunResource>;
|
|
62
|
+
export declare function listLocalTestRuns(options: {
|
|
63
|
+
serviceUrl: string;
|
|
64
|
+
timeoutMs?: number;
|
|
65
|
+
}): Promise<TestRunListResponse>;
|
|
66
|
+
export declare function waitForLocalTestRun(options: {
|
|
67
|
+
serviceUrl: string;
|
|
68
|
+
runId: string;
|
|
69
|
+
pollMs?: number;
|
|
70
|
+
onUpdate?: (resource: TestRunResource) => void;
|
|
71
|
+
}): Promise<TestRunResource>;
|
|
72
|
+
export declare function getLocalJobRun(options: {
|
|
73
|
+
serviceUrl: string;
|
|
74
|
+
runId: string;
|
|
75
|
+
}): Promise<LocalJobRunResource>;
|
|
76
|
+
export declare function listLocalJobRuns(options: {
|
|
77
|
+
serviceUrl: string;
|
|
78
|
+
timeoutMs?: number;
|
|
79
|
+
}): Promise<LocalJobRunListResponse>;
|
|
80
|
+
export declare function readLocalServiceRunSnapshot(options: {
|
|
81
|
+
serviceUrl: string;
|
|
82
|
+
timeoutMs?: number;
|
|
83
|
+
}): Promise<LocalServiceRunSnapshot>;
|
|
84
|
+
export declare function waitForLocalJobRun(options: {
|
|
85
|
+
serviceUrl: string;
|
|
86
|
+
runId: string;
|
|
87
|
+
pollMs?: number;
|
|
88
|
+
timeoutMs?: number;
|
|
89
|
+
onUpdate?: (job: LocalJobRunResource) => void;
|
|
90
|
+
}): Promise<LocalJobRunResource>;
|
|
91
|
+
export declare function submitReadinessCheckDraftToLocalService(options: {
|
|
92
|
+
projectPath: string;
|
|
93
|
+
request: ReadinessCheckDraftCreateRequest;
|
|
94
|
+
onSubmitted?: (submission: LocalServiceJobSubmitted) => void;
|
|
95
|
+
onUpdate?: (job: LocalJobRunResource) => void;
|
|
96
|
+
}): Promise<LocalServiceJobSubmission<ReadinessCheckDraftResult> | null>;
|
|
97
|
+
export declare function submitWorkflowAuthoringRunToLocalService(options: {
|
|
98
|
+
projectPath: string;
|
|
99
|
+
request: WorkflowAuthoringCreateRequest;
|
|
100
|
+
onSubmitted?: (submission: LocalServiceJobSubmitted) => void;
|
|
101
|
+
onUpdate?: (job: LocalJobRunResource) => void;
|
|
102
|
+
}): Promise<LocalServiceJobSubmission<WorkflowAuthoringResult> | null>;
|
|
103
|
+
export interface LocalJobTracker {
|
|
104
|
+
serviceUrl: string;
|
|
105
|
+
runId: string;
|
|
106
|
+
resource: LocalJobRunResource;
|
|
107
|
+
emit(event: LocalJobEventAppendRequest): void;
|
|
108
|
+
complete(message?: string): Promise<void>;
|
|
109
|
+
fail(message: string): Promise<void>;
|
|
110
|
+
}
|
|
111
|
+
export declare function appendLocalJobRunEvent(options: {
|
|
112
|
+
projectPath: string;
|
|
113
|
+
runId: string;
|
|
114
|
+
event: LocalJobEventAppendRequest;
|
|
115
|
+
}): Promise<LocalJobRunResource | null>;
|
|
116
|
+
export declare function startLocalJobRun(options: {
|
|
117
|
+
projectPath: string;
|
|
118
|
+
request: LocalJobRunCreateRequest;
|
|
119
|
+
}): Promise<LocalJobTracker | null>;
|