opencode-onboard 0.4.4 → 0.4.7
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 +58 -19
- package/content/.agents/agents/basic-engineer.md +5 -5
- package/content/.agents/agents/devops-manager.md +14 -10
- package/content/.agents/skills/ob-global/SKILL.md +9 -7
- package/content/.opencode/commands/ob-create-architecture.md +76 -0
- package/content/.opencode/commands/ob-create-design.md +53 -0
- package/content/.opencode/commands/{create-engineer.md → ob-create-engineer.md} +9 -8
- package/content/.opencode/commands/ob-init.md +8 -0
- package/content/.opencode/commands/{main.md → ob-main.md} +2 -2
- package/content/.opencode/commands/{plan.md → ob-plan.md} +2 -2
- package/content/.opencode/commands/opsx-apply.md +212 -193
- package/content/.opencode/skills/openspec-apply-change/SKILL.md +234 -176
- package/content/AGENTS.md +161 -49
- package/content/ARCHITECTURE.md +16 -327
- package/content/DESIGN.md +16 -26
- package/package.json +1 -1
- package/src/commands/join.js +6 -1
- package/src/commands/single.js +1 -1
- package/src/presets/models.json +2 -2
- package/src/presets/platforms.json +4 -0
- package/src/steps/copy/agents.js +200 -3
- package/src/steps/copy/agents.test.js +45 -0
- package/src/steps/copy/copy.test.js +15 -2
- package/src/steps/copy/index.js +2 -1
- package/src/steps/metadata/index.js +6 -5
- package/src/steps/metadata/metadata.test.js +16 -8
- package/src/steps/models/write.js +17 -4
- package/src/steps/models/write.test.js +57 -56
- package/src/steps/openspec/ensemble.js +81 -54
- package/src/steps/openspec/ensemble.test.js +40 -8
- package/src/steps/optimization/codegraph.js +51 -0
- package/src/steps/optimization/codegraph.test.js +104 -0
- package/src/steps/optimization/global.js +21 -1
- package/src/steps/optimization/global.test.js +3 -0
- package/src/steps/platform/index.js +8 -1
- package/src/steps/platform/platform.test.js +19 -0
- package/content/.opencode/commands/init.md +0 -8
|
@@ -45,6 +45,15 @@ describe('choosePlatform()', () => {
|
|
|
45
45
|
expect(success).toHaveBeenCalledWith('Platform: Azure DevOps')
|
|
46
46
|
})
|
|
47
47
|
|
|
48
|
+
it('returns "none" when user selects None', async () => {
|
|
49
|
+
select.mockResolvedValue('none')
|
|
50
|
+
|
|
51
|
+
const result = await choosePlatform()
|
|
52
|
+
|
|
53
|
+
expect(result).toBe('none')
|
|
54
|
+
expect(success).toHaveBeenCalledWith('Platform: None')
|
|
55
|
+
})
|
|
56
|
+
|
|
48
57
|
describe('checkPlatform()', () => {
|
|
49
58
|
describe('github path', () => {
|
|
50
59
|
it('prints success when gh is installed and authenticated', async () => {
|
|
@@ -125,5 +134,15 @@ describe('choosePlatform()', () => {
|
|
|
125
134
|
expect(warn).toHaveBeenCalledWith('Could not check azure-devops extension. Run:')
|
|
126
135
|
})
|
|
127
136
|
})
|
|
137
|
+
|
|
138
|
+
describe('none path', () => {
|
|
139
|
+
it('skips CLI checks when no platform integration is selected', async () => {
|
|
140
|
+
await checkPlatform('none')
|
|
141
|
+
|
|
142
|
+
expect(commandExists).not.toHaveBeenCalled()
|
|
143
|
+
expect(execa).not.toHaveBeenCalled()
|
|
144
|
+
expect(success).toHaveBeenCalledWith('Platform: None')
|
|
145
|
+
})
|
|
146
|
+
})
|
|
128
147
|
})
|
|
129
148
|
})
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Initialize the project, runs the bootstrap sequence defined in AGENTS.md if not yet initialized.
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
Check if `AGENTS.md` is in bootstrap mode (contains `<!-- AGENTS-TEMPLATE-START -->`).
|
|
6
|
-
|
|
7
|
-
- If yes: run the full initialization sequence defined in `AGENTS.md` now.
|
|
8
|
-
- If no: tell the user the project is already initialized.
|