@agentsmarket/pipeline-runtime 0.5.8 → 0.5.9

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.d.ts CHANGED
@@ -44,7 +44,7 @@ export { executeStage, runPipelineV2, makeWhenResolve, parseUsesEntry, parseUses
44
44
  export { validateInputs, formatInputErrors, type InputDecl, type InputSpec, type InputValidationError, } from './validate-inputs.js';
45
45
  export { validateMultimodalInput, type MultimodalValidationError, type MultimodalValidationResult, } from './validate-inputs.js';
46
46
  export { parseMediaUrl, detectMime, isImageMime, isAudioMime, isVideoMime, SUPPORTED_IMAGE_MIME, SUPPORTED_AUDIO_MIME, SUPPORTED_VIDEO_MIME, toAnthropicContent, type ParsedMedia, type AnthropicContentBlock, } from './adapters/multimodal-convert.js';
47
- export { resolveInputRefs, containsInputRef, resolveSpecialKeys, resolveDoubleBraceRefs, type PipelineRefContext, type DoubleBraceContext, } from './pipeline-refs.js';
47
+ export { resolveInputRefs, containsInputRef, inputRefName, resolveSpecialKeys, resolveDoubleBraceRefs, type PipelineRefContext, type DoubleBraceContext, } from './pipeline-refs.js';
48
48
  export { isToolSkill, invokeToolSkill, type ToolSkillContext, type ToolSkillResult, type ToolSkillHandler, } from './tools/tool-skills.js';
49
49
  export { validateOutputSpec, DEFAULT_OUTPUT_FORMAT, DEFAULT_OUTPUT_DELIVERY, DEFAULT_OUTPUT_EXPIRES_IN, MIN_OUTPUT_EXPIRES_IN, MAX_OUTPUT_EXPIRES_IN, type PipelineOutputSpec, type PipelineOutputDelivery, type PipelineOutputFormat, type PipelineOutputSpecError, } from './output-spec.js';
50
50
  export { validateJsonSchema, MAX_VALIDATION_DEPTH, type JsonSchema, type JsonSchemaType, type OutputValidationViolation, type OutputValidationResult, } from './output-schema.js';
@@ -85,5 +85,5 @@ export declare function runPipeline(spec: PipelineSpec, inputs: Record<string, u
85
85
  }): Promise<Record<string, string>>;
86
86
  export { LOOP_SCHEMA_VERSION, DEFAULT_MAX_ITERATIONS, ABSOLUTE_MAX_ITERATIONS, LoopConfigError, LoopMaxIterationsExceededError, parseExitExpression, evaluateExitExpression, executeLoop, type LoopOperator, type LoopExitExpression, type LoopSpec, type LoopIteration, type LoopTrace, type RunBodyStage, type LoopExecutionOptions, } from './loop.js';
87
87
  export { MEMORY_SCHEMA_VERSION, MAX_MEMORY_VALUE_BYTES, InMemoryMemoryStore, R2MemoryStore, createMemoryStore, type MemoryScope, type MemoryPartition, type MemoryEntry, type MemoryStore, type MemoryR2Like, } from './memory.js';
88
- export { parseTestSpec, loadTestSpecFile, TestSpecParseError, runAssertion, getPath, runSingleTest, runTestSuite, mockValueForField, buildMockProvider, extractStage, StageNotFoundInSpecError, renderText, renderJson, renderJunit, computeCoverage, renderCoverageText, loadCoverageForPipeline, discoverTestFiles, runConformanceDir, } from './testing/index.js';
88
+ export { parseTestSpec, loadTestSpecFile, TestSpecParseError, runAssertion, getPath, runSingleTest, runTestSuite, mockValueForField, buildMockProvider, extractStage, StageNotFoundInSpecError, renderText, renderJson, renderJunit, computeCoverage, renderCoverageText, loadCoverageForPipeline, discoverTestFiles, runConformanceDir, mockValueForSchema, } from './testing/index.js';
89
89
  export type { TestSpec, Assertion, AssertionResult, AssertionContext, SingleTestResult, RunTestOptions, RunSuiteOptions, ExtractedStage, CoverageReport, } from './testing/index.js';
package/dist/index.js CHANGED
@@ -28,7 +28,7 @@ export { executeStage, runPipelineV2, makeWhenResolve, parseUsesEntry, parseUses
28
28
  export { validateInputs, formatInputErrors, } from './validate-inputs.js';
29
29
  export { validateMultimodalInput, } from './validate-inputs.js';
30
30
  export { parseMediaUrl, detectMime, isImageMime, isAudioMime, isVideoMime, SUPPORTED_IMAGE_MIME, SUPPORTED_AUDIO_MIME, SUPPORTED_VIDEO_MIME, toAnthropicContent, } from './adapters/multimodal-convert.js';
31
- export { resolveInputRefs, containsInputRef, resolveSpecialKeys, resolveDoubleBraceRefs, } from './pipeline-refs.js';
31
+ export { resolveInputRefs, containsInputRef, inputRefName, resolveSpecialKeys, resolveDoubleBraceRefs, } from './pipeline-refs.js';
32
32
  export { isToolSkill, invokeToolSkill, } from './tools/tool-skills.js';
33
33
  export { validateOutputSpec, DEFAULT_OUTPUT_FORMAT, DEFAULT_OUTPUT_DELIVERY, DEFAULT_OUTPUT_EXPIRES_IN, MIN_OUTPUT_EXPIRES_IN, MAX_OUTPUT_EXPIRES_IN, } from './output-spec.js';
34
34
  export { validateJsonSchema, MAX_VALIDATION_DEPTH, } from './output-schema.js';
@@ -78,4 +78,4 @@ export async function runPipeline(spec, inputs, opts) {
78
78
  }
79
79
  export { LOOP_SCHEMA_VERSION, DEFAULT_MAX_ITERATIONS, ABSOLUTE_MAX_ITERATIONS, LoopConfigError, LoopMaxIterationsExceededError, parseExitExpression, evaluateExitExpression, executeLoop, } from './loop.js';
80
80
  export { MEMORY_SCHEMA_VERSION, MAX_MEMORY_VALUE_BYTES, InMemoryMemoryStore, R2MemoryStore, createMemoryStore, } from './memory.js';
81
- export { parseTestSpec, loadTestSpecFile, TestSpecParseError, runAssertion, getPath, runSingleTest, runTestSuite, mockValueForField, buildMockProvider, extractStage, StageNotFoundInSpecError, renderText, renderJson, renderJunit, computeCoverage, renderCoverageText, loadCoverageForPipeline, discoverTestFiles, runConformanceDir, } from './testing/index.js';
81
+ export { parseTestSpec, loadTestSpecFile, TestSpecParseError, runAssertion, getPath, runSingleTest, runTestSuite, mockValueForField, buildMockProvider, extractStage, StageNotFoundInSpecError, renderText, renderJson, renderJunit, computeCoverage, renderCoverageText, loadCoverageForPipeline, discoverTestFiles, runConformanceDir, mockValueForSchema, } from './testing/index.js';
@@ -59,6 +59,18 @@ export declare function resolveDoubleBraceRefs(value: unknown, ctx: DoubleBraceC
59
59
  * in a consumer would drift the moment either side gains a form.
60
60
  */
61
61
  export declare function containsInputRef(value: unknown): boolean;
62
+ /**
63
+ * The input a value refers to — or null when it is not a reference.
64
+ *
65
+ * `containsInputRef` answers "is this a reference"; this answers "which
66
+ * input". A caller that has the declared defaults (the spec's `inputs:`)
67
+ * can then know what the value will be at run time, without running it.
68
+ *
69
+ * Only a value that IS the reference counts. `MiniMax-${input.suffix}`
70
+ * resolves to something only the runtime can compute, so the answer there
71
+ * is null — and the caller checks what it can and leaves the rest alone.
72
+ */
73
+ export declare function inputRefName(value: unknown): string | null;
62
74
  export declare function resolveInputRefs(value: unknown, ctx: PipelineRefContext): unknown;
63
75
  /**
64
76
  * Substitute built-in special keys (\$today, \$now, \$year, \$month, \$weekday)
@@ -197,6 +197,28 @@ export function resolveDoubleBraceRefs(value, ctx) {
197
197
  export function containsInputRef(value) {
198
198
  return typeof value === 'string' && INPUT_REF_PROBE.test(value);
199
199
  }
200
+ /**
201
+ * The input a value refers to — or null when it is not a reference.
202
+ *
203
+ * `containsInputRef` answers "is this a reference"; this answers "which
204
+ * input". A caller that has the declared defaults (the spec's `inputs:`)
205
+ * can then know what the value will be at run time, without running it.
206
+ *
207
+ * Only a value that IS the reference counts. `MiniMax-${input.suffix}`
208
+ * resolves to something only the runtime can compute, so the answer there
209
+ * is null — and the caller checks what it can and leaves the rest alone.
210
+ */
211
+ export function inputRefName(value) {
212
+ if (typeof value !== 'string')
213
+ return null;
214
+ const match = INPUT_REF_PROBE.exec(value);
215
+ if (!match)
216
+ return null;
217
+ const name = match[1] ?? match[2];
218
+ if (!name)
219
+ return null;
220
+ return match[0].length === value.length ? name : null;
221
+ }
200
222
  // One definition of the ref syntax, two regexes over it. Substitution needs the
201
223
  // global flag; the predicate must NOT have it — a global regex carries
202
224
  // `lastIndex` between `.test()` calls, so `containsInputRef` answered
package/dist/stages.js CHANGED
@@ -721,6 +721,7 @@ correctionHint) {
721
721
  ...stageModelParams(stage),
722
722
  fields: stage.fields,
723
723
  outputFormat: stage.output_format,
724
+ outputSchema: stage.output_schema,
724
725
  messages: correctionHint
725
726
  ? [
726
727
  ...(ctxPrefix.length > 0 ? [{ role: 'user', content: ctxPrefix }] : []),
@@ -746,6 +747,7 @@ correctionHint) {
746
747
  ...stageModelParams(stage),
747
748
  fields: stage.fields,
748
749
  outputFormat: stage.output_format,
750
+ outputSchema: stage.output_schema,
749
751
  });
750
752
  })(), stage.retry, retryCtx);
751
753
  const result = ran.value;
@@ -1,6 +1,7 @@
1
1
  export { parseTestSpec, loadTestSpecFile, TestSpecParseError, type TestSpec, type Assertion } from './spec-parser.js';
2
2
  export { runAssertion, getPath, type AssertionResult, type AssertionContext } from './assertions.js';
3
3
  export { runSingleTest, runTestSuite, mockValueForField, buildMockProvider, type SingleTestResult, type RunTestOptions, type RunSuiteOptions } from './runner.js';
4
+ export { mockValueForSchema } from './mock-schema.js';
4
5
  export { extractStage, StageNotFoundInSpecError, type ExtractedStage } from './stage-extractor.js';
5
6
  export { renderText } from './reporters/text.js';
6
7
  export { renderJson } from './reporters/json.js';
@@ -1,6 +1,7 @@
1
1
  export { parseTestSpec, loadTestSpecFile, TestSpecParseError } from './spec-parser.js';
2
2
  export { runAssertion, getPath } from './assertions.js';
3
3
  export { runSingleTest, runTestSuite, mockValueForField, buildMockProvider } from './runner.js';
4
+ export { mockValueForSchema } from './mock-schema.js';
4
5
  export { extractStage, StageNotFoundInSpecError } from './stage-extractor.js';
5
6
  export { renderText } from './reporters/text.js';
6
7
  export { renderJson } from './reporters/json.js';
@@ -0,0 +1,14 @@
1
+ /**
2
+ * M9 — the values the mock knows by field name.
3
+ *
4
+ * These are the shapes the published example pipelines assert on
5
+ * (`markdown_report` matches /Mock report/, `summary.test_score >= 1`), so
6
+ * the mock has to answer with them rather than with a generic placeholder.
7
+ *
8
+ * They are also the candidates for a schema-shaped answer: a property named
9
+ * `summary` gets this value when it satisfies that property's schema, and a
10
+ * schema-driven value when it does not.
11
+ */
12
+ /** Field name → the value the mock answers with. */
13
+ export declare const KNOWN_FIELDS: Record<string, unknown>;
14
+ export declare function mockValueForField(field: string): unknown;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * M9 — the values the mock knows by field name.
3
+ *
4
+ * These are the shapes the published example pipelines assert on
5
+ * (`markdown_report` matches /Mock report/, `summary.test_score >= 1`), so
6
+ * the mock has to answer with them rather than with a generic placeholder.
7
+ *
8
+ * They are also the candidates for a schema-shaped answer: a property named
9
+ * `summary` gets this value when it satisfies that property's schema, and a
10
+ * schema-driven value when it does not.
11
+ */
12
+ /** Field name → the value the mock answers with. */
13
+ export const KNOWN_FIELDS = {
14
+ findings: [{ severity: 'high', line: 10, description: 'mock finding: unsanitized input', fix_suggestion: 'sanitize input', cwe_id: 'CWE-89', confidence: 0.9 }],
15
+ summary: { total_findings: 1, critical_count: 0, high_count: 1, medium_count: 0, low_count: 0, overall_risk_score: 7.5, total_packages: 3, vulnerable_count: 1, perf_score: 6.5, estimated_speedup: 'mock 2x speedup', style_score: 7.0, regions_analyzed: 1, doc_score: 7.0, test_score: 7.0, refactor_score: 7.0, design_score: 7.0, endpoints_reviewed: 1, units_analyzed: 1 },
16
+ recommendations: ['mock recommendation: sanitize inputs'],
17
+ markdown_report: '# Mock report\n\nMock summary.\n',
18
+ packages: [{ name: 'mock-pkg', version: '1.0.0', is_vulnerable: true, cves: [{ id: 'CVE-2024-0001', severity: 'high', description: 'mock CVE', fix_version: '1.0.1', confidence: 0.9 }], fix_version: '1.0.1' }],
19
+ stats: { lines_scanned: 10, hunks_scanned: 1 },
20
+ rejected: [],
21
+ new_findings_count: 0,
22
+ };
23
+ export function mockValueForField(field) {
24
+ return field in KNOWN_FIELDS ? KNOWN_FIELDS[field] : `mock-${field}`;
25
+ }
@@ -0,0 +1,31 @@
1
+ /**
2
+ * M9 — a mock answer that satisfies a JSON Schema.
3
+ *
4
+ * The mock used to answer by field name (`mockValueForField`), and a stage
5
+ * that declares `output_schema` without `fields` got `{"result":"mock-output"}`
6
+ * — which no schema accepts. So a spec with an output schema was not
7
+ * executable in mock mode: the stage failed its own validation and the test
8
+ * errored out. The runtime validated the answer correctly; the mock simply
9
+ * did not know what was being asked for.
10
+ *
11
+ * This builds the answer from the schema instead: the same shape the prompt
12
+ * asks the model for, so the mock answer passes the check the model answer
13
+ * has to pass. That is what makes `pipeline test` a gate: a spec whose
14
+ * schema cannot be satisfied fails the test, and a spec that can be
15
+ * satisfied passes.
16
+ *
17
+ * The schema is the draft-07 subset the runtime supports (see
18
+ * `output-schema.ts`). Unsupported keywords are rejected by the runtime's
19
+ * own meta-validation before this ever runs, so the shapes handled here are
20
+ * the ones the runtime accepts.
21
+ */
22
+ import type { JsonSchema } from '../output-schema.js';
23
+ /**
24
+ * A value that satisfies `schema`.
25
+ *
26
+ * Every `properties` entry gets a value — not only the required ones — so
27
+ * that a schema which asks for optional fields is still answered completely.
28
+ * A schema with no `properties` at all yields `{}`, which is the honest
29
+ * answer: there is nothing to produce.
30
+ */
31
+ export declare function mockValueForSchema(schema: JsonSchema | undefined, depth?: number): unknown;
@@ -0,0 +1,113 @@
1
+ /**
2
+ * M9 — a mock answer that satisfies a JSON Schema.
3
+ *
4
+ * The mock used to answer by field name (`mockValueForField`), and a stage
5
+ * that declares `output_schema` without `fields` got `{"result":"mock-output"}`
6
+ * — which no schema accepts. So a spec with an output schema was not
7
+ * executable in mock mode: the stage failed its own validation and the test
8
+ * errored out. The runtime validated the answer correctly; the mock simply
9
+ * did not know what was being asked for.
10
+ *
11
+ * This builds the answer from the schema instead: the same shape the prompt
12
+ * asks the model for, so the mock answer passes the check the model answer
13
+ * has to pass. That is what makes `pipeline test` a gate: a spec whose
14
+ * schema cannot be satisfied fails the test, and a spec that can be
15
+ * satisfied passes.
16
+ *
17
+ * The schema is the draft-07 subset the runtime supports (see
18
+ * `output-schema.ts`). Unsupported keywords are rejected by the runtime's
19
+ * own meta-validation before this ever runs, so the shapes handled here are
20
+ * the ones the runtime accepts.
21
+ */
22
+ import { validateAgainstSchema } from '../output-schema-validate.js';
23
+ import { KNOWN_FIELDS, mockValueForField } from './mock-fields.js';
24
+ /** Depth guard, mirroring the runtime's own validation bound. */
25
+ const MAX_DEPTH = 32;
26
+ /**
27
+ * A value that satisfies `schema`.
28
+ *
29
+ * Every `properties` entry gets a value — not only the required ones — so
30
+ * that a schema which asks for optional fields is still answered completely.
31
+ * A schema with no `properties` at all yields `{}`, which is the honest
32
+ * answer: there is nothing to produce.
33
+ */
34
+ export function mockValueForSchema(schema, depth = 0) {
35
+ if (!schema || depth > MAX_DEPTH)
36
+ return {};
37
+ // An enum is a closed set: the first value is the answer.
38
+ if (Array.isArray(schema.enum) && schema.enum.length > 0)
39
+ return schema.enum[0];
40
+ const type = pickType(schema);
41
+ switch (type) {
42
+ case 'object': {
43
+ const obj = {};
44
+ for (const [key, sub] of Object.entries(schema.properties ?? {})) {
45
+ obj[key] = valueForProperty(key, sub, depth + 1);
46
+ }
47
+ return obj;
48
+ }
49
+ case 'array': {
50
+ const items = schema.items;
51
+ if (!items)
52
+ return [];
53
+ // One element is enough to satisfy `minItems: 1` and to show the shape.
54
+ return [mockValueForSchema(items, depth + 1)];
55
+ }
56
+ case 'string':
57
+ return mockString(schema);
58
+ case 'integer':
59
+ return 1;
60
+ case 'number':
61
+ return 1;
62
+ case 'boolean':
63
+ return true;
64
+ case 'null':
65
+ return null;
66
+ default:
67
+ // No type declared: an object is the safest answer, because a schema
68
+ // without a type accepts an object.
69
+ return {};
70
+ }
71
+ }
72
+ /**
73
+ * The value for one property.
74
+ *
75
+ * A property the mock knows by name gets that value — but only when the
76
+ * value actually satisfies this property's schema. Otherwise the schema
77
+ * decides, because a known value that does not fit the schema is a worse
78
+ * answer than a generic one that does.
79
+ */
80
+ function valueForProperty(key, schema, depth) {
81
+ const known = key in KNOWN_FIELDS ? KNOWN_FIELDS[key] : mockValueForField(key);
82
+ if (validateAgainstSchema(known, schema).length === 0)
83
+ return known;
84
+ return mockValueForSchema(schema, depth);
85
+ }
86
+ function pickType(schema) {
87
+ const declared = schema.type;
88
+ if (Array.isArray(declared)) {
89
+ // The first type that is not null — null alone would answer "nothing".
90
+ return declared.find((t) => t !== 'null') ?? 'null';
91
+ }
92
+ if (typeof declared === 'string')
93
+ return declared;
94
+ if (schema.properties)
95
+ return 'object';
96
+ if (schema.items)
97
+ return 'array';
98
+ return 'object';
99
+ }
100
+ function mockString(schema) {
101
+ const min = schema.minLength ?? 0;
102
+ let value = 'mock';
103
+ if (value.length < min)
104
+ value = value.padEnd(min, 'x');
105
+ if (schema.pattern) {
106
+ // A pattern cannot be satisfied by guessing. The honest answer is a
107
+ // string that at least honours the length, and the test fails on the
108
+ // pattern — which is the point: a schema nobody can satisfy is a spec
109
+ // nobody can run.
110
+ return value;
111
+ }
112
+ return value;
113
+ }
@@ -12,7 +12,7 @@ export interface SingleTestResult {
12
12
  output?: unknown;
13
13
  }
14
14
  export declare function buildMockProvider(): LLMProvider;
15
- export declare function mockValueForField(field: string): unknown;
15
+ export { mockValueForField } from './mock-fields.js';
16
16
  export interface RunTestOptions {
17
17
  baseDir?: string;
18
18
  timeoutMs?: number;
@@ -9,6 +9,8 @@ import { createModelResolver } from '../model-resolver.js';
9
9
  import { StaticPricingResolver } from '../pricing.js';
10
10
  import { LLMProviderRegistry } from '../provider-registry.js';
11
11
  import { runAssertion } from './assertions.js';
12
+ import { mockValueForSchema } from './mock-schema.js';
13
+ import { mockValueForField } from './mock-fields.js';
12
14
  import { extractStage } from './stage-extractor.js';
13
15
  export function buildMockProvider() {
14
16
  return {
@@ -25,13 +27,20 @@ export function buildMockProvider() {
25
27
  async generateText(prompt, opts) {
26
28
  await new Promise((r) => setTimeout(r, 5));
27
29
  const fields = opts?.fields ?? [];
30
+ // A stage that declares an output schema is validated against it, and
31
+ // the mock has to answer the shape the schema asks for — a mock answer
32
+ // that does not satisfy the schema fails the stage's own validation,
33
+ // and the test errors out instead of testing anything.
34
+ if (opts?.outputSchema) {
35
+ const shaped = mockValueForSchema(opts.outputSchema);
36
+ return { text: JSON.stringify(shaped), usage: { inputTokens: 10, outputTokens: 10 } };
37
+ }
28
38
  if (opts?.outputFormat === 'structured_json' || fields.length > 0) {
29
39
  const obj = {};
30
40
  for (const f of fields)
31
41
  obj[f] = mockValueForField(f);
32
42
  if (Object.keys(obj).length === 0)
33
43
  obj['result'] = 'mock-output';
34
- void prompt;
35
44
  return { text: JSON.stringify(obj), usage: { inputTokens: 10, outputTokens: 10 } };
36
45
  }
37
46
  if (opts?.outputFormat === 'markdown')
@@ -42,19 +51,7 @@ export function buildMockProvider() {
42
51
  },
43
52
  };
44
53
  }
45
- export function mockValueForField(field) {
46
- switch (field) {
47
- case 'findings': return [{ severity: 'high', line: 10, description: 'mock finding: unsanitized input', fix_suggestion: 'sanitize input', cwe_id: 'CWE-89', confidence: 0.9 }];
48
- case 'summary': return { total_findings: 1, critical_count: 0, high_count: 1, medium_count: 0, low_count: 0, overall_risk_score: 7.5, total_packages: 3, vulnerable_count: 1, perf_score: 6.5, estimated_speedup: 'mock 2x speedup', style_score: 7.0, regions_analyzed: 1, doc_score: 7.0, test_score: 7.0, refactor_score: 7.0, design_score: 7.0, endpoints_reviewed: 1, units_analyzed: 1 };
49
- case 'recommendations': return ['mock recommendation: sanitize inputs'];
50
- case 'markdown_report': return '# Mock report\n\nMock summary.\n';
51
- case 'packages': return [{ name: 'mock-pkg', version: '1.0.0', is_vulnerable: true, cves: [{ id: 'CVE-2024-0001', severity: 'high', description: 'mock CVE', fix_version: '1.0.1', confidence: 0.9 }], fix_version: '1.0.1' }];
52
- case 'stats': return { lines_scanned: 10, hunks_scanned: 1 };
53
- case 'rejected': return [];
54
- case 'new_findings_count': return 0;
55
- default: return `mock-${field}`;
56
- }
57
- }
54
+ export { mockValueForField } from './mock-fields.js';
58
55
  function buildLocalFetcher(pipelineDir) {
59
56
  return async (id) => {
60
57
  const candidate = path.join(pipelineDir, `${id}.yaml`);
package/dist/types.d.ts CHANGED
@@ -54,6 +54,17 @@ export interface GenerateOptions {
54
54
  * demo/QA without a real LLM.
55
55
  */
56
56
  outputFormat?: OutputFormat;
57
+ /**
58
+ * The stage's `output_schema`, when it has one.
59
+ *
60
+ * The executor validates the answer against this schema before the next
61
+ * stage runs, so a mock that does not know the schema cannot produce a
62
+ * valid answer: the stage fails its own validation and the test errors
63
+ * out instead of testing anything. A provider that can shape its answer
64
+ * (the mock) uses this; a real provider ignores it and answers the
65
+ * prompt, which asks for the same shape.
66
+ */
67
+ outputSchema?: import('./output-schema.js').JsonSchema;
57
68
  /**
58
69
  * M1 NEW — Multimodal messages (image / audio / video parts). When set,
59
70
  * takes precedence over the string `prompt` argument. Adapters transform
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentsmarket/pipeline-runtime",
3
- "version": "0.5.8",
3
+ "version": "0.5.9",
4
4
  "description": "Runtime for executing PIPELINE.md workflows (multi-skill orchestration). Provider-agnostic (MiniMax, Claude, OpenAI).",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -9,6 +9,14 @@
9
9
  "dist",
10
10
  "README.md"
11
11
  ],
12
+ "scripts": {
13
+ "build": "tsc",
14
+ "test": "vitest run",
15
+ "test:coverage": "vitest run --coverage",
16
+ "dev": "tsx src/index.ts",
17
+ "lint": "tsc --noEmit",
18
+ "typecheck": "tsc --noEmit -p tsconfig.json"
19
+ },
12
20
  "dependencies": {
13
21
  "@anthropic-ai/sdk": "^0.135.0",
14
22
  "@hono/node-server": "^1.13.0",
@@ -34,13 +42,5 @@
34
42
  "publishConfig": {
35
43
  "access": "public"
36
44
  },
37
- "types": "./dist/index.d.ts",
38
- "scripts": {
39
- "build": "tsc",
40
- "test": "vitest run",
41
- "test:coverage": "vitest run --coverage",
42
- "dev": "tsx src/index.ts",
43
- "lint": "tsc --noEmit",
44
- "typecheck": "tsc --noEmit -p tsconfig.json"
45
- }
46
- }
45
+ "types": "./dist/index.d.ts"
46
+ }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 agentsmarket.world contributors
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.