yaaw-se 0.3.2-dev.36167912622.1 → 0.3.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/README.md +82 -118
- package/dist/cli/commands/config.d.ts +50 -0
- package/dist/cli/commands/config.js +219 -0
- package/dist/cli/commands/config.js.map +1 -0
- package/dist/cli/commands/install.d.ts +11 -0
- package/dist/cli/commands/install.js +135 -19
- package/dist/cli/commands/install.js.map +1 -1
- package/dist/cli/commands/status.d.ts +32 -2
- package/dist/cli/commands/status.js +5 -0
- package/dist/cli/commands/status.js.map +1 -1
- package/dist/cli/main.js +28 -5
- package/dist/cli/main.js.map +1 -1
- package/dist/installer/configuration.d.ts +33 -0
- package/dist/installer/configuration.js +149 -0
- package/dist/installer/configuration.js.map +1 -0
- package/dist/installer/detect.js +8 -1
- package/dist/installer/detect.js.map +1 -1
- package/dist/installer/manifest.js +45 -12
- package/dist/installer/manifest.js.map +1 -1
- package/dist/installer/migrations/index.d.ts +6 -3
- package/dist/installer/migrations/index.js +3 -2
- package/dist/installer/migrations/index.js.map +1 -1
- package/dist/installer/migrations/installation/index.d.ts +9 -2
- package/dist/installer/migrations/installation/index.js +21 -2
- package/dist/installer/migrations/installation/index.js.map +1 -1
- package/dist/installer/migrations/installation/v2-to-v3.d.ts +2 -0
- package/dist/installer/migrations/installation/v2-to-v3.js +19 -0
- package/dist/installer/migrations/installation/v2-to-v3.js.map +1 -0
- package/dist/installer/plan.d.ts +43 -1
- package/dist/installer/plan.js +196 -11
- package/dist/installer/plan.js.map +1 -1
- package/dist/installer/project-state.js +1 -1
- package/dist/installer/project-state.js.map +1 -1
- package/dist/installer/status.d.ts +32 -2
- package/dist/installer/status.js +108 -34
- package/dist/installer/status.js.map +1 -1
- package/dist/installer/toml-managed.d.ts +7 -0
- package/dist/installer/toml-managed.js +192 -0
- package/dist/installer/toml-managed.js.map +1 -0
- package/dist/installer/transaction.js +61 -11
- package/dist/installer/transaction.js.map +1 -1
- package/dist/installer/types.d.ts +65 -9
- package/dist/installer/verify.js +12 -12
- package/dist/installer/verify.js.map +1 -1
- package/dist/integrations/claude-code.js +1 -0
- package/dist/integrations/claude-code.js.map +1 -1
- package/dist/integrations/codex-catalog.d.ts +25 -0
- package/dist/integrations/codex-catalog.js +111 -0
- package/dist/integrations/codex-catalog.js.map +1 -0
- package/dist/integrations/codex-runtime.d.ts +33 -0
- package/dist/integrations/codex-runtime.js +119 -0
- package/dist/integrations/codex-runtime.js.map +1 -0
- package/dist/integrations/codex.d.ts +2 -1
- package/dist/integrations/codex.js +192 -3
- package/dist/integrations/codex.js.map +1 -1
- package/dist/integrations/gemini-cli.js +1 -0
- package/dist/integrations/gemini-cli.js.map +1 -1
- package/dist/integrations/helpers.d.ts +1 -0
- package/dist/integrations/helpers.js +1 -0
- package/dist/integrations/helpers.js.map +1 -1
- package/dist/integrations/registry.d.ts +2 -0
- package/dist/integrations/registry.js +21 -4
- package/dist/integrations/registry.js.map +1 -1
- package/dist/integrations/types.d.ts +40 -0
- package/dist/payload/bootstrap/claude-code.md +3 -3
- package/dist/payload/bootstrap/cline.md +3 -3
- package/dist/payload/bootstrap/codex.md +6 -4
- package/dist/payload/bootstrap/gemini-cli.md +3 -3
- package/dist/payload/integrations/codex/yaaw-runtime.md +74 -0
- package/dist/payload/payload-files.json +284 -294
- package/dist/payload/payload.json +1 -1
- package/dist/payload/skills/yaaw-create-spec/SKILL.md +1 -1
- package/dist/payload/skills/yaaw-create-ticket/SKILL.md +1 -1
- package/dist/payload/skills/yaaw-create-tickets/SKILL.md +1 -1
- package/dist/payload/skills/yaaw-implement/SKILL.md +1 -1
- package/dist/payload/skills/yaaw-orchestrator/SKILL.md +1 -1
- package/dist/payload/skills/yaaw-planner/SKILL.md +1 -1
- package/dist/payload/skills/yaaw-planning-review/SKILL.md +1 -1
- package/dist/payload/skills/yaaw-prd/SKILL.md +1 -1
- package/dist/payload/skills/yaaw-refine-prd/SKILL.md +1 -1
- package/dist/payload/skills/yaaw-repair/SKILL.md +1 -1
- package/dist/payload/skills/yaaw-review/SKILL.md +1 -1
- package/dist/payload/skills/yaaw-revise-prd/SKILL.md +1 -1
- package/dist/payload/yaaw-core/{core → system/core}/artifact-model.md +6 -5
- package/dist/payload/yaaw-core/{core → system/core}/authority.md +1 -1
- package/dist/payload/yaaw-core/system/core/context-loading.md +52 -0
- package/dist/payload/yaaw-core/system/core/dispatch-execution.md +49 -0
- package/dist/payload/yaaw-core/system/core/execution-context.md +53 -0
- package/dist/payload/yaaw-core/system/core/framework-integrity.md +60 -0
- package/dist/payload/yaaw-core/system/core/invalidation.md +27 -0
- package/dist/payload/yaaw-core/{core → system/core}/io-contract.md +10 -5
- package/dist/payload/yaaw-core/system/core/lifecycle.md +33 -0
- package/dist/payload/yaaw-core/system/core/recovery.md +29 -0
- package/dist/payload/yaaw-core/system/core/routing.md +36 -0
- package/dist/payload/yaaw-core/{core → system/core}/state-model.md +1 -1
- package/dist/payload/yaaw-core/system/core/transitions.md +39 -0
- package/dist/payload/yaaw-core/{expertise → system/expertise}/changeability/MODULE.md +1 -1
- package/dist/payload/yaaw-core/system/registries/artifacts.json +99 -0
- package/dist/payload/yaaw-core/system/registries/execution-policy.json +169 -0
- package/dist/payload/yaaw-core/{registries → system/registries}/expertise.json +5 -5
- package/dist/payload/yaaw-core/{registries → system/registries}/paths.json +2 -1
- package/dist/payload/yaaw-core/{registries → system/registries}/role-io.json +12 -6
- package/dist/payload/yaaw-core/{registries → system/registries}/routing-policy.json +24 -24
- package/dist/payload/yaaw-core/{registries → system/registries}/transitions.json +8 -8
- package/dist/payload/yaaw-core/system/registries/workflows.json +38 -0
- package/dist/payload/yaaw-core/{roles → system/roles}/implementer.md +3 -4
- package/dist/payload/yaaw-core/system/roles/orchestrator.md +23 -0
- package/dist/payload/yaaw-core/{roles → system/roles}/planner.md +6 -7
- package/dist/payload/yaaw-core/{roles → system/roles}/prd.md +4 -1
- package/dist/payload/yaaw-core/{roles → system/roles}/reviewer.md +3 -6
- package/dist/payload/yaaw-core/{rules → system/rules}/question-format.md +1 -1
- package/dist/payload/yaaw-core/system/rules/repository-identity.md +28 -0
- package/dist/payload/yaaw-core/{rules → system/rules}/research-admission.md +1 -1
- package/dist/payload/yaaw-core/{rules → system/rules}/review-independence.md +2 -0
- package/dist/payload/yaaw-core/system/schemas/dispatch-failures.schema.json +39 -0
- package/dist/payload/yaaw-core/system/schemas/evidence.schema.json +36 -0
- package/dist/payload/yaaw-core/{schemas → system/schemas}/handoff.schema.json +97 -42
- package/dist/payload/yaaw-core/{schemas → system/schemas}/observed-state.schema.json +91 -88
- package/dist/payload/yaaw-core/system/schemas/review.schema.json +19 -0
- package/dist/payload/yaaw-core/system/templates/dispatch-failures.json +17 -0
- package/dist/payload/yaaw-core/system/templates/evidence.json +12 -0
- package/dist/payload/yaaw-core/{templates → system/templates}/handoff.json +5 -14
- package/dist/payload/yaaw-core/{templates → system/templates}/observed-state.json +4 -16
- package/dist/payload/yaaw-core/system/templates/review.md +28 -0
- package/dist/payload/yaaw-core/{tools → system/tools}/framework-integrity.mjs +7 -24
- package/dist/payload/yaaw-core/{workflows → system/workflows}/implementation/implement-ticket.md +1 -5
- package/dist/payload/yaaw-core/{workflows → system/workflows}/implementation/repair-ticket.md +1 -5
- package/dist/payload/yaaw-core/{workflows → system/workflows}/implementation/verify-ticket.md +1 -5
- package/dist/payload/yaaw-core/{workflows → system/workflows}/orchestration/determine-next-action.md +5 -9
- package/dist/payload/yaaw-core/system/workflows/orchestration/dispatch.md +29 -0
- package/dist/payload/yaaw-core/system/workflows/orchestration/inspect-state.md +22 -0
- package/dist/payload/yaaw-core/{workflows → system/workflows}/orchestration/reconcile-state.md +0 -4
- package/dist/payload/yaaw-core/{workflows → system/workflows}/orchestration/recover-interruption.md +0 -4
- package/dist/payload/yaaw-core/{workflows → system/workflows}/orchestration/route.md +5 -7
- package/dist/payload/yaaw-core/{workflows → system/workflows}/planning/create-tickets.md +1 -1
- package/dist/payload/yaaw-core/{workflows → system/workflows}/planning/decision-frontier.md +1 -1
- package/dist/payload/yaaw-core/{workflows → system/workflows}/planning/discover.md +2 -2
- package/dist/payload/yaaw-core/{workflows → system/workflows}/planning/question-round.md +1 -1
- package/dist/payload/yaaw-core/{workflows → system/workflows}/planning/readiness-review.md +1 -1
- package/dist/payload/yaaw-core/{workflows → system/workflows}/planning/record-decisions.md +1 -1
- package/dist/payload/yaaw-core/{workflows → system/workflows}/planning/replan.md +0 -4
- package/dist/payload/yaaw-core/{workflows → system/workflows}/planning/research.md +1 -1
- package/dist/payload/yaaw-core/{workflows → system/workflows}/planning/route.md +1 -5
- package/dist/payload/yaaw-core/{workflows → system/workflows}/planning/write-understanding.md +1 -1
- package/dist/payload/yaaw-core/{workflows → system/workflows}/prd/create.md +2 -2
- package/dist/payload/yaaw-core/{workflows → system/workflows}/prd/question-round.md +1 -1
- package/dist/payload/yaaw-core/{workflows → system/workflows}/prd/readiness.md +1 -1
- package/dist/payload/yaaw-core/{workflows → system/workflows}/prd/record-decisions.md +2 -2
- package/dist/payload/yaaw-core/{workflows → system/workflows}/prd/refine.md +1 -1
- package/dist/payload/yaaw-core/{workflows → system/workflows}/prd/revise.md +2 -2
- package/dist/payload/yaaw-core/{workflows → system/workflows}/prd/route.md +1 -1
- package/dist/payload/yaaw-core/{workflows → system/workflows}/review/inspect-change.md +0 -4
- package/dist/payload/yaaw-core/{workflows → system/workflows}/review/record-review.md +0 -4
- package/dist/payload/yaaw-core/{workflows → system/workflows}/review/review-ticket.md +1 -5
- package/dist/tui/configuration-updates.d.ts +4 -0
- package/dist/tui/configuration-updates.js +37 -0
- package/dist/tui/configuration-updates.js.map +1 -0
- package/dist/tui/configure-codex.d.ts +4 -0
- package/dist/tui/configure-codex.js +454 -0
- package/dist/tui/configure-codex.js.map +1 -0
- package/dist/tui/configure-integration.d.ts +2 -0
- package/dist/tui/configure-integration.js +9 -0
- package/dist/tui/configure-integration.js.map +1 -0
- package/dist/tui/confirm-configuration.d.ts +10 -0
- package/dist/tui/confirm-configuration.js +36 -0
- package/dist/tui/confirm-configuration.js.map +1 -0
- package/dist/tui/confirm-plan.js +52 -12
- package/dist/tui/confirm-plan.js.map +1 -1
- package/dist/tui/navigation.d.ts +11 -0
- package/dist/tui/navigation.js +10 -0
- package/dist/tui/navigation.js.map +1 -0
- package/dist/tui/result.d.ts +10 -1
- package/dist/tui/result.js +81 -4
- package/dist/tui/result.js.map +1 -1
- package/package.json +2 -1
- package/dist/payload/yaaw-core/core/context-loading.md +0 -23
- package/dist/payload/yaaw-core/core/execution-context.md +0 -49
- package/dist/payload/yaaw-core/core/framework-integrity.md +0 -77
- package/dist/payload/yaaw-core/core/invalidation.md +0 -37
- package/dist/payload/yaaw-core/core/lifecycle.md +0 -28
- package/dist/payload/yaaw-core/core/recovery.md +0 -28
- package/dist/payload/yaaw-core/core/routing.md +0 -34
- package/dist/payload/yaaw-core/core/transitions.md +0 -26
- package/dist/payload/yaaw-core/registries/artifacts.json +0 -18
- package/dist/payload/yaaw-core/registries/execution-policy.json +0 -38
- package/dist/payload/yaaw-core/registries/workflows.json +0 -38
- package/dist/payload/yaaw-core/roles/orchestrator.md +0 -25
- package/dist/payload/yaaw-core/rules/repository-identity.md +0 -32
- package/dist/payload/yaaw-core/schemas/evidence-v1.schema.json +0 -98
- package/dist/payload/yaaw-core/schemas/evidence-v2.schema.json +0 -102
- package/dist/payload/yaaw-core/schemas/evidence.schema.json +0 -25
- package/dist/payload/yaaw-core/schemas/repository-identity.schema.json +0 -132
- package/dist/payload/yaaw-core/schemas/review-v1.schema.json +0 -65
- package/dist/payload/yaaw-core/schemas/review-v2.schema.json +0 -78
- package/dist/payload/yaaw-core/schemas/review.schema.json +0 -32
- package/dist/payload/yaaw-core/templates/evidence.json +0 -29
- package/dist/payload/yaaw-core/templates/review.md +0 -37
- package/dist/payload/yaaw-core/tools/repository-identity.mjs +0 -84
- package/dist/payload/yaaw-core/workflows/orchestration/dispatch.md +0 -27
- package/dist/payload/yaaw-core/workflows/orchestration/inspect-state.md +0 -25
- /package/dist/payload/yaaw-core/{expertise → system/expertise}/frontend-design/MODULE.md +0 -0
- /package/dist/payload/yaaw-core/{expertise → system/expertise}/python/MODULE.md +0 -0
- /package/dist/payload/yaaw-core/{expertise → system/expertise}/security/MODULE.md +0 -0
- /package/dist/payload/yaaw-core/{expertise → system/expertise}/testing/MODULE.md +0 -0
- /package/dist/payload/yaaw-core/{registries → system/registries}/skills.json +0 -0
- /package/dist/payload/yaaw-core/{rules → system/rules}/artifact-writing.md +0 -0
- /package/dist/payload/yaaw-core/{rules → system/rules}/assumption-challenge.md +0 -0
- /package/dist/payload/yaaw-core/{rules → system/rules}/changeability.md +0 -0
- /package/dist/payload/yaaw-core/{rules → system/rules}/durable-memory.md +0 -0
- /package/dist/payload/yaaw-core/{rules → system/rules}/recovery-evidence.md +0 -0
- /package/dist/payload/yaaw-core/{rules → system/rules}/ticket-sizing.md +0 -0
- /package/dist/payload/yaaw-core/{schemas → system/schemas}/engineering-research.schema.json +0 -0
- /package/dist/payload/yaaw-core/{schemas → system/schemas}/engineering.schema.json +0 -0
- /package/dist/payload/yaaw-core/{schemas → system/schemas}/intent.schema.json +0 -0
- /package/dist/payload/yaaw-core/{schemas → system/schemas}/product.schema.json +0 -0
- /package/dist/payload/yaaw-core/{schemas → system/schemas}/project-state.schema.json +0 -0
- /package/dist/payload/yaaw-core/{schemas → system/schemas}/spec.schema.json +0 -0
- /package/dist/payload/yaaw-core/{schemas → system/schemas}/ticket.schema.json +0 -0
- /package/dist/payload/yaaw-core/{templates → system/templates}/engineering-research.md +0 -0
- /package/dist/payload/yaaw-core/{templates → system/templates}/engineering.md +0 -0
- /package/dist/payload/yaaw-core/{templates → system/templates}/intent.json +0 -0
- /package/dist/payload/yaaw-core/{templates → system/templates}/product.md +0 -0
- /package/dist/payload/yaaw-core/{templates → system/templates}/project-state.json +0 -0
- /package/dist/payload/yaaw-core/{templates → system/templates}/spec.md +0 -0
- /package/dist/payload/yaaw-core/{templates → system/templates}/ticket.md +0 -0
- /package/dist/payload/yaaw-core/{workflows → system/workflows}/implementation/select-ticket.md +0 -0
- /package/dist/payload/yaaw-core/{workflows → system/workflows}/planning/create-spec.md +0 -0
- /package/dist/payload/yaaw-core/{workflows → system/workflows}/review/classify-findings.md +0 -0
package/README.md
CHANGED
|
@@ -1,171 +1,135 @@
|
|
|
1
1
|
# YAAW-SE
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**Autonomous software engineering with durable context.**
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
## Install into any project
|
|
5
|
+
YAAW-SE turns an idea or change request into planned, implemented, independently reviewed work without making every new AI session start from zero.
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
cd my-project
|
|
11
|
-
npx yaaw-se install
|
|
12
|
-
```
|
|
7
|
+
> **Agents are disposable. Artifacts are durable.**
|
|
13
8
|
|
|
14
|
-
|
|
9
|
+
YAAW keeps product decisions, engineering decisions, specs, tickets, reviews, and evidence in the project so the workflow can reconstruct what is true and continue from there.
|
|
15
10
|
|
|
16
|
-
|
|
11
|
+
## Start Building
|
|
17
12
|
|
|
18
|
-
|
|
19
|
-
- Claude Code
|
|
20
|
-
- Gemini CLI
|
|
21
|
-
- Cline
|
|
13
|
+
**Prerequisite:** Node.js 20.12+
|
|
22
14
|
|
|
23
|
-
|
|
15
|
+
Run YAAW-SE inside your project:
|
|
24
16
|
|
|
25
17
|
```bash
|
|
26
|
-
npx yaaw-se install
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
Preview without writing:
|
|
30
|
-
|
|
31
|
-
```bash
|
|
32
|
-
npx yaaw-se install --tools codex --dry-run
|
|
18
|
+
npx yaaw-se install
|
|
33
19
|
```
|
|
34
20
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
A consuming project has exactly one canonical YAAW root:
|
|
21
|
+
Choose the AI coding tools you want to use, finish the installer, then open your project in one of them and invoke:
|
|
38
22
|
|
|
39
23
|
```text
|
|
40
|
-
|
|
41
|
-
├── core/ package-managed workflow contracts
|
|
42
|
-
├── roles/
|
|
43
|
-
├── workflows/
|
|
44
|
-
├── expertise/
|
|
45
|
-
├── rules/
|
|
46
|
-
├── registries/
|
|
47
|
-
├── schemas/
|
|
48
|
-
├── templates/
|
|
49
|
-
├── tools/ package-managed integrity/repository utilities
|
|
50
|
-
├── project/ durable project-owned YAAW memory
|
|
51
|
-
│ ├── product.md
|
|
52
|
-
│ ├── engineering.md
|
|
53
|
-
│ ├── state.json
|
|
54
|
-
│ ├── research/ admitted Planner research (RSH-*)
|
|
55
|
-
│ ├── specs/
|
|
56
|
-
│ ├── tickets/
|
|
57
|
-
│ ├── reviews/
|
|
58
|
-
│ ├── evidence/
|
|
59
|
-
│ └── rules/
|
|
60
|
-
├── runtime/ replaceable coordination state
|
|
61
|
-
└── install/ installer metadata
|
|
24
|
+
yaaw-orchestrator
|
|
62
25
|
```
|
|
63
26
|
|
|
64
|
-
|
|
27
|
+
The Orchestrator inspects the project, determines what is missing or ready, and routes the next valid workflow. Under Codex, orchestrated PRD/Planner/Implementer/Reviewer work runs in fresh authority-worker contexts when the host supports it; durable artifacts remain the source of truth.
|
|
65
28
|
|
|
66
|
-
|
|
67
|
-
.agents/skills/yaaw-*/ Codex
|
|
68
|
-
.claude/skills/yaaw-*/ Claude Code
|
|
69
|
-
.gemini/skills/yaaw-*/ Gemini CLI
|
|
70
|
-
.cline/skills/yaaw-*/ Cline
|
|
71
|
-
```
|
|
29
|
+
You can start with only an idea, an existing codebase, a partially planned feature, or work already in progress.
|
|
72
30
|
|
|
73
|
-
|
|
31
|
+
## Why YAAW?
|
|
74
32
|
|
|
75
|
-
|
|
33
|
+
AI coding tools are good at producing code, but long-running software work needs more than a conversation history.
|
|
76
34
|
|
|
77
|
-
|
|
35
|
+
- **Autonomous continuity** — YAAW reconstructs project state and decides what workflow should happen next.
|
|
36
|
+
- **Durable context** — Product and engineering decisions survive new chats, new agents, and interrupted sessions.
|
|
37
|
+
- **Artifact-first development** — PRDs, specs, tickets, reviews, and evidence become the source of truth.
|
|
38
|
+
- **Independent review** — Implementation does not approve itself; review is a separate authority.
|
|
39
|
+
- **Repository-aware planning** — Engineering work is grounded in the actual codebase instead of invented assumptions.
|
|
40
|
+
- **One workflow from idea to reviewed code** — Plan, implement, review, repair, and continue without manually rebuilding context.
|
|
78
41
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
42
|
+
## How It Flows
|
|
43
|
+
|
|
44
|
+
```text
|
|
45
|
+
Idea / Change
|
|
46
|
+
↓
|
|
47
|
+
PRD
|
|
48
|
+
↓
|
|
49
|
+
Engineering Plan
|
|
50
|
+
↓
|
|
51
|
+
Spec + Tickets
|
|
52
|
+
↓
|
|
53
|
+
Implementation
|
|
54
|
+
↓
|
|
55
|
+
Independent Review
|
|
56
|
+
↙ ↓ ↘
|
|
57
|
+
Repair Replan Pass
|
|
58
|
+
\ | /
|
|
59
|
+
Continue
|
|
60
|
+
```
|
|
84
61
|
|
|
85
|
-
|
|
62
|
+
You do not need to manually run every stage. In normal use, `yaaw-orchestrator` is the main entrypoint and routes work based on the artifacts already present.
|
|
86
63
|
|
|
87
|
-
|
|
88
|
-
- `@yaaw-refine-prd`
|
|
89
|
-
- `@yaaw-planning-review`
|
|
90
|
-
- `@yaaw-create-spec`
|
|
91
|
-
- `@yaaw-create-ticket`
|
|
92
|
-
- `@yaaw-create-tickets`
|
|
93
|
-
- `@yaaw-repair`
|
|
64
|
+
## Supported AI Coding Tools
|
|
94
65
|
|
|
95
|
-
|
|
66
|
+
| Tool | Support |
|
|
67
|
+
| --- | --- |
|
|
68
|
+
| OpenAI Codex | Supported |
|
|
69
|
+
| Claude Code | Supported |
|
|
70
|
+
| Gemini CLI | Supported |
|
|
71
|
+
| Cline | Supported |
|
|
96
72
|
|
|
97
|
-
|
|
73
|
+
Multiple tools can be installed into the same project. They share the same YAAW project memory instead of maintaining separate workflow state.
|
|
98
74
|
|
|
99
|
-
|
|
75
|
+
## Useful Entry Points
|
|
100
76
|
|
|
101
|
-
|
|
102
|
-
npx yaaw-se install
|
|
103
|
-
```
|
|
77
|
+
Most users can stay with `yaaw-orchestrator`.
|
|
104
78
|
|
|
105
|
-
|
|
79
|
+
| Skill | Use it when |
|
|
80
|
+
| --- | --- |
|
|
81
|
+
| `yaaw-orchestrator` | You want YAAW to inspect the project and continue the workflow |
|
|
82
|
+
| `yaaw-prd` | You want to work directly on product definition |
|
|
83
|
+
| `yaaw-planner` | You want to work directly on engineering planning |
|
|
84
|
+
| `yaaw-implement` | You want to implement an admitted ticket |
|
|
85
|
+
| `yaaw-review` | You want to independently review current work |
|
|
106
86
|
|
|
107
|
-
|
|
87
|
+
The installer can also expose direct shortcuts for revising PRDs, creating specs or tickets, repair work, and planning review.
|
|
108
88
|
|
|
109
|
-
|
|
110
|
-
npx yaaw-se install --action quick-update --yes
|
|
111
|
-
npx yaaw-se install --action modify --tools codex,gemini-cli --skills core --yes
|
|
112
|
-
npx yaaw-se doctor --repair
|
|
113
|
-
```
|
|
89
|
+
## Project Memory
|
|
114
90
|
|
|
115
|
-
|
|
91
|
+
YAAW stores its project-local state under:
|
|
116
92
|
|
|
117
|
-
```
|
|
118
|
-
|
|
93
|
+
```text
|
|
94
|
+
.yaaw-core/
|
|
119
95
|
```
|
|
120
96
|
|
|
121
|
-
|
|
97
|
+
That includes both the YAAW system and the durable project artifacts it creates. Package updates are designed to refresh the system without replacing your project memory.
|
|
122
98
|
|
|
123
|
-
|
|
99
|
+
## Manage an Installation
|
|
124
100
|
|
|
125
|
-
|
|
101
|
+
Check an installation or configure a provider:
|
|
126
102
|
|
|
127
103
|
```bash
|
|
128
104
|
npx yaaw-se status
|
|
129
105
|
npx yaaw-se doctor
|
|
106
|
+
npx yaaw-se config
|
|
107
|
+
npx yaaw-se config codex
|
|
130
108
|
```
|
|
131
109
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
During consumer execution, package-managed framework files are immutable. Orchestrator checks framework integrity before semantic reconciliation or dispatch. If framework bytes/layout are untrusted it stops and requests installer repair; it never edits YAAW's governing contracts to unblock itself.
|
|
110
|
+
When installed globally, both `yaaw` and the backward-compatible `yaaw-se` binary are available. Provider configuration is project-local. YAAW may learn about newer provider/model capabilities during a framework update, but it preserves the project's current model/runtime policy until you explicitly reconfigure it.
|
|
135
111
|
|
|
136
|
-
|
|
112
|
+
Run the installer again to update, change integrations, repair, or safely uninstall YAAW-SE.
|
|
137
113
|
|
|
138
|
-
|
|
114
|
+
Package-managed `.yaaw-core/system/**` is immutable during normal YAAW execution. If Orchestrator detects framework drift, it stops before routing semantic work instead of editing its own governing contracts.
|
|
139
115
|
|
|
140
|
-
|
|
116
|
+
For an installation whose managed framework files were modified, use backup-and-replace repair:
|
|
141
117
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
- `docs/integrations.md`
|
|
146
|
-
- `docs/releasing.md`
|
|
118
|
+
```bash
|
|
119
|
+
npx yaaw-se install --action repair --conflict-policy backup-replace --yes
|
|
120
|
+
```
|
|
147
121
|
|
|
148
|
-
|
|
122
|
+
Modified package bytes are preserved under `.yaaw-core/install/backups/<timestamp>/...` before the package version is restored. Durable `.yaaw-core/project/**` remains untouched, while replaceable runtime handoff/observation/intent caches are regenerated after the framework basis changes.
|
|
149
123
|
|
|
150
|
-
|
|
124
|
+
To explicitly use the latest published version:
|
|
151
125
|
|
|
152
126
|
```bash
|
|
153
|
-
|
|
154
|
-
python scripts/validate_behavior.py
|
|
155
|
-
python scripts/behavior_oracle.py
|
|
156
|
-
python scripts/validate_distribution.py
|
|
157
|
-
python -m unittest discover -s tests -v
|
|
158
|
-
|
|
159
|
-
npm ci
|
|
160
|
-
npm test
|
|
161
|
-
npm run build
|
|
162
|
-
npm pack --dry-run
|
|
127
|
+
npx yaaw-se@latest install
|
|
163
128
|
```
|
|
164
129
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
## Deterministic runtime context
|
|
168
|
-
|
|
169
|
-
YAAW distinguishes the consumer **workspace root** from `.yaaw-core/project/`, the durable **project memory root**. Repository commands are rooted explicitly at the workspace rather than inheriting a provider shell CWD. Product work can continue in an unversioned greenfield directory; workflows that create/review executable code require exact repository identity.
|
|
130
|
+
## More
|
|
170
131
|
|
|
171
|
-
|
|
132
|
+
- [Distribution and update behavior](docs/distribution.md)
|
|
133
|
+
- [Coding-tool integrations](docs/integrations.md)
|
|
134
|
+
- [Codex isolated-worker runtime](docs/codex-runtime.md)
|
|
135
|
+
- [Report a bug or request a feature](https://github.com/QuackyPROG/yaaw-SE/issues)
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { IntegrationConfigurationProfile, IntegrationId } from "../../integrations/types.js";
|
|
2
|
+
import type { ConflictPolicy } from "../../installer/types.js";
|
|
3
|
+
export interface ConfigCommandOptions {
|
|
4
|
+
directory?: string;
|
|
5
|
+
yes?: boolean;
|
|
6
|
+
json?: boolean;
|
|
7
|
+
config?: string;
|
|
8
|
+
conflictPolicy?: ConflictPolicy;
|
|
9
|
+
}
|
|
10
|
+
export declare function configureProjectIntegration(input: {
|
|
11
|
+
projectRoot: string;
|
|
12
|
+
integrationId: IntegrationId;
|
|
13
|
+
reason: "manual" | "update";
|
|
14
|
+
interactive: boolean;
|
|
15
|
+
configPath?: string;
|
|
16
|
+
conflictPolicy?: ConflictPolicy;
|
|
17
|
+
showIntro?: boolean;
|
|
18
|
+
}): Promise<{
|
|
19
|
+
cancelled: boolean;
|
|
20
|
+
ok?: undefined;
|
|
21
|
+
integrationId?: undefined;
|
|
22
|
+
changed?: undefined;
|
|
23
|
+
revision?: undefined;
|
|
24
|
+
profile?: undefined;
|
|
25
|
+
} | {
|
|
26
|
+
cancelled?: undefined;
|
|
27
|
+
ok: boolean;
|
|
28
|
+
integrationId: IntegrationId;
|
|
29
|
+
changed: string[];
|
|
30
|
+
revision: number;
|
|
31
|
+
profile: IntegrationConfigurationProfile | null;
|
|
32
|
+
}>;
|
|
33
|
+
export declare function runConfig(integration: string | undefined, options?: ConfigCommandOptions): Promise<{
|
|
34
|
+
cancelled: boolean;
|
|
35
|
+
ok?: undefined;
|
|
36
|
+
integrationId?: undefined;
|
|
37
|
+
changed?: undefined;
|
|
38
|
+
revision?: undefined;
|
|
39
|
+
profile?: undefined;
|
|
40
|
+
} | {
|
|
41
|
+
cancelled?: undefined;
|
|
42
|
+
ok: boolean;
|
|
43
|
+
integrationId: IntegrationId;
|
|
44
|
+
changed: string[];
|
|
45
|
+
revision: number;
|
|
46
|
+
profile: IntegrationConfigurationProfile | null;
|
|
47
|
+
} | {
|
|
48
|
+
ok: boolean;
|
|
49
|
+
message: string;
|
|
50
|
+
} | undefined>;
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import * as p from "@clack/prompts";
|
|
2
|
+
import { readFile } from "node:fs/promises";
|
|
3
|
+
import { join, resolve } from "node:path";
|
|
4
|
+
import { detectExistingInstallation } from "../../installer/detect.js";
|
|
5
|
+
import { resolveProjectRoot } from "../../installer/boundary.js";
|
|
6
|
+
import { payloadRoot as getPayloadRoot } from "../../installer/context.js";
|
|
7
|
+
import { MANIFEST_RELATIVE_PATH, serializeManifest } from "../../installer/manifest.js";
|
|
8
|
+
import { buildConfigurationPlan, configurationStateFor } from "../../installer/configuration.js";
|
|
9
|
+
import { ManagedConflictError } from "../../installer/plan.js";
|
|
10
|
+
import { migrateInstallationManifest } from "../../installer/migrations/installation/index.js";
|
|
11
|
+
import { executePlan, preflightPlan } from "../../installer/transaction.js";
|
|
12
|
+
import { configurableIntegrations, getIntegration, resolveIntegrationId } from "../../integrations/registry.js";
|
|
13
|
+
import { configureIntegration } from "../../tui/configure-integration.js";
|
|
14
|
+
import { confirmConfiguration } from "../../tui/confirm-configuration.js";
|
|
15
|
+
export async function configureProjectIntegration(input) {
|
|
16
|
+
const existing = await detectExistingInstallation(input.projectRoot);
|
|
17
|
+
if (existing.kind !== "valid" || !existing.manifest)
|
|
18
|
+
throw new Error("YAAW-SE is not installed in this project.");
|
|
19
|
+
const manifest = migrateInstallationManifest(existing.manifest);
|
|
20
|
+
const record = manifest.integrations[input.integrationId];
|
|
21
|
+
if (!record)
|
|
22
|
+
throw new Error(`${getIntegration(input.integrationId).displayName} is not installed in this project.`);
|
|
23
|
+
const adapter = getIntegration(input.integrationId);
|
|
24
|
+
const capability = adapter.configuration;
|
|
25
|
+
if (!capability)
|
|
26
|
+
throw new Error(`${adapter.displayName} is installed but does not expose YAAW configuration yet.`);
|
|
27
|
+
const currentSettings = record.configuration?.settings ?? record.runtime ?? capability.defaultSettings();
|
|
28
|
+
const currentProfile = record.configuration?.profile ?? null;
|
|
29
|
+
const state = configurationStateFor(manifest, input.integrationId);
|
|
30
|
+
const pendingChanges = capability.changes.filter(change => change.revision > (record.configuration?.appliedRevision ?? 0));
|
|
31
|
+
if (input.interactive && input.showIntro !== false) {
|
|
32
|
+
p.intro(`YAAW-SE — ${adapter.displayName} configuration`);
|
|
33
|
+
}
|
|
34
|
+
if (input.interactive && state?.updateAvailable) {
|
|
35
|
+
p.note([
|
|
36
|
+
`Project: ${input.projectRoot}`,
|
|
37
|
+
`Current configuration revision: ${state.appliedRevision}`,
|
|
38
|
+
`Latest supported revision: ${state.availableRevision}`,
|
|
39
|
+
"",
|
|
40
|
+
"New since your current configuration:",
|
|
41
|
+
...pendingChanges.map(change => ` ${change.title}`)
|
|
42
|
+
].join("\n"), `${adapter.displayName} configuration`);
|
|
43
|
+
}
|
|
44
|
+
let draftSettings = currentSettings;
|
|
45
|
+
let draftProfile = currentProfile;
|
|
46
|
+
let sessionConflictPolicy = input.conflictPolicy ?? "fail";
|
|
47
|
+
let headlessLoaded = false;
|
|
48
|
+
while (true) {
|
|
49
|
+
if (input.interactive) {
|
|
50
|
+
const selection = await configureIntegration(input.integrationId, draftSettings, {
|
|
51
|
+
reason: input.reason,
|
|
52
|
+
availableRevision: capability.revision,
|
|
53
|
+
pendingChanges,
|
|
54
|
+
currentProfile: draftProfile
|
|
55
|
+
});
|
|
56
|
+
if (selection.cancelled)
|
|
57
|
+
return { cancelled: true };
|
|
58
|
+
draftSettings = selection.settings;
|
|
59
|
+
draftProfile = selection.profile;
|
|
60
|
+
}
|
|
61
|
+
else if (!headlessLoaded) {
|
|
62
|
+
if (!input.configPath)
|
|
63
|
+
throw new Error("Headless configuration requires --config <path>.");
|
|
64
|
+
const parsed = JSON.parse(await readFile(resolve(input.configPath), "utf8"));
|
|
65
|
+
draftSettings = capability.parseHeadless ? capability.parseHeadless(parsed) : capability.normalize(parsed);
|
|
66
|
+
draftProfile = { id: "custom", revision: capability.revision };
|
|
67
|
+
headlessLoaded = true;
|
|
68
|
+
}
|
|
69
|
+
let conflictPolicy = input.conflictPolicy ?? sessionConflictPolicy;
|
|
70
|
+
let built;
|
|
71
|
+
try {
|
|
72
|
+
built = await buildConfigurationPlan({
|
|
73
|
+
projectRoot: input.projectRoot,
|
|
74
|
+
payloadRoot: getPayloadRoot(),
|
|
75
|
+
integrationId: input.integrationId,
|
|
76
|
+
settings: draftSettings,
|
|
77
|
+
profile: draftProfile,
|
|
78
|
+
conflictPolicy,
|
|
79
|
+
manifest
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
catch (error) {
|
|
83
|
+
if (!(error instanceof ManagedConflictError) || !input.interactive || input.conflictPolicy)
|
|
84
|
+
throw error;
|
|
85
|
+
p.note(error.conflicts.join("\n"), `Modified YAAW-managed ${adapter.displayName} configuration found`);
|
|
86
|
+
const selected = await p.select({
|
|
87
|
+
message: "How should this change be handled?",
|
|
88
|
+
initialValue: sessionConflictPolicy === "fail" ? "keep" : sessionConflictPolicy,
|
|
89
|
+
options: [
|
|
90
|
+
{ value: "keep", label: "Keep local value" },
|
|
91
|
+
{ value: "replace", label: "Replace with selected YAAW configuration" },
|
|
92
|
+
{ value: "backup-replace", label: "Backup local configuration and replace" },
|
|
93
|
+
{ value: "fail", label: "Cancel" }
|
|
94
|
+
]
|
|
95
|
+
});
|
|
96
|
+
if (p.isCancel(selected) || selected === "fail")
|
|
97
|
+
return { cancelled: true };
|
|
98
|
+
conflictPolicy = selected;
|
|
99
|
+
sessionConflictPolicy = conflictPolicy;
|
|
100
|
+
built = await buildConfigurationPlan({
|
|
101
|
+
projectRoot: input.projectRoot,
|
|
102
|
+
payloadRoot: getPayloadRoot(),
|
|
103
|
+
integrationId: input.integrationId,
|
|
104
|
+
settings: draftSettings,
|
|
105
|
+
profile: draftProfile,
|
|
106
|
+
conflictPolicy,
|
|
107
|
+
manifest
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
await preflightPlan(built.plan);
|
|
111
|
+
if (input.interactive) {
|
|
112
|
+
const confirmation = await confirmConfiguration({
|
|
113
|
+
projectRoot: input.projectRoot,
|
|
114
|
+
integrationId: input.integrationId,
|
|
115
|
+
currentSettings,
|
|
116
|
+
newSettings: draftSettings,
|
|
117
|
+
currentProfile,
|
|
118
|
+
newProfile: draftProfile
|
|
119
|
+
});
|
|
120
|
+
if (confirmation === "cancel")
|
|
121
|
+
return { cancelled: true };
|
|
122
|
+
if (confirmation === "back")
|
|
123
|
+
continue;
|
|
124
|
+
}
|
|
125
|
+
const manifestPath = join(input.projectRoot, MANIFEST_RELATIVE_PATH);
|
|
126
|
+
const changed = await executePlan(built.plan, {
|
|
127
|
+
manifestPath,
|
|
128
|
+
manifestContent: serializeManifest(built.manifest),
|
|
129
|
+
beforeManifest: async () => {
|
|
130
|
+
const verification = await capability.verify?.({
|
|
131
|
+
projectRoot: input.projectRoot,
|
|
132
|
+
payloadRoot: getPayloadRoot(),
|
|
133
|
+
settings: draftSettings
|
|
134
|
+
});
|
|
135
|
+
if (verification && !verification.healthy) {
|
|
136
|
+
throw new Error(`${adapter.displayName} configuration verification failed: ${verification.issues.join("; ")}`);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
if (input.interactive) {
|
|
141
|
+
p.note([
|
|
142
|
+
`Project: ${input.projectRoot}`,
|
|
143
|
+
`Profile: ${draftProfile?.id ?? "custom"}`,
|
|
144
|
+
`Configuration revision: ${capability.revision}`,
|
|
145
|
+
"",
|
|
146
|
+
"Preserved:",
|
|
147
|
+
" user-owned provider settings",
|
|
148
|
+
" unrelated integrations",
|
|
149
|
+
" durable project memory",
|
|
150
|
+
...(input.integrationId === "codex" ? ["", "Start a new Codex session/task for project settings to reload."] : [])
|
|
151
|
+
].join("\n"), `${adapter.displayName} configuration updated`);
|
|
152
|
+
}
|
|
153
|
+
return {
|
|
154
|
+
ok: true,
|
|
155
|
+
integrationId: input.integrationId,
|
|
156
|
+
changed,
|
|
157
|
+
revision: capability.revision,
|
|
158
|
+
profile: draftProfile
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
export async function runConfig(integration, options = {}) {
|
|
163
|
+
const allowedConflictPolicies = new Set(["fail", "keep", "replace", "backup-replace"]);
|
|
164
|
+
if (options.conflictPolicy && !allowedConflictPolicies.has(options.conflictPolicy)) {
|
|
165
|
+
throw new Error(`Unknown conflict policy: ${options.conflictPolicy}`);
|
|
166
|
+
}
|
|
167
|
+
const interactive = !options.yes;
|
|
168
|
+
const projectRoot = await resolveProjectRoot(options.directory ?? process.cwd());
|
|
169
|
+
const existing = await detectExistingInstallation(projectRoot);
|
|
170
|
+
if (existing.kind !== "valid" || !existing.manifest)
|
|
171
|
+
throw new Error("YAAW-SE is not installed in this project.");
|
|
172
|
+
const manifest = migrateInstallationManifest(existing.manifest);
|
|
173
|
+
let integrationId;
|
|
174
|
+
if (integration)
|
|
175
|
+
integrationId = resolveIntegrationId(integration);
|
|
176
|
+
else {
|
|
177
|
+
const configurable = configurableIntegrations(Object.keys(manifest.integrations));
|
|
178
|
+
if (!configurable.length) {
|
|
179
|
+
const message = "No configurable YAAW integrations are installed in this project. Use: yaaw install";
|
|
180
|
+
if (options.json)
|
|
181
|
+
console.log(JSON.stringify({ ok: false, message }));
|
|
182
|
+
else
|
|
183
|
+
console.log(message);
|
|
184
|
+
return { ok: false, message };
|
|
185
|
+
}
|
|
186
|
+
if (configurable.length === 1)
|
|
187
|
+
integrationId = configurable[0].id;
|
|
188
|
+
else {
|
|
189
|
+
if (!interactive)
|
|
190
|
+
throw new Error("Headless yaaw config requires an integration argument.");
|
|
191
|
+
p.intro("YAAW-SE — Project configuration");
|
|
192
|
+
const selected = await p.select({
|
|
193
|
+
message: "Which integration would you like to configure?",
|
|
194
|
+
options: configurable.map(adapter => ({ value: adapter.id, label: adapter.displayName }))
|
|
195
|
+
});
|
|
196
|
+
if (p.isCancel(selected))
|
|
197
|
+
return;
|
|
198
|
+
integrationId = selected;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
if (!manifest.integrations[integrationId]) {
|
|
202
|
+
throw new Error(`${getIntegration(integrationId).displayName} is not installed in this project. Use yaaw install to modify integrations.`);
|
|
203
|
+
}
|
|
204
|
+
const result = await configureProjectIntegration({
|
|
205
|
+
projectRoot,
|
|
206
|
+
integrationId,
|
|
207
|
+
reason: "manual",
|
|
208
|
+
interactive,
|
|
209
|
+
configPath: options.config,
|
|
210
|
+
conflictPolicy: options.conflictPolicy,
|
|
211
|
+
showIntro: true
|
|
212
|
+
});
|
|
213
|
+
if (options.json)
|
|
214
|
+
console.log(JSON.stringify(result, null, 2));
|
|
215
|
+
else if (interactive && result && !("cancelled" in result))
|
|
216
|
+
p.outro("Configuration updated and verified.");
|
|
217
|
+
return result;
|
|
218
|
+
}
|
|
219
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/cli/commands/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,gBAAgB,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAA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AAE,gDAAgD;gBACzD,OAAO,EAAE,YAAY,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,EAAE,KAAK,EAAE,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;aAC1F,CAAC,CAAC;YACH,IAAI,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC;gBAAE,OAAO;YACjC,aAAa,GAAG,QAAyB,CAAC;QAC5C,CAAC;IACH,CAAC;IAED,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,aAAa,CAAC,EAAE,CAAC;QAC1C,MAAM,IAAI,KAAK,CAAC,GAAG,cAAc,CAAC,aAAa,CAAC,CAAC,WAAW,6EAA6E,CAAC,CAAC;IAC7I,CAAC;IACD,MAAM,MAAM,GAAG,MAAM,2BAA2B,CAAC;QAC/C,WAAW;QACX,aAAa;QACb,MAAM,EAAE,QAAQ;QAChB,WAAW;QACX,UAAU,EAAE,OAAO,CAAC,MAAM;QAC1B,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,SAAS,EAAE,IAAI;KAChB,CAAC,CAAC;IACH,IAAI,OAAO,CAAC,IAAI;QAAE,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;SAC1D,IAAI,WAAW,IAAI,MAAM,IAAI,CAAC,CAAC,WAAW,IAAI,MAAM,CAAC;QAAE,CAAC,CAAC,KAAK,CAAC,qCAAqC,CAAC,CAAC;IAC3G,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -11,6 +11,14 @@ export interface InstallCommandOptions {
|
|
|
11
11
|
listSkills?: boolean;
|
|
12
12
|
forceManaged?: boolean;
|
|
13
13
|
conflictPolicy?: ConflictPolicy;
|
|
14
|
+
codexRuntime?: string;
|
|
15
|
+
codexRootModel?: string;
|
|
16
|
+
codexRootReasoning?: string;
|
|
17
|
+
codexWorkerModel?: string;
|
|
18
|
+
codexWorkerReasoning?: string;
|
|
19
|
+
codexMaxAgents?: string;
|
|
20
|
+
codexServiceTier?: string;
|
|
21
|
+
codexConfig?: string;
|
|
14
22
|
json?: boolean;
|
|
15
23
|
}
|
|
16
24
|
export declare function runInstall(options?: InstallCommandOptions): Promise<string[] | {
|
|
@@ -19,6 +27,8 @@ export declare function runInstall(options?: InstallCommandOptions): Promise<str
|
|
|
19
27
|
selectedIntegrations: IntegrationId[];
|
|
20
28
|
selectedSkills: string[];
|
|
21
29
|
warnings: string[];
|
|
30
|
+
configurationSummaries?: import("../../installer/types.js").ConfigurationSummary[];
|
|
31
|
+
configurationUpdates?: import("../../installer/types.js").ConfigurationUpdate[];
|
|
22
32
|
operations: any[];
|
|
23
33
|
} | {
|
|
24
34
|
action: "fresh" | "modify" | "quick-update" | "repair";
|
|
@@ -37,4 +47,5 @@ export declare function runInstall(options?: InstallCommandOptions): Promise<str
|
|
|
37
47
|
tools: IntegrationId[];
|
|
38
48
|
skills: string[];
|
|
39
49
|
changed: string[];
|
|
50
|
+
configurationUpdates: import("../../installer/types.js").ConfigurationUpdate[];
|
|
40
51
|
} | undefined>;
|