gemiterm 2.0.0 → 2.1.1

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 (155) hide show
  1. package/README.md +32 -9
  2. package/package.json +13 -4
  3. package/src/cli/command-registry.ts +66 -62
  4. package/src/cli/commands/continue-command.ts +75 -1
  5. package/src/cli/commands/install-skills-command.ts +35 -0
  6. package/src/cli/commands/new-command.ts +62 -0
  7. package/src/cli/index.ts +19 -44
  8. package/src/cli/utils/long-arg-guard.ts +28 -0
  9. package/src/cli/utils/prompt-file.ts +26 -0
  10. package/src/infrastructure/cli-parser.ts +77 -0
  11. package/src/infrastructure/io.ts +9 -0
  12. package/src/services/skills-cli-driver.ts +58 -0
  13. package/src/services/skills-service.ts +52 -0
  14. package/.env +0 -2
  15. package/.github/workflows/manual-release.yml +0 -34
  16. package/.github/workflows/release.yml +0 -198
  17. package/.github/workflows/test.yml +0 -29
  18. package/.opencode/commands/opsx-apply.md +0 -152
  19. package/.opencode/commands/opsx-archive.md +0 -157
  20. package/.opencode/commands/opsx-explore.md +0 -169
  21. package/.opencode/commands/opsx-propose.md +0 -104
  22. package/.opencode/commands/opsx-sync.md +0 -140
  23. package/.opencode/commands/search-intelligently.md +0 -9
  24. package/.opencode/opencode.json +0 -20
  25. package/.opencode/skills/intellisearch/.version +0 -1
  26. package/.opencode/skills/intellisearch/SKILL.md +0 -84
  27. package/.opencode/skills/intellisearch/references/brave-search.md +0 -67
  28. package/.opencode/skills/intellisearch/references/ddg-search.md +0 -79
  29. package/.opencode/skills/intellisearch/references/deepwiki-tools.md +0 -246
  30. package/.opencode/skills/intellisearch/references/examples.md +0 -97
  31. package/.opencode/skills/intellisearch/references/gh-cli.md +0 -143
  32. package/.opencode/skills/intellisearch/references/google-search.md +0 -40
  33. package/.opencode/skills/intellisearch/references/search-workflow.md +0 -143
  34. package/.opencode/skills/intellisearch/references/workflow.md +0 -115
  35. package/.opencode/skills/openspec-apply-change/SKILL.md +0 -159
  36. package/.opencode/skills/openspec-archive-change/SKILL.md +0 -117
  37. package/.opencode/skills/openspec-explore/SKILL.md +0 -287
  38. package/.opencode/skills/openspec-propose/SKILL.md +0 -111
  39. package/.opencode/skills/openspec-sync-specs/SKILL.md +0 -147
  40. package/.serena/project.yml +0 -133
  41. package/AGENTS.md +0 -136
  42. package/CHANGELOG.md +0 -3
  43. package/bun.lock +0 -105
  44. package/docs/INSTALL.md +0 -185
  45. package/docs/PLAYWRIGHT_CLI_API.md +0 -306
  46. package/docs/python-release-for-reference.md +0 -175
  47. package/examples/sample_json_export.json +0 -32
  48. package/examples/sample_markdown_export.md +0 -221
  49. package/examples/usage_examples.sh +0 -222
  50. package/install.ps1 +0 -264
  51. package/install.sh +0 -275
  52. package/openspec/MAESTRO_MIGRATION.md +0 -180
  53. package/openspec/changes/archive/2026-06-08-command-spec-conformance/.openspec.yaml +0 -2
  54. package/openspec/changes/archive/2026-06-08-command-spec-conformance/design.md +0 -194
  55. package/openspec/changes/archive/2026-06-08-command-spec-conformance/proposal.md +0 -52
  56. package/openspec/changes/archive/2026-06-08-command-spec-conformance/specs/multi-profile-conversations/spec.md +0 -133
  57. package/openspec/changes/archive/2026-06-08-command-spec-conformance/tasks.md +0 -95
  58. package/openspec/changes/archive/2026-06-09-refactor-interactive-prompt-loop/.openspec.yaml +0 -2
  59. package/openspec/changes/archive/2026-06-09-refactor-interactive-prompt-loop/design.md +0 -28
  60. package/openspec/changes/archive/2026-06-09-refactor-interactive-prompt-loop/proposal.md +0 -22
  61. package/openspec/changes/archive/2026-06-09-refactor-interactive-prompt-loop/specs/interactive-prompt-loop/spec.md +0 -35
  62. package/openspec/changes/archive/2026-06-09-refactor-interactive-prompt-loop/tasks.md +0 -28
  63. package/openspec/changes/archive/2026-06-09-replace-gemini-api-placeholder-with-gemini-reverse/.openspec.yaml +0 -2
  64. package/openspec/changes/archive/2026-06-09-replace-gemini-api-placeholder-with-gemini-reverse/design.md +0 -323
  65. package/openspec/changes/archive/2026-06-09-replace-gemini-api-placeholder-with-gemini-reverse/proposal.md +0 -122
  66. package/openspec/changes/archive/2026-06-09-replace-gemini-api-placeholder-with-gemini-reverse/specs/no-capability-changes/spec.md +0 -29
  67. package/openspec/changes/archive/2026-06-09-replace-gemini-api-placeholder-with-gemini-reverse/tasks.md +0 -172
  68. package/openspec/changes/archive/2026-06-09-v2-install-migration/.openspec.yaml +0 -2
  69. package/openspec/changes/archive/2026-06-09-v2-install-migration/design.md +0 -241
  70. package/openspec/changes/archive/2026-06-09-v2-install-migration/proposal.md +0 -41
  71. package/openspec/changes/archive/2026-06-09-v2-install-migration/specs/v2-installer/spec.md +0 -205
  72. package/openspec/changes/archive/2026-06-09-v2-install-migration/tasks.md +0 -97
  73. package/openspec/changes/commander-cli-parser/.openspec.yaml +0 -2
  74. package/openspec/changes/commander-cli-parser/design.md +0 -107
  75. package/openspec/changes/commander-cli-parser/proposal.md +0 -31
  76. package/openspec/changes/commander-cli-parser/specs/cli/spec.md +0 -48
  77. package/openspec/changes/commander-cli-parser/tasks.md +0 -33
  78. package/openspec/changes/cross-platform-build-and-ci/.openspec.yaml +0 -2
  79. package/openspec/changes/cross-platform-build-and-ci/design.md +0 -213
  80. package/openspec/changes/cross-platform-build-and-ci/proposal.md +0 -50
  81. package/openspec/changes/cross-platform-build-and-ci/specs/path-and-file-mediation/spec.md +0 -335
  82. package/openspec/changes/cross-platform-build-and-ci/specs/release-pipeline/spec.md +0 -95
  83. package/openspec/changes/cross-platform-build-and-ci/tasks.md +0 -164
  84. package/openspec/config.yaml +0 -20
  85. package/openspec/specs/auth/spec.md +0 -394
  86. package/openspec/specs/cli/spec.md +0 -108
  87. package/openspec/specs/commands/spec.md +0 -409
  88. package/openspec/specs/configuration/spec.md +0 -130
  89. package/openspec/specs/conversations/spec.md +0 -139
  90. package/openspec/specs/domain-model/spec.md +0 -128
  91. package/openspec/specs/formatters/spec.md +0 -158
  92. package/openspec/specs/install-browser/spec.md +0 -146
  93. package/openspec/specs/interactive-prompt-loop/spec.md +0 -41
  94. package/openspec/specs/logger/spec.md +0 -71
  95. package/openspec/specs/mediator/spec.md +0 -72
  96. package/openspec/specs/multi-profile-conversations/spec.md +0 -145
  97. package/openspec/specs/path-utils/spec.md +0 -101
  98. package/openspec/specs/profiles/spec.md +0 -94
  99. package/openspec/specs/storage/spec.md +0 -198
  100. package/openspec/specs/testing/spec.md +0 -237
  101. package/openspec/specs/v2-installer/spec.md +0 -205
  102. package/openspec/specs/validators/spec.md +0 -65
  103. package/scripts/build.ts +0 -88
  104. package/scripts/clean-build.ps1 +0 -4
  105. package/scripts/clean-build.sh +0 -5
  106. package/scripts/install-browser.ps1 +0 -5
  107. package/scripts/install-browser.sh +0 -6
  108. package/scripts/lint-path-mediation.ps1 +0 -65
  109. package/scripts/lint-path-mediation.sh +0 -40
  110. package/tests/cli/auth-command.test.ts +0 -220
  111. package/tests/cli/command-registry.test.ts +0 -67
  112. package/tests/cli/continue-command.test.ts +0 -100
  113. package/tests/cli/delete-command.test.ts +0 -128
  114. package/tests/cli/export-all-command.test.ts +0 -375
  115. package/tests/cli/install-browser-command.test.ts +0 -48
  116. package/tests/cli/list-command.test.ts +0 -179
  117. package/tests/cli/new-command.test.ts +0 -139
  118. package/tests/cli/status-command.test.ts +0 -106
  119. package/tests/core/query-handlers.test.ts +0 -187
  120. package/tests/fixtures/auth-fixtures.ts +0 -98
  121. package/tests/fixtures/chat-fixtures.ts +0 -87
  122. package/tests/infrastructure/cli-table.test.ts +0 -107
  123. package/tests/infrastructure/formatters.test.ts +0 -202
  124. package/tests/infrastructure/io.test.ts +0 -197
  125. package/tests/infrastructure/logger.test.ts +0 -74
  126. package/tests/infrastructure/storage.test.ts +0 -335
  127. package/tests/infrastructure/validators.test.ts +0 -67
  128. package/tests/integration/commands/auth.test.ts +0 -186
  129. package/tests/integration/commands/continue.test.ts +0 -130
  130. package/tests/integration/commands/delete.test.ts +0 -140
  131. package/tests/integration/commands/export.test.ts +0 -266
  132. package/tests/integration/commands/fetch.test.ts +0 -238
  133. package/tests/integration/commands/list.test.ts +0 -281
  134. package/tests/integration/commands/profile.test.ts +0 -258
  135. package/tests/integration/commands/status.test.ts +0 -223
  136. package/tests/integration/installer-script-shape.test.ts +0 -67
  137. package/tests/parity/compare-outputs.ts +0 -359
  138. package/tests/parity/test-commands-parity.ps1 +0 -82
  139. package/tests/parity/test-commands-parity.sh +0 -61
  140. package/tests/services/auth-service.test.ts +0 -315
  141. package/tests/services/cookie-monitor.test.ts +0 -229
  142. package/tests/services/cookie-storage-service.test.ts +0 -230
  143. package/tests/services/gemini-client-wrapper.test.ts +0 -688
  144. package/tests/services/install-browser-service.test.ts +0 -83
  145. package/tests/services/playwright-cli-driver.test.ts +0 -468
  146. package/tests/services/profile-auth-manager.test.ts +0 -334
  147. package/tests/services/profile-service.test.ts +0 -224
  148. package/tests/setup.ts +0 -95
  149. package/tests/smoke/smoke.test.ts +0 -52
  150. package/tests/unit/config.test.ts +0 -159
  151. package/tests/unit/errors.test.ts +0 -119
  152. package/tests/unit/formatters.test.ts +0 -316
  153. package/tests/unit/mediator.test.ts +0 -152
  154. package/tests/unit/path-utils.test.ts +0 -289
  155. package/tsconfig.json +0 -16
@@ -1,287 +0,0 @@
1
- ---
2
- name: openspec-explore
3
- description: Enter explore mode - a thinking partner for exploring ideas, investigating problems, and clarifying requirements. Use when the user wants to think through something before or during a change.
4
- license: MIT
5
- compatibility: Requires openspec CLI.
6
- metadata:
7
- author: openspec
8
- version: "1.0"
9
- generatedBy: "1.4.1"
10
- ---
11
-
12
- Enter explore mode. Think deeply. Visualize freely. Follow the conversation wherever it goes.
13
-
14
- **IMPORTANT: Explore mode is for thinking, not implementing.** You may read files, search code, and investigate the codebase, but you must NEVER write code or implement features. If the user asks you to implement something, remind them to exit explore mode first and create a change proposal. You MAY create OpenSpec artifacts (proposals, designs, specs) if the user asks—that's capturing thinking, not implementing.
15
-
16
- **This is a stance, not a workflow.** There are no fixed steps, no required sequence, no mandatory outputs. You're a thinking partner helping the user explore.
17
-
18
- ---
19
-
20
- ## The Stance
21
-
22
- - **Curious, not prescriptive** - Ask questions that emerge naturally, don't follow a script
23
- - **Open threads, not interrogations** - Surface multiple interesting directions and let the user follow what resonates. Don't funnel them through a single path of questions.
24
- - **Visual** - Use ASCII diagrams liberally when they'd help clarify thinking
25
- - **Adaptive** - Follow interesting threads, pivot when new information emerges
26
- - **Patient** - Don't rush to conclusions, let the shape of the problem emerge
27
- - **Grounded** - Explore the actual codebase when relevant, don't just theorize
28
-
29
- ---
30
-
31
- ## What You Might Do
32
-
33
- Depending on what the user brings, you might:
34
-
35
- **Explore the problem space**
36
- - Ask clarifying questions that emerge from what they said
37
- - Challenge assumptions
38
- - Reframe the problem
39
- - Find analogies
40
-
41
- **Investigate the codebase**
42
- - Map existing architecture relevant to the discussion
43
- - Find integration points
44
- - Identify patterns already in use
45
- - Surface hidden complexity
46
-
47
- **Compare options**
48
- - Brainstorm multiple approaches
49
- - Build comparison tables
50
- - Sketch tradeoffs
51
- - Recommend a path (if asked)
52
-
53
- **Visualize**
54
- ```
55
- ┌─────────────────────────────────────────┐
56
- │ Use ASCII diagrams liberally │
57
- ├─────────────────────────────────────────┤
58
- │ │
59
- │ ┌────────┐ ┌────────┐ │
60
- │ │ State │────────▶│ State │ │
61
- │ │ A │ │ B │ │
62
- │ └────────┘ └────────┘ │
63
- │ │
64
- │ System diagrams, state machines, │
65
- │ data flows, architecture sketches, │
66
- │ dependency graphs, comparison tables │
67
- │ │
68
- └─────────────────────────────────────────┘
69
- ```
70
-
71
- **Surface risks and unknowns**
72
- - Identify what could go wrong
73
- - Find gaps in understanding
74
- - Suggest spikes or investigations
75
-
76
- ---
77
-
78
- ## OpenSpec Awareness
79
-
80
- You have full context of the OpenSpec system. Use it naturally, don't force it.
81
-
82
- ### Check for context
83
-
84
- At the start, quickly check what exists:
85
- ```bash
86
- openspec list --json
87
- ```
88
-
89
- This tells you:
90
- - If there are active changes
91
- - Their names, schemas, and status
92
- - What the user might be working on
93
-
94
- ### When no change exists
95
-
96
- Think freely. When insights crystallize, you might offer:
97
-
98
- - "This feels solid enough to start a change. Want me to create a proposal?"
99
- - Or keep exploring - no pressure to formalize
100
-
101
- ### When a change exists
102
-
103
- If the user mentions a change or you detect one is relevant:
104
-
105
- 1. **Resolve and read existing artifacts for context**
106
- - Run `openspec status --change "<name>" --json`.
107
- - Use `changeRoot`, `artifactPaths`, and `actionContext` from the status JSON.
108
- - Read existing files from `artifactPaths.<artifact>.existingOutputPaths`.
109
-
110
- 2. **Reference them naturally in conversation**
111
- - "Your design mentions using Redis, but we just realized SQLite fits better..."
112
- - "The proposal scopes this to premium users, but we're now thinking everyone..."
113
-
114
- 3. **Offer to capture when decisions are made**
115
-
116
- | Insight Type | Where to Capture |
117
- |----------------------------|--------------------------------|
118
- | New requirement discovered | `specs/<capability>/spec.md` |
119
- | Requirement changed | `specs/<capability>/spec.md` |
120
- | Design decision made | `design.md` |
121
- | Scope changed | `proposal.md` |
122
- | New work identified | `tasks.md` |
123
- | Assumption invalidated | Relevant artifact |
124
-
125
- Example offers:
126
- - "That's a design decision. Capture it in design.md?"
127
- - "This is a new requirement. Add it to specs?"
128
- - "This changes scope. Update the proposal?"
129
-
130
- 4. **The user decides** - Offer and move on. Don't pressure. Don't auto-capture.
131
-
132
- ---
133
-
134
- ## What You Don't Have To Do
135
-
136
- - Follow a script
137
- - Ask the same questions every time
138
- - Produce a specific artifact
139
- - Reach a conclusion
140
- - Stay on topic if a tangent is valuable
141
- - Be brief (this is thinking time)
142
-
143
- ---
144
-
145
- ## Handling Different Entry Points
146
-
147
- **User brings a vague idea:**
148
- ```
149
- User: I'm thinking about adding real-time collaboration
150
-
151
- You: Real-time collab is a big space. Let me think about this...
152
-
153
- COLLABORATION SPECTRUM
154
- ════════════════════════════════════════════
155
-
156
- Awareness Coordination Sync
157
- │ │ │
158
- ▼ ▼ ▼
159
- ┌────────┐ ┌────────┐ ┌────────┐
160
- │Presence│ │Cursors │ │ CRDT │
161
- │ "3 │ │ Multi │ │Conflict│
162
- │online" │ │ select │ │ free │
163
- └────────┘ └────────┘ └────────┘
164
- │ │ │
165
- trivial moderate complex
166
-
167
- Where's your head at?
168
- ```
169
-
170
- **User brings a specific problem:**
171
- ```
172
- User: The auth system is a mess
173
-
174
- You: [reads codebase]
175
-
176
- ┌─────────────────────────────────────────────┐
177
- │ CURRENT AUTH FLOW │
178
- └─────────────────────────────────────────────┘
179
-
180
- ┌─────────────┼─────────────┐
181
- ▼ ▼ ▼
182
- ┌─────────┐ ┌─────────┐ ┌─────────┐
183
- │ Google │ │ GitHub │ │ Email │
184
- │ OAuth │ │ OAuth │ │ Magic │
185
- └────┬────┘ └────┬────┘ └────┬────┘
186
- │ │ │
187
- └─────────────┼─────────────┘
188
-
189
- ┌───────────┐
190
- │ Session │
191
- └─────┬─────┘
192
-
193
-
194
- ┌───────────┐
195
- │ Perms │
196
- └───────────┘
197
-
198
- I see three tangles. Which one's burning?
199
- ```
200
-
201
- **User is stuck mid-implementation:**
202
- ```
203
- User: /opsx-explore add-auth-system
204
- The OAuth integration is more complex than expected
205
-
206
- You: [reads change artifacts]
207
-
208
- You're on task 4: "Implement OAuth flow"
209
-
210
- Let me trace what's involved...
211
-
212
- [draws diagram, explores options, suggests paths]
213
-
214
- Want to update the design to reflect this?
215
- Or add a spike task to investigate?
216
- ```
217
-
218
- **User wants to compare options:**
219
- ```
220
- User: Should we use Postgres or SQLite?
221
-
222
- You: Generic answer is boring. What's the context?
223
-
224
- User: A CLI tool that tracks local dev environments
225
-
226
- You: That changes everything.
227
-
228
- ┌─────────────────────────────────────────────────┐
229
- │ CLI TOOL DATA STORAGE │
230
- └─────────────────────────────────────────────────┘
231
-
232
- Key constraints:
233
- • No daemon running
234
- • Must work offline
235
- • Single user
236
-
237
- SQLite Postgres
238
- Deployment embedded ✓ needs server ✗
239
- Offline yes ✓ no ✗
240
- Single file yes ✓ no ✗
241
-
242
- SQLite. Not even close.
243
-
244
- Unless... is there a sync component?
245
- ```
246
-
247
- ---
248
-
249
- ## Ending Discovery
250
-
251
- There's no required ending. Discovery might:
252
-
253
- - **Flow into a proposal**: "Ready to start? I can create a change proposal."
254
- - **Result in artifact updates**: "Updated design.md with these decisions"
255
- - **Just provide clarity**: User has what they need, moves on
256
- - **Continue later**: "We can pick this up anytime"
257
-
258
- When it feels like things are crystallizing, you might summarize:
259
-
260
- ```
261
- ## What We Figured Out
262
-
263
- **The problem**: [crystallized understanding]
264
-
265
- **The approach**: [if one emerged]
266
-
267
- **Open questions**: [if any remain]
268
-
269
- **Next steps** (if ready):
270
- - Create a change proposal
271
- - Keep exploring: just keep talking
272
- ```
273
-
274
- But this summary is optional. Sometimes the thinking IS the value.
275
-
276
- ---
277
-
278
- ## Guardrails
279
-
280
- - **Don't implement** - Never write code or implement features. Creating OpenSpec artifacts is fine, writing application code is not.
281
- - **Don't fake understanding** - If something is unclear, dig deeper
282
- - **Don't rush** - Discovery is thinking time, not task time
283
- - **Don't force structure** - Let patterns emerge naturally
284
- - **Don't auto-capture** - Offer to save insights, don't just do it
285
- - **Do visualize** - A good diagram is worth many paragraphs
286
- - **Do explore the codebase** - Ground discussions in reality
287
- - **Do question assumptions** - Including the user's and your own
@@ -1,111 +0,0 @@
1
- ---
2
- name: openspec-propose
3
- description: Propose a new change with all artifacts generated in one step. Use when the user wants to quickly describe what they want to build and get a complete proposal with design, specs, and tasks ready for implementation.
4
- license: MIT
5
- compatibility: Requires openspec CLI.
6
- metadata:
7
- author: openspec
8
- version: "1.0"
9
- generatedBy: "1.4.1"
10
- ---
11
-
12
- Propose a new change - create the change and generate all artifacts in one step.
13
-
14
- I'll create a change with artifacts:
15
- - proposal.md (what & why)
16
- - design.md (how)
17
- - tasks.md (implementation steps)
18
-
19
- When ready to implement, run /opsx-apply
20
-
21
- ---
22
-
23
- **Input**: The user's request should include a change name (kebab-case) OR a description of what they want to build.
24
-
25
- **Steps**
26
-
27
- 1. **If no clear input provided, ask what they want to build**
28
-
29
- Use the **AskUserQuestion tool** (open-ended, no preset options) to ask:
30
- > "What change do you want to work on? Describe what you want to build or fix."
31
-
32
- From their description, derive a kebab-case name (e.g., "add user authentication" → `add-user-auth`).
33
-
34
- **IMPORTANT**: Do NOT proceed without understanding what the user wants to build.
35
-
36
- 2. **Create the change directory**
37
- ```bash
38
- openspec new change "<name>"
39
- ```
40
- This creates a scaffolded change in the planning home resolved by the CLI with `.openspec.yaml`.
41
-
42
- 3. **Get the artifact build order**
43
- ```bash
44
- openspec status --change "<name>" --json
45
- ```
46
- Parse the JSON to get:
47
- - `applyRequires`: array of artifact IDs needed before implementation (e.g., `["tasks"]`)
48
- - `artifacts`: list of all artifacts with their status and dependencies
49
- - `planningHome`, `changeRoot`, `artifactPaths`, and `actionContext`: path and scope context. Use these instead of assuming repo-local paths.
50
-
51
- 4. **Create artifacts in sequence until apply-ready**
52
-
53
- Use the **TodoWrite tool** to track progress through the artifacts.
54
-
55
- Loop through artifacts in dependency order (artifacts with no pending dependencies first):
56
-
57
- a. **For each artifact that is `ready` (dependencies satisfied)**:
58
- - Get instructions:
59
- ```bash
60
- openspec instructions <artifact-id> --change "<name>" --json
61
- ```
62
- - The instructions JSON includes:
63
- - `context`: Project background (constraints for you - do NOT include in output)
64
- - `rules`: Artifact-specific rules (constraints for you - do NOT include in output)
65
- - `template`: The structure to use for your output file
66
- - `instruction`: Schema-specific guidance for this artifact type
67
- - `resolvedOutputPath`: Resolved path or pattern to write the artifact
68
- - `dependencies`: Completed artifacts to read for context
69
- - Read any completed dependency files for context
70
- - Create the artifact file using `template` as the structure and write it to `resolvedOutputPath`
71
- - Apply `context` and `rules` as constraints - but do NOT copy them into the file
72
- - Show brief progress: "Created <artifact-id>"
73
-
74
- b. **Continue until all `applyRequires` artifacts are complete**
75
- - After creating each artifact, re-run `openspec status --change "<name>" --json`
76
- - Check if every artifact ID in `applyRequires` has `status: "done"` in the artifacts array
77
- - Stop when all `applyRequires` artifacts are done
78
-
79
- c. **If an artifact requires user input** (unclear context):
80
- - Use **AskUserQuestion tool** to clarify
81
- - Then continue with creation
82
-
83
- 5. **Show final status**
84
- ```bash
85
- openspec status --change "<name>"
86
- ```
87
-
88
- **Output**
89
-
90
- After completing all artifacts, summarize:
91
- - Change name and location
92
- - List of artifacts created with brief descriptions
93
- - What's ready: "All artifacts created! Ready for implementation."
94
- - Prompt: "Run `/opsx-apply` or ask me to implement to start working on the tasks."
95
-
96
- **Artifact Creation Guidelines**
97
-
98
- - Follow the `instruction` field from `openspec instructions` for each artifact type
99
- - The schema defines what each artifact should contain - follow it
100
- - Read dependency artifacts for context before creating new ones
101
- - Use `template` as the structure for your output file - fill in its sections
102
- - **IMPORTANT**: `context` and `rules` are constraints for YOU, not content for the file
103
- - Do NOT copy `<context>`, `<rules>`, `<project_context>` blocks into the artifact
104
- - These guide what you write, but should never appear in the output
105
-
106
- **Guardrails**
107
- - Create ALL artifacts needed for implementation (as defined by schema's `apply.requires`)
108
- - Always read dependency artifacts before creating a new one
109
- - If context is critically unclear, ask the user - but prefer making reasonable decisions to keep momentum
110
- - If a change with that name already exists, ask if user wants to continue it or create a new one
111
- - Verify each artifact file exists after writing before proceeding to next
@@ -1,147 +0,0 @@
1
- ---
2
- name: openspec-sync-specs
3
- description: Sync delta specs from a change to main specs. Use when the user wants to update main specs with changes from a delta spec, without archiving the change.
4
- license: MIT
5
- compatibility: Requires openspec CLI.
6
- metadata:
7
- author: openspec
8
- version: "1.0"
9
- generatedBy: "1.4.1"
10
- ---
11
-
12
- Sync delta specs from a change to main specs.
13
-
14
- This is an **agent-driven** operation - you will read delta specs and directly edit main specs to apply the changes. This allows intelligent merging (e.g., adding a scenario without copying the entire requirement).
15
-
16
- **Input**: Optionally specify a change name. If omitted, check if it can be inferred from conversation context. If vague or ambiguous you MUST prompt for available changes.
17
-
18
- **Steps**
19
-
20
- 1. **If no change name provided, prompt for selection**
21
-
22
- Run `openspec list --json` to get available changes. Use the **AskUserQuestion tool** to let the user select.
23
-
24
- Show changes that have delta specs (under `specs/` directory).
25
-
26
- **IMPORTANT**: Do NOT guess or auto-select a change. Always let the user choose.
27
-
28
- 2. **Resolve change context**
29
-
30
- Run:
31
- ```bash
32
- openspec status --change "<name>" --json
33
- ```
34
-
35
- If status reports `actionContext.mode: "workspace-planning"`, explain that workspace spec sync is not supported in this slice and STOP. Do not fall back to repo-local paths or edit linked repos.
36
-
37
- 3. **Find delta specs**
38
-
39
- Use `artifactPaths.specs.existingOutputPaths` from the status JSON as the list of delta spec files.
40
-
41
- Each delta spec file contains sections like:
42
- - `## ADDED Requirements` - New requirements to add
43
- - `## MODIFIED Requirements` - Changes to existing requirements
44
- - `## REMOVED Requirements` - Requirements to remove
45
- - `## RENAMED Requirements` - Requirements to rename (FROM:/TO: format)
46
-
47
- If no delta specs found, inform user and stop.
48
-
49
- 4. **For each delta spec, apply changes to main specs**
50
-
51
- For each repo-local capability delta spec path returned by the CLI:
52
-
53
- a. **Read the delta spec** to understand the intended changes
54
-
55
- b. **Read the main spec** at `openspec/specs/<capability>/spec.md` (may not exist yet)
56
-
57
- c. **Apply changes intelligently**:
58
-
59
- **ADDED Requirements:**
60
- - If requirement doesn't exist in main spec → add it
61
- - If requirement already exists → update it to match (treat as implicit MODIFIED)
62
-
63
- **MODIFIED Requirements:**
64
- - Find the requirement in main spec
65
- - Apply the changes - this can be:
66
- - Adding new scenarios (don't need to copy existing ones)
67
- - Modifying existing scenarios
68
- - Changing the requirement description
69
- - Preserve scenarios/content not mentioned in the delta
70
-
71
- **REMOVED Requirements:**
72
- - Remove the entire requirement block from main spec
73
-
74
- **RENAMED Requirements:**
75
- - Find the FROM requirement, rename to TO
76
-
77
- d. **Create new main spec** if capability doesn't exist yet:
78
- - Create `openspec/specs/<capability>/spec.md`
79
- - Add Purpose section (can be brief, mark as TBD)
80
- - Add Requirements section with the ADDED requirements
81
-
82
- 5. **Show summary**
83
-
84
- After applying all changes, summarize:
85
- - Which capabilities were updated
86
- - What changes were made (requirements added/modified/removed/renamed)
87
-
88
- **Delta Spec Format Reference**
89
-
90
- ```markdown
91
- ## ADDED Requirements
92
-
93
- ### Requirement: New Feature
94
- The system SHALL do something new.
95
-
96
- #### Scenario: Basic case
97
- - **WHEN** user does X
98
- - **THEN** system does Y
99
-
100
- ## MODIFIED Requirements
101
-
102
- ### Requirement: Existing Feature
103
- #### Scenario: New scenario to add
104
- - **WHEN** user does A
105
- - **THEN** system does B
106
-
107
- ## REMOVED Requirements
108
-
109
- ### Requirement: Deprecated Feature
110
-
111
- ## RENAMED Requirements
112
-
113
- - FROM: `### Requirement: Old Name`
114
- - TO: `### Requirement: New Name`
115
- ```
116
-
117
- **Key Principle: Intelligent Merging**
118
-
119
- Unlike programmatic merging, you can apply **partial updates**:
120
- - To add a scenario, just include that scenario under MODIFIED - don't copy existing scenarios
121
- - The delta represents *intent*, not a wholesale replacement
122
- - Use your judgment to merge changes sensibly
123
-
124
- **Output On Success**
125
-
126
- ```
127
- ## Specs Synced: <change-name>
128
-
129
- Updated main specs:
130
-
131
- **<capability-1>**:
132
- - Added requirement: "New Feature"
133
- - Modified requirement: "Existing Feature" (added 1 scenario)
134
-
135
- **<capability-2>**:
136
- - Created new spec file
137
- - Added requirement: "Another Feature"
138
-
139
- Main specs are now updated. The change remains active - archive when implementation is complete.
140
- ```
141
-
142
- **Guardrails**
143
- - Read both delta and main specs before making changes
144
- - Preserve existing content not mentioned in delta
145
- - If something is unclear, ask for clarification
146
- - Show what you're changing as you go
147
- - The operation should be idempotent - running twice should give same result
@@ -1,133 +0,0 @@
1
- # the name by which the project can be referenced within Serena
2
- project_name: "gemiterm-bun-rewrite"
3
-
4
-
5
- # list of languages for which language servers are started; choose from:
6
- # al angular ansible bash clojure
7
- # cpp cpp_ccls crystal csharp csharp_omnisharp
8
- # dart elixir elm erlang fortran
9
- # fsharp go groovy haskell haxe
10
- # hlsl html java json julia
11
- # kotlin lean4 lua luau markdown
12
- # matlab msl nix ocaml pascal
13
- # perl php php_phpactor powershell python
14
- # python_jedi python_ty r rego ruby
15
- # ruby_solargraph rust scala scss solidity
16
- # svelte swift systemverilog terraform toml
17
- # typescript typescript_vts vue yaml zig
18
- # (This list may be outdated. For the current list, see values of Language enum here:
19
- # https://github.com/oraios/serena/blob/main/src/solidlsp/ls_config.py
20
- # For some languages, there are alternative language servers, e.g. csharp_omnisharp, ruby_solargraph.)
21
- # Note:
22
- # - For C, use cpp
23
- # - For JavaScript, use typescript
24
- # - For Angular projects, use angular (subsumes typescript+html; requires `npm install` in the project root)
25
- # - For Svelte projects, use svelte (subsumes typescript/javascript for .svelte projects; requires npm)
26
- # - For SCSS / Sass / plain CSS, use scss (some-sass-language-server handles all three)
27
- # - For Free Pascal/Lazarus, use pascal
28
- # Special requirements:
29
- # Some languages require additional setup/installations.
30
- # See here for details: https://oraios.github.io/serena/01-about/020_programming-languages.html#language-servers
31
- # When using multiple languages, the first language server that supports a given file will be used for that file.
32
- # The first language is the default language and the respective language server will be used as a fallback.
33
- # Note that when using the JetBrains backend, language servers are not used and this list is correspondingly ignored.
34
- languages:
35
- - typescript
36
-
37
- # the encoding used by text files in the project
38
- # For a list of possible encodings, see https://docs.python.org/3.11/library/codecs.html#standard-encodings
39
- encoding: "utf-8"
40
-
41
- # line ending convention to use when writing source files.
42
- # Possible values: unset (use global setting), "lf", "crlf", or "native" (platform default)
43
- # This does not affect Serena's own files (e.g. memories and configuration files), which always use native line endings.
44
- line_ending:
45
-
46
- # The language backend to use for this project.
47
- # If not set, the global setting from serena_config.yml is used.
48
- # Valid values: LSP, JetBrains
49
- # Note: the backend is fixed at startup. If a project with a different backend
50
- # is activated post-init, an error will be returned.
51
- language_backend:
52
-
53
- # whether to use project's .gitignore files to ignore files
54
- ignore_all_files_in_gitignore: true
55
-
56
- # advanced configuration option allowing to configure language server-specific options.
57
- # Maps the language key to the options.
58
- # Have a look at the docstring of the constructors of the LS implementations within solidlsp (e.g., for C# or PHP) to see which options are available.
59
- # No documentation on options means no options are available.
60
- ls_specific_settings: {}
61
-
62
- # list of additional workspace folder paths for cross-package reference support (e.g. in monorepos).
63
- # Paths can be absolute or relative to the project root.
64
- # Each folder is registered as an LSP workspace folder, enabling language servers to discover
65
- # symbols and references across package boundaries.
66
- # Currently supported for: TypeScript.
67
- # Example:
68
- # additional_workspace_folders:
69
- # - ../sibling-package
70
- # - ../shared-lib
71
- additional_workspace_folders: []
72
-
73
- # list of additional paths to ignore in this project.
74
- # Same syntax as gitignore, so you can use * and **.
75
- # Note: global ignored_paths from serena_config.yml are also applied additively.
76
- ignored_paths: []
77
-
78
- # whether the project is in read-only mode
79
- # If set to true, all editing tools will be disabled and attempts to use them will result in an error
80
- # Added on 2025-04-18
81
- read_only: false
82
-
83
- # list of tool names to exclude.
84
- # This extends the existing exclusions (e.g. from the global configuration)
85
- # Find the list of tools here: https://oraios.github.io/serena/01-about/035_tools.html
86
- excluded_tools: []
87
-
88
- # list of tools to include that would otherwise be disabled (particularly optional tools that are disabled by default).
89
- # This extends the existing inclusions (e.g. from the global configuration).
90
- # Find the list of tools here: https://oraios.github.io/serena/01-about/035_tools.html
91
- included_optional_tools: []
92
-
93
- # fixed set of tools to use as the base tool set (if non-empty), replacing Serena's default set of tools.
94
- # This cannot be combined with non-empty excluded_tools or included_optional_tools.
95
- # Find the list of tools here: https://oraios.github.io/serena/01-about/035_tools.html
96
- fixed_tools: []
97
-
98
- # list of mode names that are to be activated by default, overriding the setting in the global configuration.
99
- # The full set of modes to be activated is base_modes (from global config) + default_modes + added_modes.
100
- # If the setting is undefined/empty, the default_modes from the global configuration (serena_config.yml) apply.
101
- # Otherwise, this overrides the setting from the global configuration (serena_config.yml).
102
- # Therefore, you can set this to [] if you do not want the default modes defined in the global config to apply
103
- # for this project.
104
- # This setting can, in turn, be overridden by CLI parameters (--mode).
105
- # See https://oraios.github.io/serena/02-usage/050_configuration.html#modes
106
- default_modes:
107
-
108
- # list of mode names to be activated additionally for this project, e.g. ["query-projects"]
109
- # The full set of modes to be activated is base_modes (from global config) + default_modes + added_modes.
110
- # See https://oraios.github.io/serena/02-usage/050_configuration.html#modes
111
- added_modes:
112
-
113
- # initial prompt for the project. It will always be given to the LLM upon activating the project
114
- # (contrary to the memories, which are loaded on demand).
115
- initial_prompt: ""
116
-
117
- # time budget (seconds) per tool call for the retrieval of additional symbol information
118
- # such as docstrings or parameter information.
119
- # This overrides the corresponding setting in the global configuration; see the documentation there.
120
- # If null or missing, use the setting from the global configuration.
121
- symbol_info_budget:
122
-
123
- # list of regex patterns which, when matched, mark a memory entry as read‑only.
124
- # Extends the list from the global configuration, merging the two lists.
125
- read_only_memory_patterns: []
126
-
127
- # list of regex patterns for memories to completely ignore.
128
- # Matching memories will not appear in list_memories or activate_project output
129
- # and cannot be accessed via read_memory or write_memory.
130
- # To access ignored memory files, use the read_file tool on the raw file path.
131
- # Extends the list from the global configuration, merging the two lists.
132
- # Example: ["_archive/.*", "_episodes/.*"]
133
- ignored_memory_patterns: []