akm-cli 0.9.0-rc.1 → 0.9.0-rc.2
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/CHANGELOG.md +223 -9
- package/SECURITY.md +23 -24
- package/dist/assets/help/help-improve.md +10 -10
- package/dist/assets/hints/cli-hints-full.md +44 -10
- package/dist/assets/hints/cli-hints-short.md +6 -2
- package/dist/assets/{profiles → improve-strategies}/default.json +1 -0
- package/dist/assets/{profiles → improve-strategies}/graph-refresh.json +1 -1
- package/dist/assets/{profiles → improve-strategies}/proactive-maintenance.json +2 -3
- package/dist/assets/{profiles → improve-strategies}/reflect-distill.json +3 -4
- package/dist/assets/stash-skeleton/README.md +28 -0
- package/dist/assets/stash-skeleton/facts/conventions/assets/agent.md +6 -0
- package/dist/assets/stash-skeleton/facts/conventions/assets/command.md +6 -0
- package/dist/assets/stash-skeleton/facts/conventions/assets/fact.md +12 -1
- package/dist/assets/stash-skeleton/facts/conventions/assets/knowledge.md +11 -1
- package/dist/assets/stash-skeleton/facts/conventions/assets/lesson.md +6 -0
- package/dist/assets/stash-skeleton/facts/conventions/assets/memory.md +9 -0
- package/dist/assets/stash-skeleton/facts/conventions/assets/script.md +7 -0
- package/dist/assets/stash-skeleton/facts/conventions/assets/skill.md +7 -0
- package/dist/assets/stash-skeleton/facts/conventions/assets/workflow.md +6 -0
- package/dist/assets/stash-skeleton/facts/conventions/backlinks.md +98 -0
- package/dist/assets/stash-skeleton/facts/conventions/domains.md +63 -0
- package/dist/assets/stash-skeleton/facts/conventions/organization.md +127 -0
- package/dist/assets/tasks/core/backup.yml +1 -0
- package/dist/assets/tasks/core/extract.yml +1 -0
- package/dist/assets/tasks/core/improve.yml +1 -0
- package/dist/assets/tasks/core/index-refresh.yml +1 -0
- package/dist/assets/tasks/core/sync.yml +1 -0
- package/dist/assets/tasks/core/version-check.yml +1 -0
- package/dist/assets/tasks/graph-refresh-weekly.yml +4 -4
- package/dist/assets/templates/html/health.html +5 -1
- package/dist/cli/config-migrate.js +31 -138
- package/dist/cli/config-validate.js +10 -8
- package/dist/cli.js +48 -14
- package/dist/commands/agent/agent-dispatch.js +17 -16
- package/dist/commands/agent/agent-support.js +0 -24
- package/dist/commands/agent/contribute-cli.js +5 -15
- package/dist/commands/backup-cli.js +54 -0
- package/dist/commands/config-cli.js +45 -159
- package/dist/commands/env/secret.js +8 -5
- package/dist/commands/health/checks.js +130 -83
- package/dist/commands/health/html-report.js +4 -0
- package/dist/commands/health/improve-metrics.js +30 -32
- package/dist/commands/health/llm-usage.js +19 -19
- package/dist/commands/health/md-report.js +4 -0
- package/dist/commands/health/metrics.js +2 -1
- package/dist/commands/health/surfaces.js +5 -4
- package/dist/commands/health.js +1 -1
- package/dist/commands/improve/consolidate/chunking.js +2 -2
- package/dist/commands/improve/consolidate.js +28 -25
- package/dist/commands/improve/distill/promote-memory.js +5 -12
- package/dist/commands/improve/distill/quality-gate.js +5 -7
- package/dist/commands/improve/distill.js +16 -5
- package/dist/commands/improve/eligibility.js +22 -12
- package/dist/commands/improve/extract-cli.js +47 -19
- package/dist/commands/improve/extract.js +110 -62
- package/dist/commands/improve/improve-cli.js +38 -16
- package/dist/commands/improve/improve-result-file.js +30 -24
- package/dist/commands/improve/improve-strategies.js +137 -0
- package/dist/commands/improve/improve.js +60 -30
- package/dist/commands/improve/locks.js +66 -45
- package/dist/commands/improve/loop-stages.js +75 -33
- package/dist/commands/improve/memory/memory-belief.js +79 -7
- package/dist/commands/improve/memory/memory-contradiction-detect.js +12 -4
- package/dist/commands/improve/preparation.js +71 -73
- package/dist/commands/improve/procedural.js +3 -2
- package/dist/commands/improve/recombine.js +2 -1
- package/dist/commands/improve/reflect.js +119 -214
- package/dist/commands/improve/shared.js +11 -5
- package/dist/commands/lint/base-linter.js +152 -42
- package/dist/commands/mv-cli.js +809 -0
- package/dist/commands/proposal/proposal-cli.js +18 -8
- package/dist/commands/proposal/propose.js +64 -69
- package/dist/commands/read/knowledge.js +436 -4
- package/dist/commands/read/remember-cli.js +39 -2
- package/dist/commands/read/search-cli.js +6 -1
- package/dist/commands/registry-cli.js +29 -14
- package/dist/commands/remember.js +2 -0
- package/dist/commands/sources/init.js +13 -14
- package/dist/commands/sources/schema-repair.js +2 -4
- package/dist/commands/sources/source-add.js +62 -73
- package/dist/commands/sources/source-manage.js +50 -46
- package/dist/commands/sources/stash-cli.js +41 -4
- package/dist/commands/tasks/default-tasks.js +12 -12
- package/dist/commands/tasks/tasks-cli.js +7 -3
- package/dist/commands/tasks/tasks.js +113 -18
- package/dist/commands/wiki-cli.js +9 -10
- package/dist/core/asset/frontmatter.js +12 -2
- package/dist/core/common.js +5 -3
- package/dist/core/config/config-io.js +28 -17
- package/dist/core/config/config-schema.js +358 -66
- package/dist/core/config/config-types.js +3 -3
- package/dist/core/config/config-version.js +29 -0
- package/dist/core/config/config-walker.js +98 -27
- package/dist/core/config/config.js +132 -266
- package/dist/core/config/deep-merge.js +41 -0
- package/dist/core/config/engine-semantics.js +32 -0
- package/dist/core/errors.js +2 -2
- package/dist/core/extra-params.js +61 -0
- package/dist/core/file-lock.js +201 -56
- package/dist/core/improve-result.js +178 -0
- package/dist/core/maintenance-barrier.js +119 -0
- package/dist/core/migration-backup.js +416 -0
- package/dist/core/paths.js +3 -0
- package/dist/core/redaction.js +358 -0
- package/dist/core/state/migrations.js +17 -2
- package/dist/core/state-db.js +44 -1
- package/dist/indexer/db/db.js +116 -1
- package/dist/indexer/graph/graph-extraction.js +28 -16
- package/dist/indexer/index-writer-lock.js +31 -24
- package/dist/indexer/index-written-assets.js +15 -6
- package/dist/indexer/indexer.js +47 -2
- package/dist/indexer/passes/memory-inference.js +10 -6
- package/dist/indexer/passes/metadata.js +250 -0
- package/dist/indexer/search/db-search.js +111 -44
- package/dist/indexer/search/fts-query.js +41 -0
- package/dist/indexer/search/ranking-contributors.js +48 -0
- package/dist/indexer/search/ranking.js +36 -23
- package/dist/indexer/search/search-fields.js +11 -1
- package/dist/integrations/agent/builder-shared.js +7 -0
- package/dist/integrations/agent/builders.js +5 -52
- package/dist/integrations/agent/config.js +3 -143
- package/dist/integrations/agent/detect.js +17 -2
- package/dist/integrations/agent/engine-resolution.js +202 -0
- package/dist/integrations/agent/index.js +1 -2
- package/dist/integrations/agent/model-aliases.js +7 -2
- package/dist/integrations/agent/profiles.js +6 -99
- package/dist/integrations/agent/runner-dispatch.js +76 -13
- package/dist/integrations/agent/runner.js +76 -207
- package/dist/integrations/agent/spawn.js +4 -6
- package/dist/integrations/harnesses/aider/agent-builder.js +2 -3
- package/dist/integrations/harnesses/aider/index.js +0 -1
- package/dist/integrations/harnesses/amazonq/agent-builder.js +2 -3
- package/dist/integrations/harnesses/amazonq/index.js +0 -1
- package/dist/integrations/harnesses/claude/agent-builder.js +2 -3
- package/dist/integrations/harnesses/claude/index.js +0 -2
- package/dist/integrations/harnesses/codex/agent-builder.js +2 -3
- package/dist/integrations/harnesses/codex/index.js +0 -1
- package/dist/integrations/harnesses/copilot/agent-builder.js +2 -3
- package/dist/integrations/harnesses/copilot/index.js +0 -1
- package/dist/integrations/harnesses/gemini/agent-builder.js +2 -3
- package/dist/integrations/harnesses/gemini/index.js +0 -1
- package/dist/integrations/harnesses/index.js +1 -24
- package/dist/integrations/harnesses/opencode/agent-builder.js +2 -3
- package/dist/integrations/harnesses/opencode/index.js +0 -6
- package/dist/integrations/harnesses/opencode-sdk/harness.js +1 -6
- package/dist/integrations/harnesses/opencode-sdk/sdk-runner.js +274 -191
- package/dist/integrations/harnesses/openhands/agent-builder.js +2 -3
- package/dist/integrations/harnesses/openhands/index.js +0 -1
- package/dist/integrations/harnesses/pi/agent-builder.js +2 -3
- package/dist/integrations/harnesses/pi/index.js +0 -1
- package/dist/integrations/harnesses/types.js +1 -32
- package/dist/integrations/lockfile.js +32 -21
- package/dist/llm/client.js +48 -14
- package/dist/llm/feature-gate.js +15 -47
- package/dist/llm/graph-extract.js +1 -1
- package/dist/llm/index-passes.js +8 -42
- package/dist/llm/memory-infer-impl.js +1 -1
- package/dist/llm/usage-persist.js +4 -0
- package/dist/llm/usage-telemetry.js +35 -5
- package/dist/output/shapes/helpers.js +2 -1
- package/dist/output/shapes/passthrough.js +2 -0
- package/dist/output/text/helpers.js +3 -1
- package/dist/schemas/akm-config.json +11013 -8600
- package/dist/schemas/akm-task.json +87 -0
- package/dist/schemas/akm-workflow.json +57 -13
- package/dist/scripts/migrate-storage.js +8591 -509
- package/dist/scripts/migrations/import-fs-improve-runs-to-db.js +8623 -484
- package/dist/setup/detected-engines.js +142 -0
- package/dist/setup/engine-config.js +89 -0
- package/dist/setup/setup.js +236 -132
- package/dist/setup/steps/connection.js +61 -32
- package/dist/setup/steps/platforms.js +4 -4
- package/dist/setup/steps.js +3 -2
- package/dist/storage/database.js +13 -1
- package/dist/storage/engines/sqlite-migrations.js +1 -0
- package/dist/storage/repositories/improve-runs-repository.js +5 -5
- package/dist/storage/repositories/task-history-repository.js +78 -0
- package/dist/storage/repositories/workflow-runs-repository.js +9 -8
- package/dist/tasks/parser.js +138 -52
- package/dist/tasks/runner.js +71 -75
- package/dist/tasks/schema.js +1 -1
- package/dist/tasks/validator.js +11 -6
- package/dist/wiki/wiki.js +9 -8
- package/dist/workflows/authoring/workflow-program-template.yaml +3 -3
- package/dist/workflows/concurrency-policy.js +15 -0
- package/dist/workflows/db.js +65 -13
- package/dist/workflows/exec/brief.js +18 -24
- package/dist/workflows/exec/frozen-judge.js +47 -0
- package/dist/workflows/exec/native-executor.js +124 -65
- package/dist/workflows/exec/report.js +93 -33
- package/dist/workflows/exec/run-workflow.js +38 -25
- package/dist/workflows/exec/scheduler.js +12 -41
- package/dist/workflows/exec/step-work.js +91 -35
- package/dist/workflows/ir/compile.js +13 -26
- package/dist/workflows/ir/freeze.js +243 -0
- package/dist/workflows/ir/plan-hash.js +40 -5
- package/dist/workflows/ir/schema.js +542 -1
- package/dist/workflows/parser.js +7 -0
- package/dist/workflows/program/parser.js +132 -23
- package/dist/workflows/program/project.js +3 -4
- package/dist/workflows/program/schema.js +2 -2
- package/dist/workflows/resource-limits.js +20 -0
- package/dist/workflows/runtime/plan-classifier.js +187 -0
- package/dist/workflows/runtime/runs.js +54 -47
- package/dist/workflows/runtime/workflow-asset-loader.js +0 -22
- package/dist/workflows/validator.js +25 -0
- package/docs/data-and-telemetry.md +2 -2
- package/docs/migration/release-notes/0.6.0.md +1 -1
- package/docs/migration/release-notes/0.7.0.md +5 -4
- package/docs/migration/v0.8-to-v0.9.md +401 -0
- package/package.json +4 -2
- package/schemas/akm-config.json +16638 -0
- package/schemas/akm-task.json +87 -0
- package/schemas/akm-workflow.json +372 -0
- package/dist/commands/improve/improve-profiles.js +0 -168
- package/dist/core/config/config-migration.js +0 -602
- package/dist/core/deep-merge.js +0 -38
- package/dist/llm/call-ai.js +0 -62
- package/dist/setup/legacy-config.js +0 -106
- package/docs/README.md +0 -104
- /package/dist/assets/{profiles → improve-strategies}/catchup.json +0 -0
- /package/dist/assets/{profiles → improve-strategies}/consolidate.json +0 -0
- /package/dist/assets/{profiles → improve-strategies}/frequent.json +0 -0
- /package/dist/assets/{profiles → improve-strategies}/memory-focus.json +0 -0
- /package/dist/assets/{profiles → improve-strategies}/quick.json +0 -0
- /package/dist/assets/{profiles → improve-strategies}/recombine-only.json +0 -0
- /package/dist/assets/{profiles → improve-strategies}/synthesize.json +0 -0
- /package/dist/assets/{profiles → improve-strategies}/thorough.json +0 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://itlackey.github.io/akm/schemas/akm-task.json",
|
|
4
|
+
"title": "AKM Scheduled Task",
|
|
5
|
+
"description": "Strict version-2 YAML task definition. Exactly one target is required.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["version", "schedule"],
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"properties": {
|
|
10
|
+
"version": { "const": 2 },
|
|
11
|
+
"name": { "type": "string" },
|
|
12
|
+
"description": { "type": "string" },
|
|
13
|
+
"when_to_use": { "type": "string" },
|
|
14
|
+
"tags": { "type": "array", "items": { "type": "string", "minLength": 1 } },
|
|
15
|
+
"schedule": { "type": "string", "minLength": 1 },
|
|
16
|
+
"enabled": { "type": "boolean" },
|
|
17
|
+
"workflow": { "type": "string", "minLength": 1 },
|
|
18
|
+
"prompt": { "type": "string", "minLength": 1 },
|
|
19
|
+
"command": {
|
|
20
|
+
"oneOf": [
|
|
21
|
+
{ "type": "string", "minLength": 1 },
|
|
22
|
+
{ "type": "array", "minItems": 1, "items": { "type": "string", "minLength": 1 } }
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
"params": { "type": "object" },
|
|
26
|
+
"engine": { "type": "string", "minLength": 1 },
|
|
27
|
+
"model": { "type": "string", "minLength": 1 },
|
|
28
|
+
"timeoutMs": { "type": ["integer", "null"], "minimum": 1 },
|
|
29
|
+
"llm": { "$ref": "#/definitions/llm" }
|
|
30
|
+
},
|
|
31
|
+
"oneOf": [
|
|
32
|
+
{
|
|
33
|
+
"required": ["workflow"],
|
|
34
|
+
"not": { "anyOf": [{ "required": ["prompt"] }, { "required": ["command"] }, { "required": ["engine"] }, { "required": ["model"] }, { "required": ["timeoutMs"] }, { "required": ["llm"] }] }
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"required": ["prompt"],
|
|
38
|
+
"not": { "anyOf": [{ "required": ["workflow"] }, { "required": ["command"] }, { "required": ["params"] }] }
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"required": ["command"],
|
|
42
|
+
"not": { "anyOf": [{ "required": ["workflow"] }, { "required": ["prompt"] }, { "required": ["params"] }, { "required": ["engine"] }, { "required": ["model"] }, { "required": ["llm"] }] }
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"definitions": {
|
|
46
|
+
"llm": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"additionalProperties": false,
|
|
49
|
+
"properties": {
|
|
50
|
+
"temperature": { "type": "number" },
|
|
51
|
+
"maxTokens": { "type": "integer", "minimum": 1 },
|
|
52
|
+
"supportsJsonSchema": { "type": "boolean" },
|
|
53
|
+
"extraParams": { "$ref": "#/definitions/extraParams" },
|
|
54
|
+
"contextLength": { "type": "integer", "minimum": 1 },
|
|
55
|
+
"enableThinking": { "type": "boolean" }
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"extraParams": {
|
|
59
|
+
"type": "object",
|
|
60
|
+
"description": "Provider-specific request fields. Top-level AKM-owned fields are forbidden; credential-shaped keys are forbidden recursively after lowercase/non-alphanumeric normalization.",
|
|
61
|
+
"propertyNames": {
|
|
62
|
+
"not": {
|
|
63
|
+
"enum": ["model", "messages", "temperature", "maxtokens", "responseformat", "stream", "streamoptions", "enablethinking", "authorization", "headers", "apikey", "token", "password", "secret", "cookie", "setcookie"]
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"additionalProperties": { "$ref": "#/definitions/extraParamValue" },
|
|
67
|
+
"x-akm-protectedTopLevelNormalizedKeys": ["model", "messages", "temperature", "maxtokens", "responseformat", "stream", "streamoptions", "enablethinking"],
|
|
68
|
+
"x-akm-recursivelyForbiddenNormalizedKeys": ["authorization", "headers", "apikey", "token", "password", "secret", "cookie", "setcookie"]
|
|
69
|
+
},
|
|
70
|
+
"extraParamValue": {
|
|
71
|
+
"anyOf": [
|
|
72
|
+
{ "type": ["string", "number", "boolean", "null"] },
|
|
73
|
+
{ "type": "array", "items": { "$ref": "#/definitions/extraParamValue" } },
|
|
74
|
+
{
|
|
75
|
+
"type": "object",
|
|
76
|
+
"propertyNames": {
|
|
77
|
+
"not": {
|
|
78
|
+
"enum": ["authorization", "headers", "apikey", "token", "password", "secret", "cookie", "setcookie"]
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"additionalProperties": { "$ref": "#/definitions/extraParamValue" },
|
|
82
|
+
"x-akm-recursivelyForbiddenNormalizedKeys": ["authorization", "headers", "apikey", "token", "password", "secret", "cookie", "setcookie"]
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"additionalProperties": false,
|
|
9
9
|
"properties": {
|
|
10
10
|
"version": {
|
|
11
|
-
"const":
|
|
12
|
-
"description": "Workflow program format version. Only
|
|
11
|
+
"const": 2,
|
|
12
|
+
"description": "Workflow program format version. Only 2 is valid."
|
|
13
13
|
},
|
|
14
14
|
"name": {
|
|
15
15
|
"type": "string",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"params": {
|
|
24
24
|
"type": "object",
|
|
25
|
+
"maxProperties": 128,
|
|
25
26
|
"description": "Run parameters: param name -> JSON Schema declaration. Names must be ${{ params.<name> }}-addressable identifiers.",
|
|
26
27
|
"propertyNames": {
|
|
27
28
|
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
|
|
@@ -39,6 +40,7 @@
|
|
|
39
40
|
"steps": {
|
|
40
41
|
"type": "array",
|
|
41
42
|
"minItems": 1,
|
|
43
|
+
"maxItems": 256,
|
|
42
44
|
"items": {
|
|
43
45
|
"$ref": "#/definitions/step"
|
|
44
46
|
}
|
|
@@ -63,14 +65,50 @@
|
|
|
63
65
|
}
|
|
64
66
|
]
|
|
65
67
|
},
|
|
66
|
-
"runner": {
|
|
67
|
-
"description": "Execution backend for a unit; inherit defers to the run-level default.",
|
|
68
|
-
"enum": ["llm", "agent", "sdk", "inherit"]
|
|
69
|
-
},
|
|
70
68
|
"onError": {
|
|
71
69
|
"description": "Failure policy: fail the step on the first unit failure (default), or record failures and let the gate decide.",
|
|
72
70
|
"enum": ["fail", "continue"]
|
|
73
71
|
},
|
|
72
|
+
"llm": {
|
|
73
|
+
"type": "object",
|
|
74
|
+
"additionalProperties": false,
|
|
75
|
+
"properties": {
|
|
76
|
+
"temperature": { "type": "number" },
|
|
77
|
+
"max_tokens": { "type": "integer", "minimum": 1 },
|
|
78
|
+
"supports_json_schema": { "type": "boolean" },
|
|
79
|
+
"extra_params": { "$ref": "#/definitions/extraParams" },
|
|
80
|
+
"context_length": { "type": "integer", "minimum": 1 },
|
|
81
|
+
"enable_thinking": { "type": "boolean" }
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"extraParams": {
|
|
85
|
+
"type": "object",
|
|
86
|
+
"description": "Provider-specific request fields. Top-level AKM-owned fields are forbidden; credential-shaped keys are forbidden recursively after lowercase/non-alphanumeric normalization.",
|
|
87
|
+
"propertyNames": {
|
|
88
|
+
"not": {
|
|
89
|
+
"enum": ["model", "messages", "temperature", "maxtokens", "responseformat", "stream", "streamoptions", "enablethinking", "authorization", "headers", "apikey", "token", "password", "secret", "cookie", "setcookie"]
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"additionalProperties": { "$ref": "#/definitions/extraParamValue" },
|
|
93
|
+
"x-akm-protectedTopLevelNormalizedKeys": ["model", "messages", "temperature", "maxtokens", "responseformat", "stream", "streamoptions", "enablethinking"],
|
|
94
|
+
"x-akm-recursivelyForbiddenNormalizedKeys": ["authorization", "headers", "apikey", "token", "password", "secret", "cookie", "setcookie"]
|
|
95
|
+
},
|
|
96
|
+
"extraParamValue": {
|
|
97
|
+
"anyOf": [
|
|
98
|
+
{ "type": ["string", "number", "boolean", "null"] },
|
|
99
|
+
{ "type": "array", "items": { "$ref": "#/definitions/extraParamValue" } },
|
|
100
|
+
{
|
|
101
|
+
"type": "object",
|
|
102
|
+
"propertyNames": {
|
|
103
|
+
"not": {
|
|
104
|
+
"enum": ["authorization", "headers", "apikey", "token", "password", "secret", "cookie", "setcookie"]
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"additionalProperties": { "$ref": "#/definitions/extraParamValue" },
|
|
108
|
+
"x-akm-recursivelyForbiddenNormalizedKeys": ["authorization", "headers", "apikey", "token", "password", "secret", "cookie", "setcookie"]
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
},
|
|
74
112
|
"reducer": {
|
|
75
113
|
"description": "How a map step folds per-item unit results into the step artifact.",
|
|
76
114
|
"enum": ["collect", "vote"]
|
|
@@ -133,6 +171,7 @@
|
|
|
133
171
|
"max_units": {
|
|
134
172
|
"type": "integer",
|
|
135
173
|
"minimum": 1,
|
|
174
|
+
"maximum": 10000,
|
|
136
175
|
"description": "Ceiling on total dispatched units across the run (seeded from journaled unit rows)."
|
|
137
176
|
}
|
|
138
177
|
}
|
|
@@ -142,8 +181,9 @@
|
|
|
142
181
|
"description": "Run-level defaults, overridable per unit.",
|
|
143
182
|
"additionalProperties": false,
|
|
144
183
|
"properties": {
|
|
145
|
-
"
|
|
146
|
-
"
|
|
184
|
+
"engine": {
|
|
185
|
+
"type": "string",
|
|
186
|
+
"minLength": 1
|
|
147
187
|
},
|
|
148
188
|
"model": {
|
|
149
189
|
"type": "string",
|
|
@@ -155,6 +195,9 @@
|
|
|
155
195
|
},
|
|
156
196
|
"on_error": {
|
|
157
197
|
"$ref": "#/definitions/onError"
|
|
198
|
+
},
|
|
199
|
+
"llm": {
|
|
200
|
+
"$ref": "#/definitions/llm"
|
|
158
201
|
}
|
|
159
202
|
}
|
|
160
203
|
},
|
|
@@ -164,18 +207,18 @@
|
|
|
164
207
|
"required": ["instructions"],
|
|
165
208
|
"additionalProperties": false,
|
|
166
209
|
"properties": {
|
|
167
|
-
"
|
|
168
|
-
"$ref": "#/definitions/runner"
|
|
169
|
-
},
|
|
170
|
-
"profile": {
|
|
210
|
+
"engine": {
|
|
171
211
|
"type": "string",
|
|
172
212
|
"minLength": 1,
|
|
173
|
-
"description": "
|
|
213
|
+
"description": "Named engine selected at workflow start."
|
|
174
214
|
},
|
|
175
215
|
"model": {
|
|
176
216
|
"type": "string",
|
|
177
217
|
"minLength": 1
|
|
178
218
|
},
|
|
219
|
+
"llm": {
|
|
220
|
+
"$ref": "#/definitions/llm"
|
|
221
|
+
},
|
|
179
222
|
"timeout": {
|
|
180
223
|
"$ref": "#/definitions/timeout"
|
|
181
224
|
},
|
|
@@ -244,6 +287,7 @@
|
|
|
244
287
|
"when": {
|
|
245
288
|
"type": "object",
|
|
246
289
|
"minProperties": 1,
|
|
290
|
+
"maxProperties": 256,
|
|
247
291
|
"description": "Match value -> target step id.",
|
|
248
292
|
"additionalProperties": {
|
|
249
293
|
"$ref": "#/definitions/identifier"
|