mirror of
https://github.com/Fission-AI/OpenSpec.git
synced 2026-10-17 05:49:35 +08:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f1cb544016 |
@@ -11,7 +11,6 @@ const FILE_PATHS: Record<SlashCommandId, string> = {
|
|||||||
|
|
||||||
const FRONTMATTER: Record<SlashCommandId, string> = {
|
const FRONTMATTER: Record<SlashCommandId, string> = {
|
||||||
proposal: `---
|
proposal: `---
|
||||||
agent: build
|
|
||||||
description: Scaffold a new OpenSpec change and validate strictly.
|
description: Scaffold a new OpenSpec change and validate strictly.
|
||||||
---
|
---
|
||||||
The user has requested the following change proposal. Use the openspec instructions to create their change proposal.
|
The user has requested the following change proposal. Use the openspec instructions to create their change proposal.
|
||||||
@@ -20,7 +19,6 @@ The user has requested the following change proposal. Use the openspec instructi
|
|||||||
</UserRequest>
|
</UserRequest>
|
||||||
`,
|
`,
|
||||||
apply: `---
|
apply: `---
|
||||||
agent: build
|
|
||||||
description: Implement an approved OpenSpec change and keep tasks in sync.
|
description: Implement an approved OpenSpec change and keep tasks in sync.
|
||||||
---
|
---
|
||||||
The user has requested to implement the following change proposal. Find the change proposal and follow the instructions below. If you're not sure or if ambiguous, ask for clarification from the user.
|
The user has requested to implement the following change proposal. Find the change proposal and follow the instructions below. If you're not sure or if ambiguous, ask for clarification from the user.
|
||||||
@@ -29,7 +27,6 @@ The user has requested to implement the following change proposal. Find the chan
|
|||||||
</UserRequest>
|
</UserRequest>
|
||||||
`,
|
`,
|
||||||
archive: `---
|
archive: `---
|
||||||
agent: build
|
|
||||||
description: Archive a deployed OpenSpec change and update specs.
|
description: Archive a deployed OpenSpec change and update specs.
|
||||||
---
|
---
|
||||||
<ChangeId>
|
<ChangeId>
|
||||||
|
|||||||
@@ -492,21 +492,21 @@ describe('InitCommand', () => {
|
|||||||
expect(await fileExists(openCodeArchive)).toBe(true);
|
expect(await fileExists(openCodeArchive)).toBe(true);
|
||||||
|
|
||||||
const proposalContent = await fs.readFile(openCodeProposal, 'utf-8');
|
const proposalContent = await fs.readFile(openCodeProposal, 'utf-8');
|
||||||
expect(proposalContent).toContain('agent: build');
|
expect(proposalContent).not.toContain('agent:');
|
||||||
expect(proposalContent).toContain(
|
expect(proposalContent).toContain(
|
||||||
'description: Scaffold a new OpenSpec change and validate strictly.'
|
'description: Scaffold a new OpenSpec change and validate strictly.'
|
||||||
);
|
);
|
||||||
expect(proposalContent).toContain('<!-- OPENSPEC:START -->');
|
expect(proposalContent).toContain('<!-- OPENSPEC:START -->');
|
||||||
|
|
||||||
const applyContent = await fs.readFile(openCodeApply, 'utf-8');
|
const applyContent = await fs.readFile(openCodeApply, 'utf-8');
|
||||||
expect(applyContent).toContain('agent: build');
|
expect(applyContent).not.toContain('agent:');
|
||||||
expect(applyContent).toContain(
|
expect(applyContent).toContain(
|
||||||
'description: Implement an approved OpenSpec change and keep tasks in sync.'
|
'description: Implement an approved OpenSpec change and keep tasks in sync.'
|
||||||
);
|
);
|
||||||
expect(applyContent).toContain('Work through tasks sequentially');
|
expect(applyContent).toContain('Work through tasks sequentially');
|
||||||
|
|
||||||
const archiveContent = await fs.readFile(openCodeArchive, 'utf-8');
|
const archiveContent = await fs.readFile(openCodeArchive, 'utf-8');
|
||||||
expect(archiveContent).toContain('agent: build');
|
expect(archiveContent).not.toContain('agent:');
|
||||||
expect(archiveContent).toContain(
|
expect(archiveContent).toContain(
|
||||||
'description: Archive a deployed OpenSpec change and update specs.'
|
'description: Archive a deployed OpenSpec change and update specs.'
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user