@osovv/vv-opencode 1.0.2 → 1.1.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/CHANGELOG.md +24 -0
- package/README.md +62 -8
- package/dist/cli.js +4 -1
- package/dist/cli.js.map +1 -1
- package/dist/commands/completion.js +34 -6
- package/dist/commands/completion.js.map +1 -1
- package/dist/commands/orchestration.d.ts +25 -0
- package/dist/commands/orchestration.js +185 -0
- package/dist/commands/orchestration.js.map +1 -0
- package/dist/commands/patch-provider.d.ts +18 -29
- package/dist/commands/patch-provider.js +28 -31
- package/dist/commands/patch-provider.js.map +1 -1
- package/dist/commands/preset.d.ts +8 -1
- package/dist/commands/preset.js +49 -18
- package/dist/commands/preset.js.map +1 -1
- package/dist/commands/status.js +5 -3
- package/dist/commands/status.js.map +1 -1
- package/dist/lib/opencode.d.ts +4 -0
- package/dist/lib/opencode.js +14 -3
- package/dist/lib/opencode.js.map +1 -1
- package/dist/lib/orchestration.d.ts +21 -0
- package/dist/lib/orchestration.js +118 -0
- package/dist/lib/orchestration.js.map +1 -0
- package/dist/lib/vvoc-config.d.ts +25 -0
- package/dist/lib/vvoc-config.js +24 -7
- package/dist/lib/vvoc-config.js.map +1 -1
- package/dist/lib/vvoc-preset-registry.d.ts +26 -8
- package/dist/lib/vvoc-preset-registry.js +18 -10
- package/dist/lib/vvoc-preset-registry.js.map +1 -1
- package/dist/plugins/system-context-injection/index.js +17 -38
- package/dist/plugins/system-context-injection/index.js.map +1 -1
- package/dist/plugins/workflow/index.js +42 -6
- package/dist/plugins/workflow/index.js.map +1 -1
- package/package.json +1 -1
- package/schemas/vvoc/v3.json +23 -1
- package/templates/agents/vv-controller.md +77 -111
- package/templates/skills/vv-execute/SKILL.md +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
## 1.1.0 (2026-07-11)
|
|
2
|
+
|
|
3
|
+
### Summary
|
|
4
|
+
|
|
5
|
+
This release introduces orchestration profiles—single-session, balanced, and orchestrated—that let users control how vv-controller delegates work at runtime, with built-in presets automatically selecting a sensible default, a new `vvoc orchestration show|set` CLI command for explicit profile management, and status diagnostics that report the effective profile from the selected config source; alongside this, the managed OpenAI preset has been renamed to vv-codex with explicit Codex subscription-safe token limits to prevent compaction failures, the managed controller prompt and skill templates have been made profile-neutral to eliminate context pollution, and the repository agent guide has been rewritten for clarity.
|
|
6
|
+
|
|
7
|
+
* chore: archive applied orchestration profiles change ([09228ac](https://github.com/osovv/vv-opencode/commit/09228ac))
|
|
8
|
+
* chore(grace): archive applied Codex preset change ([5d7157c](https://github.com/osovv/vv-opencode/commit/5d7157c))
|
|
9
|
+
* docs: document orchestration profiles ([01b5786](https://github.com/osovv/vv-opencode/commit/01b5786))
|
|
10
|
+
* docs(grace): improve repository agent guide ([f5e9e3b](https://github.com/osovv/vv-opencode/commit/f5e9e3b))
|
|
11
|
+
* docs(grace): project orchestration modules and flows ([e66875c](https://github.com/osovv/vv-opencode/commit/e66875c))
|
|
12
|
+
* feat(cli): add scoped orchestration command ([c5bb612](https://github.com/osovv/vv-opencode/commit/c5bb612))
|
|
13
|
+
* feat(cli): register orchestration completions ([ec26cfc](https://github.com/osovv/vv-opencode/commit/ec26cfc))
|
|
14
|
+
* feat(config): add orchestration profiles to schema v3 ([6c920c3](https://github.com/osovv/vv-opencode/commit/6c920c3))
|
|
15
|
+
* feat(context): inject concrete controller policy ([1941c34](https://github.com/osovv/vv-opencode/commit/1941c34))
|
|
16
|
+
* feat(grace): plan preset orchestration profiles ([997a1ea](https://github.com/osovv/vv-opencode/commit/997a1ea))
|
|
17
|
+
* feat(orchestration): add profile policy domain ([6de8219](https://github.com/osovv/vv-opencode/commit/6de8219))
|
|
18
|
+
* feat(preset): apply orchestration profiles atomically ([161d7ff](https://github.com/osovv/vv-opencode/commit/161d7ff))
|
|
19
|
+
* feat(status): report effective orchestration profile ([473d92e](https://github.com/osovv/vv-opencode/commit/473d92e))
|
|
20
|
+
* feat(workflow): select profile-compatible guidance ([b664d4b](https://github.com/osovv/vv-opencode/commit/b664d4b))
|
|
21
|
+
* test(skills): protect workflow discovery metadata ([be76244](https://github.com/osovv/vv-opencode/commit/be76244))
|
|
22
|
+
* refactor(controller): keep managed prompt profile neutral ([092b995](https://github.com/osovv/vv-opencode/commit/092b995))
|
|
23
|
+
* fix(codex): rename managed presets and set safe limits ([ae77c7c](https://github.com/osovv/vv-opencode/commit/ae77c7c))
|
|
24
|
+
|
|
1
25
|
## <small>1.0.2 (2026-07-10)</small>
|
|
2
26
|
|
|
3
27
|
### Summary
|
package/README.md
CHANGED
|
@@ -154,13 +154,14 @@ OpenCode is a strong, flexible base for agentic coding, but it intentionally lea
|
|
|
154
154
|
| Area | What you get |
|
|
155
155
|
|---|---|
|
|
156
156
|
| **Plugins** | A curated set of OpenCode plugins that make agentic work more structured, portable, and safer without hand-wiring each piece yourself |
|
|
157
|
-
| **Agent System** | A default controller that
|
|
157
|
+
| **Agent System** | A default controller (vv-controller) that follows the concrete work policy selected by the orchestration profile |
|
|
158
158
|
| **Skills** | Guided workflows for turning ideas into specs, specs into plans, plans into execution, reviews into findings, and long sessions into reusable memory |
|
|
159
159
|
| **Spec-to-Code Pipeline** | A repeatable path from request → spec → plan → implementation → review, so agents do not silently skip requirements or acceptance criteria |
|
|
160
160
|
| **One-Click Setup** | Recreate the same opinionated workflow on a new machine or project with `vvoc install` / `vvoc sync` |
|
|
161
|
-
| **CLI Tooling** | Operate and diagnose the setup from one CLI: install, sync, launch, status, doctor, roles, presets, plugin toggles, completion, and upgrade |
|
|
161
|
+
| **CLI Tooling** | Operate and diagnose the setup from one CLI: install, sync, launch, status, doctor, roles, presets, orchestration profiles, plugin toggles, completion, and upgrade |
|
|
162
162
|
| **Long-Run Safety** | Guardian keeps safe long/AFK runs moving by auto-approving routine low-risk permissions, while risky actions stay in OpenCode's manual approval flow; secrets redaction reduces accidental leakage |
|
|
163
163
|
| **Model Roles** | Put roles like `vv-role:smart` or `vv-role:fast` in shared agents and skills instead of hardcoded model IDs, then choose provider/model mappings per environment |
|
|
164
|
+
| **Orchestration Profiles** | Select a concrete work policy — single-session, balanced, or orchestrated — to control how vv-controller delegates. Built-in presets pick a sensible default and status reports the effective profile. |
|
|
164
165
|
| **Workflow Tracking** | Replace free-form multi-agent chaos with explicit work items, bounded review rounds, reviewer result collection, and hard stops when more context is needed |
|
|
165
166
|
|
|
166
167
|
---
|
|
@@ -173,7 +174,7 @@ OpenCode is a strong, flexible base for agentic coding, but it intentionally lea
|
|
|
173
174
|
| **ModelRolesPlugin** | Use semantic model roles instead of hardcoded model IDs in OpenCode agents, subagents, and command configs — e.g. `vv-role:smart`, `vv-role:fast` — then map those roles per machine or project. |
|
|
174
175
|
| **GuardianPlugin** | Keep long or AFK agent runs moving by auto-approving routine low-risk permission requests. If something looks risky, Guardian does not auto-approve it and leaves the decision to OpenCode's normal manual approval flow. |
|
|
175
176
|
| **HashlineEditPlugin** | Make agent edits safer by tying changes to fresh `read` output, reducing wrong-line and stale-context edits. |
|
|
176
|
-
| **SystemContextInjectionPlugin** |
|
|
177
|
+
| **SystemContextInjectionPlugin** | Inject universal primary guidance plus one startup-resolved orchestration policy into vv-controller, with skill discovery and subagent-only explore worker prompts. |
|
|
177
178
|
| **SecretsRedactionPlugin** | Reduce accidental secret leakage by redacting tokens, keys, emails, and other sensitive values before messages are sent to the model. |
|
|
178
179
|
|
|
179
180
|
Workflow work items are opened with explicit intent. For implementation loops, controllers use:
|
|
@@ -211,12 +212,65 @@ For review-only reports, use `"mode": "review_only"`. In review-only mode, revie
|
|
|
211
212
|
| `vvoc guardian config` | Print or write guardian section |
|
|
212
213
|
| `vvoc plugin list` | List OpenCode plugin entries |
|
|
213
214
|
| `vvoc plugin enable\|disable` | Toggle a vvoc-managed plugin on or off |
|
|
214
|
-
| `vvoc
|
|
215
|
+
| `vvoc orchestration show\|set` | Show or set the vv-controller orchestration profile |
|
|
216
|
+
| `vvoc patch-provider stepfun-ai\|zai\|codex` | Patch an OpenCode provider; `codex` adds subscription-safe OpenAI aliases and also accepts `openai` for compatibility |
|
|
215
217
|
| `vvoc completion` | Install shell completions |
|
|
216
218
|
| `vvoc upgrade` | Upgrade global package and run follow-up sync; sync failure is reported as a partial upgrade |
|
|
217
219
|
| `vvoc version` | Print installed version |
|
|
218
220
|
|
|
219
221
|
---
|
|
222
|
+
---
|
|
223
|
+
|
|
224
|
+
## Orchestration Profiles
|
|
225
|
+
|
|
226
|
+
Three concrete policies control how vv-controller delegates work at runtime:
|
|
227
|
+
|
|
228
|
+
- `single-session`: vv-controller performs exploration, investigation, planning, implementation,
|
|
229
|
+
and verification directly. Independent reviewer subagents remain available when the user
|
|
230
|
+
explicitly requests review or when a materially risky completed change benefits from independent
|
|
231
|
+
cross-model evaluation.
|
|
232
|
+
- `balanced`: vv-controller keeps architecture, critical reading, and final synthesis in the
|
|
233
|
+
primary session and may selectively delegate bounded search, investigation, mechanical
|
|
234
|
+
implementation, or review when that is the lightest safe route. Delegation is optional, not
|
|
235
|
+
mechanically mandatory.
|
|
236
|
+
- `orchestrated`: vv-controller uses the full tracked implementer/reviewer workflow with
|
|
237
|
+
explicit work items, required reviewers, bounded rounds, and hard stops.
|
|
238
|
+
|
|
239
|
+
Pick a profile explicitly or let a built-in preset select one:
|
|
240
|
+
|
|
241
|
+
```bash
|
|
242
|
+
vvoc orchestration show --scope effective
|
|
243
|
+
vvoc orchestration set single-session --scope project
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
Built-in presets declare an orchestration mapping:
|
|
247
|
+
|
|
248
|
+
| Preset | Profile |
|
|
249
|
+
|---|---|
|
|
250
|
+
| `vv-codex` | single-session |
|
|
251
|
+
| `vv-osovv` | single-session |
|
|
252
|
+
| `vv-osovv-cheap` | single-session |
|
|
253
|
+
| `vv-zai` | balanced |
|
|
254
|
+
| `vv-minimax` | balanced |
|
|
255
|
+
| `vv-deepseek` | balanced |
|
|
256
|
+
|
|
257
|
+
Applying a built-in preset changes both model roles and the root orchestration profile
|
|
258
|
+
atomically. A custom user-defined preset without an orchestration section preserves the current
|
|
259
|
+
root profile. `vvoc status` reports the profile resolved from the selected vvoc source; effective
|
|
260
|
+
status with no config files reports `balanced`.
|
|
261
|
+
|
|
262
|
+
### Prompt-only first version
|
|
263
|
+
|
|
264
|
+
Profiles are enforced through the concrete policy injected into vv-controller at startup —
|
|
265
|
+
the model only receives its active work instructions and does not see inactive profile alternatives.
|
|
266
|
+
The first version does not disable tools, change permissions, or block subagent types; the policy
|
|
267
|
+
is prompt-driven and asynchronous vv-execute classic mode remains available through that skill's
|
|
268
|
+
explicit inline/classic selection.
|
|
269
|
+
|
|
270
|
+
### Restart requirement
|
|
271
|
+
|
|
272
|
+
Config changes to the orchestration profile take effect after an OpenCode restart. Runtime plugins
|
|
273
|
+
resolve the profile once from the startup vvoc config snapshot and do not live-reload.
|
|
220
274
|
|
|
221
275
|
## Model Roles & Presets
|
|
222
276
|
|
|
@@ -228,11 +282,11 @@ vvoc role list --scope effective
|
|
|
228
282
|
# Assign models to roles
|
|
229
283
|
vvoc role set default openai/gpt-5.4
|
|
230
284
|
vvoc role set team-review anthropic/claude-sonnet-4-5 --scope project
|
|
231
|
-
vvoc role set smart openai/vv-gpt-5.5-xhigh
|
|
285
|
+
vvoc role set smart openai/vv-codex-gpt-5.5-xhigh
|
|
232
286
|
vvoc role set fast openai/gpt-5.4-mini
|
|
233
287
|
|
|
234
288
|
# Switch provider presets
|
|
235
|
-
vvoc preset vv-
|
|
289
|
+
vvoc preset vv-codex
|
|
236
290
|
vvoc preset vv-zai
|
|
237
291
|
vvoc preset vv-deepseek
|
|
238
292
|
vvoc preset vv-minimax
|
|
@@ -315,7 +369,7 @@ All prompt files are scaffolded by `vvoc install` / `vvoc sync`:
|
|
|
315
369
|
|
|
316
370
|
| Agent | When it helps |
|
|
317
371
|
|---|---|
|
|
318
|
-
| `vv-controller` |
|
|
372
|
+
| `vv-controller` | Primary agent that follows the concrete work policy selected for the session by the orchestration profile |
|
|
319
373
|
| `enhancer` | Improves rough requests before execution when a clearer prompt would help |
|
|
320
374
|
| `vv-implementer` | Applies a focused approved change and verifies it before reporting completion |
|
|
321
375
|
| `vv-spec-reviewer` | Checks whether implementation matches the requested spec and acceptance criteria |
|
|
@@ -333,7 +387,7 @@ Six workflow skills are scaffolded alongside agents:
|
|
|
333
387
|
|---|---|---|
|
|
334
388
|
| `vv-spec` | You have a feature or creative request and no agreed contract yet | A guided interview, recommended options, and a saved spec in `.vvoc/specs/YYYY-MM-DD-<slug>/spec.xml` |
|
|
335
389
|
| `vv-plan` | A spec is approved and ready to implement | A task-level implementation plan with file targets, contracts, dependencies, and acceptance criteria |
|
|
336
|
-
| `vv-execute` | A plan is approved and you want it applied step by step | Ordered execution with verification and applied spec/plan archival |
|
|
390
|
+
| `vv-execute` | A plan is approved and you want it applied step by step | Ordered execution with verification, explicit inline-or-classic mode choice, and applied spec/plan archival |
|
|
337
391
|
| `vv-review` | You want findings, not fixes | A review-only workflow that reports spec/code issues and stops before implementation |
|
|
338
392
|
| `vv-reflect` | A long development, debugging, ops, or investigation session produced reusable knowledge | Durable notes in existing docs or `.vvoc/lessons` / `.vvoc/runbooks` for future agents |
|
|
339
393
|
| `vv-handoff` | You are ending a session and want the visible context preserved for a future session | A redacted XML note at `.vvoc/handoff/YYYY-MM-DD-<session-slug>/handoff.xml`, without running new checks or collecting fresh context |
|
package/dist/cli.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// START_MODULE_CONTRACT
|
|
5
5
|
// PURPOSE: Assemble and run the vvoc CLI entrypoint.
|
|
6
6
|
// SCOPE: Package version lookup, top-level command registration, and main command execution.
|
|
7
|
-
// DEPENDS: [citty, src/commands/completion.ts, src/commands/config.ts, src/commands/doctor.ts, src/commands/guardian.ts, src/commands/init.ts, src/commands/install.ts, src/commands/launch.ts, src/commands/patch-provider.ts, src/commands/preset.ts, src/commands/plugin.ts, src/commands/role.ts, src/commands/status.ts, src/commands/sync.ts, src/commands/upgrade.ts, src/commands/version.ts, src/lib/package.ts]
|
|
7
|
+
// DEPENDS: [citty, src/commands/completion.ts, src/commands/config.ts, src/commands/doctor.ts, src/commands/guardian.ts, src/commands/init.ts, src/commands/install.ts, src/commands/launch.ts, src/commands/orchestration.ts, src/commands/patch-provider.ts, src/commands/preset.ts, src/commands/plugin.ts, src/commands/role.ts, src/commands/status.ts, src/commands/sync.ts, src/commands/upgrade.ts, src/commands/version.ts, src/lib/package.ts]
|
|
8
8
|
// LINKS: [M-CLI-COMMANDS]
|
|
9
9
|
// ROLE: SCRIPT
|
|
10
10
|
// MAP_MODE: LOCALS
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
//
|
|
18
18
|
// START_CHANGE_SUMMARY
|
|
19
19
|
// LAST_CHANGE: [v0.2.11 - Aligned meta description with package.json, README, and GitHub repo; license and badge polish.]
|
|
20
|
+
// LAST_CHANGE: [C-PRESET-ORCHESTRATION-PROFILES - Registered the top-level orchestration command.]
|
|
20
21
|
// END_CHANGE_SUMMARY
|
|
21
22
|
import { defineCommand, runMain } from "citty";
|
|
22
23
|
import completion from "./commands/completion.js";
|
|
@@ -26,6 +27,7 @@ import guardian from "./commands/guardian.js";
|
|
|
26
27
|
import init from "./commands/init.js";
|
|
27
28
|
import install from "./commands/install.js";
|
|
28
29
|
import launch from "./commands/launch.js";
|
|
30
|
+
import orchestration from "./commands/orchestration.js";
|
|
29
31
|
import patchProvider from "./commands/patch-provider.js";
|
|
30
32
|
import preset from "./commands/preset.js";
|
|
31
33
|
import plugin from "./commands/plugin.js";
|
|
@@ -51,6 +53,7 @@ const main = defineCommand({
|
|
|
51
53
|
init,
|
|
52
54
|
install,
|
|
53
55
|
launch,
|
|
56
|
+
orchestration,
|
|
54
57
|
"patch-provider": patchProvider,
|
|
55
58
|
preset,
|
|
56
59
|
plugin,
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["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,cAAc,GAAG,MAAM,iBAAiB,EAAE,CAAC;AAEjD,MAAM,IAAI,GAAG,aAAa,CAAC;IACzB,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,cAAc;QACvB,WAAW,EACT,+HAA+H;KAClI;IACD,WAAW,EAAE;QACX,UAAU;QACV,MAAM;QACN,MAAM;QACN,QAAQ;QACR,IAAI;QACJ,OAAO;QACP,MAAM;QACN,aAAa;QACb,gBAAgB,EAAE,aAAa;QAC/B,MAAM;QACN,MAAM;QACN,IAAI;QACJ,MAAM;QACN,IAAI;QACJ,OAAO;QACP,OAAO;KACR;CACF,CAAC,CAAC;AACH,+BAA+B;AAE/B,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC"}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
// VERSION: 0.5.15
|
|
3
3
|
// START_MODULE_CONTRACT
|
|
4
4
|
// PURPOSE: Auto-detect shell and install vvoc completions idempotently.
|
|
5
|
-
// SCOPE: Shell detection, completion file writing, nested
|
|
6
|
-
// DEPENDS: [citty, node:fs/promises, node:path, node:os, src/lib/model-roles.ts, src/lib/vvoc-preset-registry.ts]
|
|
7
|
-
// LINKS: [M-CLI-COMPLETION, M-CLI-COMMANDS]
|
|
5
|
+
// SCOPE: Shell detection, completion file writing, nested orchestration/config/plugin/patch-provider/preset and role flow generation, and rc file patching.
|
|
6
|
+
// DEPENDS: [citty, node:fs/promises, node:path, node:os, src/lib/model-roles.ts, src/lib/orchestration.ts, src/lib/vvoc-preset-registry.ts]
|
|
7
|
+
// LINKS: [M-CLI-COMPLETION, M-CLI-COMMANDS, M-CLI-ORCHESTRATION, M-ORCHESTRATION-PROFILES]
|
|
8
8
|
// ROLE: RUNTIME
|
|
9
9
|
// MAP_MODE: EXPORTS
|
|
10
10
|
// END_MODULE_CONTRACT
|
|
@@ -21,12 +21,15 @@
|
|
|
21
21
|
// LAST_CHANGE: [v0.6.0 - Added launch to top-level completion output.]
|
|
22
22
|
// LAST_CHANGE: [v0.5.15 - Switched built-in preset completions to the shared internal preset registry so managed names stay in sync.]
|
|
23
23
|
// LAST_CHANGE: [v0.5.14 - Restricted unset-role completions so shell suggestions no longer imply built-in roles are unsettable.]
|
|
24
|
+
// LAST_CHANGE: [C-CODEX-PRESET-LIMITS - Replaced the canonical openai patch-provider completion with codex while retaining openai as a resolver-only compatibility alias.]
|
|
25
|
+
// LAST_CHANGE: [C-PRESET-ORCHESTRATION-PROFILES - Added orchestration show/set and profile-value completions across bash, zsh, and fish.]
|
|
24
26
|
// END_CHANGE_SUMMARY
|
|
25
27
|
import { defineCommand } from "citty";
|
|
26
28
|
import { appendFile, mkdir, readFile, writeFile } from "node:fs/promises";
|
|
27
29
|
import { homedir } from "node:os";
|
|
28
30
|
import { resolve } from "node:path";
|
|
29
31
|
import { BUILTIN_ROLE_NAMES } from "../lib/model-roles.js";
|
|
32
|
+
import { ORCHESTRATION_PROFILE_NAMES } from "../lib/orchestration.js";
|
|
30
33
|
import { BUILTIN_VVOC_PRESET_NAMES } from "../lib/vvoc-preset-registry.js";
|
|
31
34
|
const VVOC_TOP_LEVEL_COMMANDS = [
|
|
32
35
|
"completion",
|
|
@@ -36,6 +39,7 @@ const VVOC_TOP_LEVEL_COMMANDS = [
|
|
|
36
39
|
"init",
|
|
37
40
|
"install",
|
|
38
41
|
"launch",
|
|
42
|
+
"orchestration",
|
|
39
43
|
"patch-provider",
|
|
40
44
|
"preset",
|
|
41
45
|
"plugin",
|
|
@@ -46,7 +50,9 @@ const VVOC_TOP_LEVEL_COMMANDS = [
|
|
|
46
50
|
"version",
|
|
47
51
|
];
|
|
48
52
|
const VVOC_CONFIG_COMMANDS = ["validate"];
|
|
49
|
-
const
|
|
53
|
+
const VVOC_ORCHESTRATION_COMMANDS = ["show", "set"];
|
|
54
|
+
const VVOC_ORCHESTRATION_PROFILES = [...ORCHESTRATION_PROFILE_NAMES];
|
|
55
|
+
const VVOC_PATCH_PROVIDER_PRESETS = ["stepfun-ai", "zai", "codex"];
|
|
50
56
|
const VVOC_PRESET_COMMANDS = ["list", "show"];
|
|
51
57
|
const VVOC_PLUGIN_COMMANDS = ["list"];
|
|
52
58
|
const VVOC_ROLE_COMMANDS = ["set", "unset", "list"];
|
|
@@ -148,6 +154,8 @@ async function installFishCompletion() {
|
|
|
148
154
|
export function generateBashCompletion() {
|
|
149
155
|
const topLevelCommands = VVOC_TOP_LEVEL_COMMANDS.join(" ");
|
|
150
156
|
const configCommands = VVOC_CONFIG_COMMANDS.join(" ");
|
|
157
|
+
const orchestrationCommands = VVOC_ORCHESTRATION_COMMANDS.join(" ");
|
|
158
|
+
const orchestrationProfiles = VVOC_ORCHESTRATION_PROFILES.join(" ");
|
|
151
159
|
const patchProviderPresets = VVOC_PATCH_PROVIDER_PRESETS.join(" ");
|
|
152
160
|
const presetCommands = [...VVOC_PRESET_COMMANDS, ...BUILTIN_VVOC_PRESET_NAMES].join(" ");
|
|
153
161
|
const presetNames = BUILTIN_VVOC_PRESET_NAMES.join(" ");
|
|
@@ -171,6 +179,9 @@ export function generateBashCompletion() {
|
|
|
171
179
|
" config)\n" +
|
|
172
180
|
" _vvoc_config_commands\n" +
|
|
173
181
|
" ;;\n" +
|
|
182
|
+
" orchestration)\n" +
|
|
183
|
+
" _vvoc_orchestration_commands\n" +
|
|
184
|
+
" ;;\n" +
|
|
174
185
|
" patch-provider)\n" +
|
|
175
186
|
" _vvoc_patch_provider_presets\n" +
|
|
176
187
|
" ;;\n" +
|
|
@@ -187,6 +198,9 @@ export function generateBashCompletion() {
|
|
|
187
198
|
" role:set)\n" +
|
|
188
199
|
" _vvoc_role_ids\n" +
|
|
189
200
|
" ;;\n" +
|
|
201
|
+
" orchestration:set)\n" +
|
|
202
|
+
" _vvoc_orchestration_profiles\n" +
|
|
203
|
+
" ;;\n" +
|
|
190
204
|
" preset:show)\n" +
|
|
191
205
|
" _vvoc_preset_names\n" +
|
|
192
206
|
" ;;\n" +
|
|
@@ -209,6 +223,20 @@ export function generateBashCompletion() {
|
|
|
209
223
|
' COMPREPLY=($(compgen -W "$commands" -- "$cur"))\n' +
|
|
210
224
|
"}\n" +
|
|
211
225
|
"\n" +
|
|
226
|
+
"_vvoc_orchestration_commands() {\n" +
|
|
227
|
+
' local commands="' +
|
|
228
|
+
orchestrationCommands +
|
|
229
|
+
'"\n' +
|
|
230
|
+
' COMPREPLY=($(compgen -W "$commands" -- "$cur"))\n' +
|
|
231
|
+
"}\n" +
|
|
232
|
+
"\n" +
|
|
233
|
+
"_vvoc_orchestration_profiles() {\n" +
|
|
234
|
+
' local commands="' +
|
|
235
|
+
orchestrationProfiles +
|
|
236
|
+
'"\n' +
|
|
237
|
+
' COMPREPLY=($(compgen -W "$commands" -- "$cur"))\n' +
|
|
238
|
+
"}\n" +
|
|
239
|
+
"\n" +
|
|
212
240
|
"_vvoc_patch_provider_presets() {\n" +
|
|
213
241
|
' local commands="' +
|
|
214
242
|
patchProviderPresets +
|
|
@@ -265,7 +293,7 @@ export function generateZshCompletion() {
|
|
|
265
293
|
for (const cmd of VVOC_TOP_LEVEL_COMMANDS) {
|
|
266
294
|
lines.push(' "' + cmd + '"');
|
|
267
295
|
}
|
|
268
|
-
lines.push(" )", "", ' _arguments -C "1: :(' + VVOC_TOP_LEVEL_COMMANDS.join(" ") + ')" "*::arg:->args"', "", " case $line[1] in", " role)", " _vvoc_role_cmds", " ;;", " config)", " _vvoc_config_cmds", " ;;", " patch-provider)", " _vvoc_patch_provider_cmds", " ;;", " preset)", " _vvoc_preset_cmds", " ;;", " plugin)", " _vvoc_plugin_cmds", " ;;", " esac", "}", "", "_vvoc_config_cmds() {", " local -a config_commands", " config_commands=(" + VVOC_CONFIG_COMMANDS.join(" ") + ")", ' _arguments "1: :(' + VVOC_CONFIG_COMMANDS.join(" ") + ')"', "}", "", "_vvoc_patch_provider_cmds() {", ' _arguments "1: :(' + VVOC_PATCH_PROVIDER_PRESETS.join(" ") + ')"', "}", "", "_vvoc_preset_cmds() {", " case $words[2] in", " show)", ' _arguments "1: :(' + BUILTIN_VVOC_PRESET_NAMES.join(" ") + ')"', " ;;", " *)", ' _arguments "1: :(' +
|
|
296
|
+
lines.push(" )", "", ' _arguments -C "1: :(' + VVOC_TOP_LEVEL_COMMANDS.join(" ") + ')" "*::arg:->args"', "", " case $line[1] in", " role)", " _vvoc_role_cmds", " ;;", " config)", " _vvoc_config_cmds", " ;;", " orchestration)", " _vvoc_orchestration_cmds", " ;;", " patch-provider)", " _vvoc_patch_provider_cmds", " ;;", " preset)", " _vvoc_preset_cmds", " ;;", " plugin)", " _vvoc_plugin_cmds", " ;;", " esac", "}", "", "_vvoc_config_cmds() {", " local -a config_commands", " config_commands=(" + VVOC_CONFIG_COMMANDS.join(" ") + ")", ' _arguments "1: :(' + VVOC_CONFIG_COMMANDS.join(" ") + ')"', "}", "", "_vvoc_orchestration_cmds() {", " case $words[2] in", " set)", ' _arguments "1: :(' + VVOC_ORCHESTRATION_PROFILES.join(" ") + ')"', " ;;", " *)", ' _arguments "1: :(' + VVOC_ORCHESTRATION_COMMANDS.join(" ") + ')"', " ;;", " esac", "}", "", "_vvoc_patch_provider_cmds() {", ' _arguments "1: :(' + VVOC_PATCH_PROVIDER_PRESETS.join(" ") + ')"', "}", "", "_vvoc_preset_cmds() {", " case $words[2] in", " show)", ' _arguments "1: :(' + BUILTIN_VVOC_PRESET_NAMES.join(" ") + ')"', " ;;", " *)", ' _arguments "1: :(' +
|
|
269
297
|
[...VVOC_PRESET_COMMANDS, ...BUILTIN_VVOC_PRESET_NAMES].join(" ") +
|
|
270
298
|
')"', " ;;", " esac", "}", "", "_vvoc_role_cmds() {", " case $words[2] in", " set)", ' _arguments "1: :(' + VVOC_ROLE_IDS.join(" ") + ')"', " ;;", " unset)", ' _arguments "1: :<custom-role-id>"', " ;;", " *)", ' _arguments "1: :(' + VVOC_ROLE_COMMANDS.join(" ") + ')"', " ;;", " esac", "}", "", "_vvoc_plugin_cmds() {", " local -a plugin_commands", " plugin_commands=(" + VVOC_PLUGIN_COMMANDS.join(" ") + ")", ' _arguments "1: :(' + VVOC_PLUGIN_COMMANDS.join(" ") + ')"', "}", "", "compdef _vvoc vvoc");
|
|
271
299
|
return lines.join("\n") + "\n";
|
|
@@ -276,7 +304,7 @@ export function generateFishCompletion() {
|
|
|
276
304
|
for (const cmd of VVOC_TOP_LEVEL_COMMANDS) {
|
|
277
305
|
lines.push(" echo " + cmd);
|
|
278
306
|
}
|
|
279
|
-
lines.push("end", "", "function __vvoc_config_cmds", " echo " + VVOC_CONFIG_COMMANDS.join(" "), "end", "", "function __vvoc_patch_provider_cmds", " echo " + VVOC_PATCH_PROVIDER_PRESETS.join(" "), "end", "", "function __vvoc_preset_cmds", " echo " + presetCommands, "end", "", "function __vvoc_preset_names", " echo " + BUILTIN_VVOC_PRESET_NAMES.join(" "), "end", "", "function __vvoc_role_cmds", " echo " + VVOC_ROLE_COMMANDS.join(" "), "end", "", "function __vvoc_role_ids", " echo " + VVOC_ROLE_IDS.join(" "), "end", "", "function __vvoc_plugin_cmds", " echo " + VVOC_PLUGIN_COMMANDS.join(" "), "end", "", 'complete -c vvoc -f -a "(__vvoc_commands)"', 'complete -c vvoc -n "__fish_seen_subcommand_from role; and not __fish_seen_subcommand_from set unset list" -f -a "(__vvoc_role_cmds)"', 'complete -c vvoc -n "__fish_seen_subcommand_from role; and __fish_seen_subcommand_from set" -f -a "(__vvoc_role_ids)"', 'complete -c vvoc -n "__fish_seen_subcommand_from config" -f -a "(__vvoc_config_cmds)"', 'complete -c vvoc -n "__fish_seen_subcommand_from patch-provider" -f -a "(__vvoc_patch_provider_cmds)"', 'complete -c vvoc -n "__fish_seen_subcommand_from preset; and not __fish_seen_subcommand_from ' +
|
|
307
|
+
lines.push("end", "", "function __vvoc_config_cmds", " echo " + VVOC_CONFIG_COMMANDS.join(" "), "end", "", "function __vvoc_orchestration_cmds", " echo " + VVOC_ORCHESTRATION_COMMANDS.join(" "), "end", "", "function __vvoc_orchestration_profiles", " echo " + VVOC_ORCHESTRATION_PROFILES.join(" "), "end", "", "function __vvoc_patch_provider_cmds", " echo " + VVOC_PATCH_PROVIDER_PRESETS.join(" "), "end", "", "function __vvoc_preset_cmds", " echo " + presetCommands, "end", "", "function __vvoc_preset_names", " echo " + BUILTIN_VVOC_PRESET_NAMES.join(" "), "end", "", "function __vvoc_role_cmds", " echo " + VVOC_ROLE_COMMANDS.join(" "), "end", "", "function __vvoc_role_ids", " echo " + VVOC_ROLE_IDS.join(" "), "end", "", "function __vvoc_plugin_cmds", " echo " + VVOC_PLUGIN_COMMANDS.join(" "), "end", "", 'complete -c vvoc -f -a "(__vvoc_commands)"', 'complete -c vvoc -n "__fish_seen_subcommand_from role; and not __fish_seen_subcommand_from set unset list" -f -a "(__vvoc_role_cmds)"', 'complete -c vvoc -n "__fish_seen_subcommand_from role; and __fish_seen_subcommand_from set" -f -a "(__vvoc_role_ids)"', 'complete -c vvoc -n "__fish_seen_subcommand_from config" -f -a "(__vvoc_config_cmds)"', 'complete -c vvoc -n "__fish_seen_subcommand_from orchestration; and not __fish_seen_subcommand_from show set" -f -a "(__vvoc_orchestration_cmds)"', 'complete -c vvoc -n "__fish_seen_subcommand_from orchestration; and __fish_seen_subcommand_from set" -f -a "(__vvoc_orchestration_profiles)"', 'complete -c vvoc -n "__fish_seen_subcommand_from patch-provider" -f -a "(__vvoc_patch_provider_cmds)"', 'complete -c vvoc -n "__fish_seen_subcommand_from preset; and not __fish_seen_subcommand_from ' +
|
|
280
308
|
presetCommands +
|
|
281
309
|
'" -f -a "(__vvoc_preset_cmds)"', 'complete -c vvoc -n "__fish_seen_subcommand_from preset; and __fish_seen_subcommand_from show" -f -a "(__vvoc_preset_names)"', 'complete -c vvoc -n "__fish_seen_subcommand_from plugin" -f -a "(__vvoc_plugin_cmds)"');
|
|
282
310
|
return lines.join("\n") + "\n";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"completion.js","sourceRoot":"","sources":["../../src/commands/completion.ts"],"names":[],"mappings":"AAAA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{ type ConfigReadScope, type ConfigSource, type ConfigWriteScope } from "../lib/config-layers.js";
|
|
2
|
+
import { type OrchestrationProfile } from "../lib/orchestration.js";
|
|
3
|
+
/** Result returned by a scoped orchestration profile write. */
|
|
4
|
+
export type OrchestrationWriteResult = {
|
|
5
|
+
action: "updated" | "kept";
|
|
6
|
+
profile: OrchestrationProfile;
|
|
7
|
+
path: string;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: import("citty").CommandDef<import("citty").ArgsDef>;
|
|
10
|
+
export default _default;
|
|
11
|
+
/** Reads one resolved profile and selected source without mutation. */
|
|
12
|
+
export declare function showOrchestrationProfile(options?: {
|
|
13
|
+
cwd?: string;
|
|
14
|
+
configDir?: string;
|
|
15
|
+
scope?: ConfigReadScope;
|
|
16
|
+
}): Promise<{
|
|
17
|
+
profile: OrchestrationProfile;
|
|
18
|
+
source: ConfigSource;
|
|
19
|
+
}>;
|
|
20
|
+
/** Writes one explicit profile to global or project vvoc.json. */
|
|
21
|
+
export declare function setOrchestrationProfile(profile: OrchestrationProfile, options?: {
|
|
22
|
+
cwd?: string;
|
|
23
|
+
configDir?: string;
|
|
24
|
+
scope?: ConfigWriteScope;
|
|
25
|
+
}): Promise<OrchestrationWriteResult>;
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
// FILE: src/commands/orchestration.ts
|
|
2
|
+
// VERSION: 1.0.0
|
|
3
|
+
// START_MODULE_CONTRACT
|
|
4
|
+
// PURPOSE: Show and set scoped orchestration profiles with effective source and restart diagnostics.
|
|
5
|
+
// SCOPE: Global/project/effective reads, global/project conservative writes, strict profile parsing, canonical bootstrap, and CLI output.
|
|
6
|
+
// DEPENDS: [citty, node:fs/promises, node:path, src/lib/config-layers.ts, src/lib/opencode.ts, src/lib/orchestration.ts, src/lib/vvoc-config.ts]
|
|
7
|
+
// LINKS: [M-CLI-ORCHESTRATION, M-ORCHESTRATION-PROFILES, M-CONFIG-LAYERS, M-CLI-CONFIG]
|
|
8
|
+
// ROLE: RUNTIME
|
|
9
|
+
// MAP_MODE: EXPORTS
|
|
10
|
+
// END_MODULE_CONTRACT
|
|
11
|
+
//
|
|
12
|
+
// START_MODULE_MAP
|
|
13
|
+
// default - Orchestration show/set command group.
|
|
14
|
+
// OrchestrationWriteResult - Result returned by a scoped profile write.
|
|
15
|
+
// showOrchestrationProfile - Resolves one profile and selected source without mutation.
|
|
16
|
+
// setOrchestrationProfile - Conservatively writes one explicit root profile.
|
|
17
|
+
// END_MODULE_MAP
|
|
18
|
+
//
|
|
19
|
+
// START_CHANGE_SUMMARY
|
|
20
|
+
// LAST_CHANGE: [C-PRESET-ORCHESTRATION-PROFILES - Added scoped orchestration profile reads, writes, validation, and restart output.]
|
|
21
|
+
// END_CHANGE_SUMMARY
|
|
22
|
+
import { defineCommand } from "citty";
|
|
23
|
+
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
24
|
+
import { dirname } from "node:path";
|
|
25
|
+
import { loadVvocConfigForRead, } from "../lib/config-layers.js";
|
|
26
|
+
import { resolvePaths } from "../lib/opencode.js";
|
|
27
|
+
import { ORCHESTRATION_PROFILE_NAMES, parseOrchestrationProfile, resolveOrchestrationPolicy, } from "../lib/orchestration.js";
|
|
28
|
+
import { createDefaultVvocConfig, renderVvocConfig, validateVvocConfigDocument, } from "../lib/vvoc-config.js";
|
|
29
|
+
const configDirArg = {
|
|
30
|
+
type: "string",
|
|
31
|
+
description: "Override the global config home used for vvoc/.",
|
|
32
|
+
};
|
|
33
|
+
const showCommand = defineCommand({
|
|
34
|
+
meta: {
|
|
35
|
+
name: "show",
|
|
36
|
+
description: "Show the resolved orchestration profile and selected source.",
|
|
37
|
+
},
|
|
38
|
+
args: {
|
|
39
|
+
scope: {
|
|
40
|
+
type: "enum",
|
|
41
|
+
options: ["global", "project", "effective"],
|
|
42
|
+
default: "effective",
|
|
43
|
+
description: "Read global, project-local, or effective layered config.",
|
|
44
|
+
},
|
|
45
|
+
"config-dir": configDirArg,
|
|
46
|
+
},
|
|
47
|
+
async run({ args }) {
|
|
48
|
+
const result = await showOrchestrationProfile({
|
|
49
|
+
cwd: process.cwd(),
|
|
50
|
+
configDir: resolveConfigDir(args),
|
|
51
|
+
scope: resolveReadScope(args.scope),
|
|
52
|
+
});
|
|
53
|
+
console.log(`Orchestration profile: ${result.profile}`);
|
|
54
|
+
console.log(`Source: ${formatSource(result.source)}`);
|
|
55
|
+
},
|
|
56
|
+
});
|
|
57
|
+
const setCommand = defineCommand({
|
|
58
|
+
meta: {
|
|
59
|
+
name: "set",
|
|
60
|
+
description: "Set an explicit orchestration profile.",
|
|
61
|
+
},
|
|
62
|
+
args: {
|
|
63
|
+
profile: {
|
|
64
|
+
type: "positional",
|
|
65
|
+
required: true,
|
|
66
|
+
description: `Profile (${ORCHESTRATION_PROFILE_NAMES.join(", ")}).`,
|
|
67
|
+
},
|
|
68
|
+
scope: {
|
|
69
|
+
type: "enum",
|
|
70
|
+
options: ["global", "project"],
|
|
71
|
+
default: "global",
|
|
72
|
+
description: "Write global or project-local vvoc config.",
|
|
73
|
+
},
|
|
74
|
+
"config-dir": configDirArg,
|
|
75
|
+
},
|
|
76
|
+
async run({ args }) {
|
|
77
|
+
const profile = parseOrchestrationProfile(args.profile, "orchestration set");
|
|
78
|
+
const result = await setOrchestrationProfile(profile, {
|
|
79
|
+
cwd: process.cwd(),
|
|
80
|
+
configDir: resolveConfigDir(args),
|
|
81
|
+
scope: resolveWriteScope(args.scope),
|
|
82
|
+
});
|
|
83
|
+
console.log(`${result.action}: orchestration profile ${result.profile}`);
|
|
84
|
+
console.log(`Target: ${result.path}`);
|
|
85
|
+
if (result.action === "updated") {
|
|
86
|
+
console.log("Restart OpenCode to apply the changed orchestration profile.");
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
});
|
|
90
|
+
export default defineCommand({
|
|
91
|
+
meta: {
|
|
92
|
+
name: "orchestration",
|
|
93
|
+
description: "Show or set the vv-controller orchestration profile.",
|
|
94
|
+
},
|
|
95
|
+
subCommands: {
|
|
96
|
+
show: showCommand,
|
|
97
|
+
set: setCommand,
|
|
98
|
+
},
|
|
99
|
+
});
|
|
100
|
+
/** Reads one resolved profile and selected source without mutation. */
|
|
101
|
+
export async function showOrchestrationProfile(options = {}) {
|
|
102
|
+
const { config, source } = await loadVvocConfigForRead({
|
|
103
|
+
scope: options.scope ?? "effective",
|
|
104
|
+
cwd: options.cwd ?? process.cwd(),
|
|
105
|
+
configDir: options.configDir,
|
|
106
|
+
allowDefault: true,
|
|
107
|
+
});
|
|
108
|
+
return {
|
|
109
|
+
profile: resolveOrchestrationPolicy(config).profile,
|
|
110
|
+
source,
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
/** Writes one explicit profile to global or project vvoc.json. */
|
|
114
|
+
export async function setOrchestrationProfile(profile, options = {}) {
|
|
115
|
+
const normalizedProfile = parseOrchestrationProfile(profile, "orchestration set");
|
|
116
|
+
const scope = assertWriteScope(options.scope ?? "global");
|
|
117
|
+
const paths = await resolvePaths({
|
|
118
|
+
scope,
|
|
119
|
+
cwd: options.cwd ?? process.cwd(),
|
|
120
|
+
configDir: options.configDir,
|
|
121
|
+
});
|
|
122
|
+
const currentText = await readOptionalText(paths.vvocConfigPath);
|
|
123
|
+
if (currentText === undefined) {
|
|
124
|
+
const config = createDefaultVvocConfig();
|
|
125
|
+
config.orchestration = { profile: normalizedProfile };
|
|
126
|
+
await mkdir(dirname(paths.vvocConfigPath), { recursive: true });
|
|
127
|
+
await writeFile(paths.vvocConfigPath, renderVvocConfig(config), "utf8");
|
|
128
|
+
return { action: "updated", profile: normalizedProfile, path: paths.vvocConfigPath };
|
|
129
|
+
}
|
|
130
|
+
const config = parseRawVvocConfigText(currentText, paths.vvocConfigPath);
|
|
131
|
+
if (config.orchestration?.profile === normalizedProfile) {
|
|
132
|
+
return { action: "kept", profile: normalizedProfile, path: paths.vvocConfigPath };
|
|
133
|
+
}
|
|
134
|
+
const nextConfig = {
|
|
135
|
+
...config,
|
|
136
|
+
orchestration: { profile: normalizedProfile },
|
|
137
|
+
};
|
|
138
|
+
await writeFile(paths.vvocConfigPath, `${JSON.stringify(nextConfig, null, 2)}\n`, "utf8");
|
|
139
|
+
return { action: "updated", profile: normalizedProfile, path: paths.vvocConfigPath };
|
|
140
|
+
}
|
|
141
|
+
function parseRawVvocConfigText(text, label) {
|
|
142
|
+
let value;
|
|
143
|
+
try {
|
|
144
|
+
value = JSON.parse(text);
|
|
145
|
+
}
|
|
146
|
+
catch {
|
|
147
|
+
throw new Error(`${label}: invalid JSON`);
|
|
148
|
+
}
|
|
149
|
+
const errors = validateVvocConfigDocument(value);
|
|
150
|
+
if (errors.length > 0)
|
|
151
|
+
throw new Error(`${label}: ${errors.join("; ")}`);
|
|
152
|
+
return value;
|
|
153
|
+
}
|
|
154
|
+
async function readOptionalText(path) {
|
|
155
|
+
try {
|
|
156
|
+
return await readFile(path, "utf8");
|
|
157
|
+
}
|
|
158
|
+
catch (error) {
|
|
159
|
+
if (error instanceof Error && "code" in error && error.code === "ENOENT")
|
|
160
|
+
return undefined;
|
|
161
|
+
throw error;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
function assertWriteScope(scope) {
|
|
165
|
+
if (scope !== "global" && scope !== "project") {
|
|
166
|
+
throw new Error("orchestration set supports --scope global or --scope project, not effective");
|
|
167
|
+
}
|
|
168
|
+
return scope;
|
|
169
|
+
}
|
|
170
|
+
function resolveReadScope(value) {
|
|
171
|
+
return value === "global" || value === "project" ? value : "effective";
|
|
172
|
+
}
|
|
173
|
+
function resolveWriteScope(value) {
|
|
174
|
+
if (value === "effective") {
|
|
175
|
+
throw new Error("orchestration set supports --scope global or --scope project, not effective");
|
|
176
|
+
}
|
|
177
|
+
return value === "project" ? "project" : "global";
|
|
178
|
+
}
|
|
179
|
+
function resolveConfigDir(args) {
|
|
180
|
+
return typeof args["config-dir"] === "string" ? args["config-dir"] : undefined;
|
|
181
|
+
}
|
|
182
|
+
function formatSource(source) {
|
|
183
|
+
return `${source.kind}${source.path ? ` ${source.path}` : ""}`;
|
|
184
|
+
}
|
|
185
|
+
//# sourceMappingURL=orchestration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orchestration.js","sourceRoot":"","sources":["../../src/commands/orchestration.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,iBAAiB;AACjB,wBAAwB;AACxB,uGAAuG;AACvG,4IAA4I;AAC5I,mJAAmJ;AACnJ,0FAA0F;AAC1F,kBAAkB;AAClB,sBAAsB;AACtB,sBAAsB;AACtB,EAAE;AACF,mBAAmB;AACnB,oDAAoD;AACpD,0EAA0E;AAC1E,0FAA0F;AAC1F,+EAA+E;AAC/E,iBAAiB;AACjB,EAAE;AACF,uBAAuB;AACvB,uIAAuI;AACvI,qBAAqB;AAErB,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EACL,qBAAqB,GAItB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EACL,2BAA2B,EAC3B,yBAAyB,EACzB,0BAA0B,GAE3B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,uBAAuB,EACvB,gBAAgB,EAChB,0BAA0B,GAE3B,MAAM,uBAAuB,CAAC;AAS/B,MAAM,YAAY,GAAG;IACnB,IAAI,EAAE,QAAiB;IACvB,WAAW,EAAE,iDAAiD;CAC/D,CAAC;AAEF,MAAM,WAAW,GAAG,aAAa,CAAC;IAChC,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,8DAA8D;KAC5E;IACD,IAAI,EAAE;QACJ,KAAK,EAAE;YACL,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,WA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