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.
Files changed (37) hide show
  1. package/README.md +58 -19
  2. package/content/.agents/agents/basic-engineer.md +5 -5
  3. package/content/.agents/agents/devops-manager.md +14 -10
  4. package/content/.agents/skills/ob-global/SKILL.md +9 -7
  5. package/content/.opencode/commands/ob-create-architecture.md +76 -0
  6. package/content/.opencode/commands/ob-create-design.md +53 -0
  7. package/content/.opencode/commands/{create-engineer.md → ob-create-engineer.md} +9 -8
  8. package/content/.opencode/commands/ob-init.md +8 -0
  9. package/content/.opencode/commands/{main.md → ob-main.md} +2 -2
  10. package/content/.opencode/commands/{plan.md → ob-plan.md} +2 -2
  11. package/content/.opencode/commands/opsx-apply.md +212 -193
  12. package/content/.opencode/skills/openspec-apply-change/SKILL.md +234 -176
  13. package/content/AGENTS.md +161 -49
  14. package/content/ARCHITECTURE.md +16 -327
  15. package/content/DESIGN.md +16 -26
  16. package/package.json +1 -1
  17. package/src/commands/join.js +6 -1
  18. package/src/commands/single.js +1 -1
  19. package/src/presets/models.json +2 -2
  20. package/src/presets/platforms.json +4 -0
  21. package/src/steps/copy/agents.js +200 -3
  22. package/src/steps/copy/agents.test.js +45 -0
  23. package/src/steps/copy/copy.test.js +15 -2
  24. package/src/steps/copy/index.js +2 -1
  25. package/src/steps/metadata/index.js +6 -5
  26. package/src/steps/metadata/metadata.test.js +16 -8
  27. package/src/steps/models/write.js +17 -4
  28. package/src/steps/models/write.test.js +57 -56
  29. package/src/steps/openspec/ensemble.js +81 -54
  30. package/src/steps/openspec/ensemble.test.js +40 -8
  31. package/src/steps/optimization/codegraph.js +51 -0
  32. package/src/steps/optimization/codegraph.test.js +104 -0
  33. package/src/steps/optimization/global.js +21 -1
  34. package/src/steps/optimization/global.test.js +3 -0
  35. package/src/steps/platform/index.js +8 -1
  36. package/src/steps/platform/platform.test.js +19 -0
  37. 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.