@fission-ai/openspec 0.9.2 → 0.11.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/README.md
CHANGED
|
@@ -97,6 +97,7 @@ These tools have built-in OpenSpec commands. Select the OpenSpec integration whe
|
|
|
97
97
|
| **Windsurf** | `/openspec-proposal`, `/openspec-apply`, `/openspec-archive` (`.windsurf/workflows/`) |
|
|
98
98
|
| **Codex** | `/openspec-proposal`, `/openspec-apply`, `/openspec-archive` (global: `~/.codex/prompts`, auto-installed) |
|
|
99
99
|
| **GitHub Copilot** | `/openspec-proposal`, `/openspec-apply`, `/openspec-archive` (`.github/prompts/`) |
|
|
100
|
+
| **Amazon Q Developer** | `@openspec-proposal`, `@openspec-apply`, `@openspec-archive` (`.amazonq/prompts/`) |
|
|
100
101
|
|
|
101
102
|
Kilo Code discovers team workflows automatically. Save the generated files under `.kilocode/workflows/` and trigger them from the command palette with `/openspec-proposal.md`, `/openspec-apply.md`, or `/openspec-archive.md`.
|
|
102
103
|
|
package/dist/core/config.js
CHANGED
|
@@ -11,6 +11,7 @@ export const AI_TOOLS = [
|
|
|
11
11
|
{ name: 'Windsurf', value: 'windsurf', available: true, successLabel: 'Windsurf' },
|
|
12
12
|
{ name: 'Codex', value: 'codex', available: true, successLabel: 'Codex' },
|
|
13
13
|
{ name: 'GitHub Copilot', value: 'github-copilot', available: true, successLabel: 'GitHub Copilot' },
|
|
14
|
+
{ name: 'Amazon Q Developer', value: 'amazon-q', available: true, successLabel: 'Amazon Q Developer' },
|
|
14
15
|
{ name: 'AGENTS.md (works with Amp, VS Code, …)', value: 'agents', available: false, successLabel: 'your AGENTS.md-compatible assistant' }
|
|
15
16
|
];
|
|
16
17
|
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SlashCommandConfigurator } from './base.js';
|
|
2
|
+
import { SlashCommandId } from '../../templates/index.js';
|
|
3
|
+
export declare class AmazonQSlashCommandConfigurator extends SlashCommandConfigurator {
|
|
4
|
+
readonly toolId = "amazon-q";
|
|
5
|
+
readonly isAvailable = true;
|
|
6
|
+
protected getRelativePath(id: SlashCommandId): string;
|
|
7
|
+
protected getFrontmatter(id: SlashCommandId): string;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=amazon-q.d.ts.map
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { SlashCommandConfigurator } from './base.js';
|
|
2
|
+
const FILE_PATHS = {
|
|
3
|
+
proposal: '.amazonq/prompts/openspec-proposal.md',
|
|
4
|
+
apply: '.amazonq/prompts/openspec-apply.md',
|
|
5
|
+
archive: '.amazonq/prompts/openspec-archive.md'
|
|
6
|
+
};
|
|
7
|
+
const FRONTMATTER = {
|
|
8
|
+
proposal: `---
|
|
9
|
+
description: Scaffold a new OpenSpec change and validate strictly.
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
The user has requested the following change proposal. Use the openspec instructions to create their change proposal.
|
|
13
|
+
|
|
14
|
+
<UserRequest>
|
|
15
|
+
$ARGUMENTS
|
|
16
|
+
</UserRequest>`,
|
|
17
|
+
apply: `---
|
|
18
|
+
description: Implement an approved OpenSpec change and keep tasks in sync.
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
The user wants to apply the following change. Use the openspec instructions to implement the approved change.
|
|
22
|
+
|
|
23
|
+
<ChangeId>
|
|
24
|
+
$ARGUMENTS
|
|
25
|
+
</ChangeId>`,
|
|
26
|
+
archive: `---
|
|
27
|
+
description: Archive a deployed OpenSpec change and update specs.
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
The user wants to archive the following deployed change. Use the openspec instructions to archive the change and update specs.
|
|
31
|
+
|
|
32
|
+
<ChangeId>
|
|
33
|
+
$ARGUMENTS
|
|
34
|
+
</ChangeId>`
|
|
35
|
+
};
|
|
36
|
+
export class AmazonQSlashCommandConfigurator extends SlashCommandConfigurator {
|
|
37
|
+
toolId = 'amazon-q';
|
|
38
|
+
isAvailable = true;
|
|
39
|
+
getRelativePath(id) {
|
|
40
|
+
return FILE_PATHS[id];
|
|
41
|
+
}
|
|
42
|
+
getFrontmatter(id) {
|
|
43
|
+
return FRONTMATTER[id];
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=amazon-q.js.map
|
|
@@ -5,6 +5,7 @@ import { KiloCodeSlashCommandConfigurator } from './kilocode.js';
|
|
|
5
5
|
import { OpenCodeSlashCommandConfigurator } from './opencode.js';
|
|
6
6
|
import { CodexSlashCommandConfigurator } from './codex.js';
|
|
7
7
|
import { GitHubCopilotSlashCommandConfigurator } from './github-copilot.js';
|
|
8
|
+
import { AmazonQSlashCommandConfigurator } from './amazon-q.js';
|
|
8
9
|
export class SlashCommandRegistry {
|
|
9
10
|
static configurators = new Map();
|
|
10
11
|
static {
|
|
@@ -15,6 +16,7 @@ export class SlashCommandRegistry {
|
|
|
15
16
|
const opencode = new OpenCodeSlashCommandConfigurator();
|
|
16
17
|
const codex = new CodexSlashCommandConfigurator();
|
|
17
18
|
const githubCopilot = new GitHubCopilotSlashCommandConfigurator();
|
|
19
|
+
const amazonQ = new AmazonQSlashCommandConfigurator();
|
|
18
20
|
this.configurators.set(claude.toolId, claude);
|
|
19
21
|
this.configurators.set(cursor.toolId, cursor);
|
|
20
22
|
this.configurators.set(windsurf.toolId, windsurf);
|
|
@@ -22,6 +24,7 @@ export class SlashCommandRegistry {
|
|
|
22
24
|
this.configurators.set(opencode.toolId, opencode);
|
|
23
25
|
this.configurators.set(codex.toolId, codex);
|
|
24
26
|
this.configurators.set(githubCopilot.toolId, githubCopilot);
|
|
27
|
+
this.configurators.set(amazonQ.toolId, amazonQ);
|
|
25
28
|
}
|
|
26
29
|
static register(configurator) {
|
|
27
30
|
this.configurators.set(configurator.toolId, configurator);
|
package/dist/core/init.js
CHANGED
|
@@ -137,6 +137,14 @@ const toolSelectionWizard = createPrompt((config, done) => {
|
|
|
137
137
|
return;
|
|
138
138
|
}
|
|
139
139
|
if (isEnterKey(key)) {
|
|
140
|
+
const current = config.choices[cursor];
|
|
141
|
+
if (current &&
|
|
142
|
+
current.selectable &&
|
|
143
|
+
!selectedSet.has(current.value)) {
|
|
144
|
+
const next = new Set(selected);
|
|
145
|
+
next.add(current.value);
|
|
146
|
+
updateSelected(next);
|
|
147
|
+
}
|
|
140
148
|
setStep('review');
|
|
141
149
|
setError(null);
|
|
142
150
|
return;
|
|
@@ -195,7 +203,7 @@ const toolSelectionWizard = createPrompt((config, done) => {
|
|
|
195
203
|
}
|
|
196
204
|
else if (step === 'select') {
|
|
197
205
|
lines.push(PALETTE.white(config.baseMessage));
|
|
198
|
-
lines.push(PALETTE.midGray('Use ↑/↓ to move · Space to toggle · Enter
|
|
206
|
+
lines.push(PALETTE.midGray('Use ↑/↓ to move · Space to toggle · Enter selects highlighted tool and reviews.'));
|
|
199
207
|
lines.push('');
|
|
200
208
|
lines.push(page);
|
|
201
209
|
lines.push('');
|