opencode-orchestrator 1.5.4 → 1.6.0
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 +21 -2
- package/dist/agents/prompts/registry.d.ts +39 -0
- package/dist/core/config/options-schema.d.ts +37 -0
- package/dist/core/knowledge/context-provider.d.ts +1 -1
- package/dist/core/knowledge/hybrid-search.d.ts +2 -1
- package/dist/core/knowledge/retrieval-weights.d.ts +29 -0
- package/dist/core/loop/evidence.d.ts +22 -0
- package/dist/core/loop/mission-loop.d.ts +2 -0
- package/dist/index.js +421 -48
- package/dist/index.js.map +4 -4
- package/dist/utils/parsing/safe-json.d.ts +17 -0
- package/opencode-orchestrator.schema.json +75 -0
- package/package.json +4 -2
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tolerant JSON parsing for model- and network-authored payloads.
|
|
3
|
+
*
|
|
4
|
+
* Builder learning (adoption assessment 2026-06-19, item F): LLM/provider output
|
|
5
|
+
* and fetched bodies are frequently wrapped in markdown fences, padded with
|
|
6
|
+
* prose, or left with trailing commas. Instead of hard-failing, attempt a small
|
|
7
|
+
* sequence of repairs and fall back gracefully.
|
|
8
|
+
*
|
|
9
|
+
* This is intentionally NOT used for our own machine-written state files
|
|
10
|
+
* (mission-loop.json, ledger, cache) where a strict parse should surface
|
|
11
|
+
* corruption rather than mask it.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Parse JSON, repairing common LLM/network defects. Returns `fallback`
|
|
15
|
+
* (default `null`) if every attempt fails.
|
|
16
|
+
*/
|
|
17
|
+
export declare function safeJsonParse<T = unknown>(input: unknown, fallback?: T | null): T | null;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"agentConcurrency": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"propertyNames": {
|
|
8
|
+
"type": "string"
|
|
9
|
+
},
|
|
10
|
+
"additionalProperties": {
|
|
11
|
+
"type": "integer",
|
|
12
|
+
"exclusiveMinimum": 0,
|
|
13
|
+
"maximum": 9007199254740991
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"providerConcurrency": {
|
|
17
|
+
"type": "object",
|
|
18
|
+
"propertyNames": {
|
|
19
|
+
"type": "string"
|
|
20
|
+
},
|
|
21
|
+
"additionalProperties": {
|
|
22
|
+
"type": "integer",
|
|
23
|
+
"exclusiveMinimum": 0,
|
|
24
|
+
"maximum": 9007199254740991
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"modelConcurrency": {
|
|
28
|
+
"type": "object",
|
|
29
|
+
"propertyNames": {
|
|
30
|
+
"type": "string"
|
|
31
|
+
},
|
|
32
|
+
"additionalProperties": {
|
|
33
|
+
"type": "integer",
|
|
34
|
+
"exclusiveMinimum": 0,
|
|
35
|
+
"maximum": 9007199254740991
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"defaultConcurrency": {
|
|
39
|
+
"type": "integer",
|
|
40
|
+
"exclusiveMinimum": 0,
|
|
41
|
+
"maximum": 9007199254740991
|
|
42
|
+
},
|
|
43
|
+
"missionLoop": {
|
|
44
|
+
"default": {
|
|
45
|
+
"ledger": true,
|
|
46
|
+
"markdownMemory": true,
|
|
47
|
+
"maxEvidenceEvents": 20
|
|
48
|
+
},
|
|
49
|
+
"type": "object",
|
|
50
|
+
"properties": {
|
|
51
|
+
"ledger": {
|
|
52
|
+
"default": true,
|
|
53
|
+
"type": "boolean"
|
|
54
|
+
},
|
|
55
|
+
"markdownMemory": {
|
|
56
|
+
"default": true,
|
|
57
|
+
"type": "boolean"
|
|
58
|
+
},
|
|
59
|
+
"maxEvidenceEvents": {
|
|
60
|
+
"default": 20,
|
|
61
|
+
"type": "integer",
|
|
62
|
+
"exclusiveMinimum": 0,
|
|
63
|
+
"maximum": 9007199254740991
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"required": [
|
|
67
|
+
"ledger",
|
|
68
|
+
"markdownMemory",
|
|
69
|
+
"maxEvidenceEvents"
|
|
70
|
+
],
|
|
71
|
+
"additionalProperties": false
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"additionalProperties": {}
|
|
75
|
+
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "opencode-orchestrator",
|
|
3
3
|
"displayName": "OpenCode Orchestrator",
|
|
4
4
|
"description": "Multi-agent mission control for OpenCode with Commander, Planner, Worker, and Reviewer workflows.",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.6.0",
|
|
6
6
|
"author": "agnusdei1207",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"repository": {
|
|
@@ -37,7 +37,8 @@
|
|
|
37
37
|
"scripts/run-install-hook.mjs",
|
|
38
38
|
"bin",
|
|
39
39
|
"README.md",
|
|
40
|
-
"LICENSE"
|
|
40
|
+
"LICENSE",
|
|
41
|
+
"opencode-orchestrator.schema.json"
|
|
41
42
|
],
|
|
42
43
|
"scripts": {
|
|
43
44
|
"docker:build-all": "docker compose run --rm dev && docker compose run --rm rust-arm64 && docker compose run --rm win-builder",
|
|
@@ -46,6 +47,7 @@
|
|
|
46
47
|
"docker:test": "docker compose run --rm test",
|
|
47
48
|
"docker:clean": "docker compose down -v",
|
|
48
49
|
"build": "node scripts/build.mjs",
|
|
50
|
+
"gen:schema": "esbuild scripts/gen-schema.ts --bundle --platform=node --format=esm --outfile=node_modules/.cache/gen-schema.mjs && node node_modules/.cache/gen-schema.mjs",
|
|
49
51
|
"build:all": "npm run build && npm run docker:rust-dist",
|
|
50
52
|
"test": "vitest run --reporter=verbose",
|
|
51
53
|
"test:coverage": "vitest run --coverage",
|