Repository navigation
Open
Labels
Description
⚠️ OpenSpec-managed issue — this content is automatically synced
from theopenspec/directory. Manual edits will be overwritten on next sync.
Artifacts
Specs
Tasks
- T01: Move
resolveTaskProcessingManager()andrunTextToTextTask()fromlib/Service/CopilotService.phpintolib/Service/Copilot/CopilotTextTask.phpand call it fromCopilotService, with no change in behaviour (REQ-BQCH-002). Verify: the existingtests/Unit/Service/CopilotServiceTest.phpstays green, plus a newtests/Unit/Service/Copilot/CopilotTextTaskTest.phpfor the timeout and failure envelopes. - T02: Add
lib/Service/Copilot/CopilotAssistService.phpwith the four targets, the write and explain modes, one repair round-trip and the checks of D2, including a PHP mirror ofisCellConditionValid()driven by a shared fixture file (REQ-BQCH-002, REQ-BQCH-003). Verify: PHPUnittests/Unit/Service/Copilot/CopilotAssistServiceTest.phpfor each target, the repair round-trip and the 422;tests/utils/feelCell.spec.jsreads the same fixture file. - T03: Add
CopilotController::assist()and the routePOST /api/copilot/assistinappinfo/routes.phpbeside the other copilot routes,#[NoAdminRequired]and#[UserRateLimit(limit: 60, period: 3600)], requiringappSlugand runningassertWriteRoleOnApp(); resolve the target schema only among the app's schemas (REQ-BQCH-004). Verify: PHPUnittests/Unit/Controller/CopilotControllerTest.phpcases for 403 viewer, a foreign schema slug and zero writes. - T04: Add
src/components/copilot/CopilotAssistButton.vueandsrc/dialogs/CopilotAssistDialog.vue, with anassist()call insrc/services/copilot.js; the button renders nothing when the health probe says unavailable (REQ-BQCH-001, REQ-BQCH-003). Verify: vitesttests/components/CopilotAssistButton.spec.jsandtests/dialogs/CopilotAssistDialog.spec.jsfor hidden when unavailable, Accept writes the staged value, Reject writes nothing. - T05: Mount the button in
ConditionActionRuleEditor.vue(condition),DecisionTableEditor.vue(propose a row), andAutomationEditDialog.vue(field mapping and payload template), passing names only as context (REQ-BQCH-001, REQ-BQCH-004). Verify: extendtests/dialogs/AutomationEditDialog.spec.js, and a Playwright spectests/e2e/copilot-assist.spec.tsthat asks for a rule condition, accepts it, and saves the rule. - T06: Add "Add a document" to
src/dialogs/CopilotGenerateDialog.vuewith the Nextcloud file picker, senddocumentFileIdthroughrequestPlan(), and read the file as the user inCopilotService::plan()with the type list and the 60,000 character cap of D6 (REQ-BQCH-005). Verify: PHPUnit cases intests/Unit/Service/CopilotServiceTest.phpfor an unreadable file id (404), an unsupported type and an oversized document; extendtests/dialogs/CopilotGenerateDialog.spec.js. - T07: Add
stories[]to the plan prompt inCopilotPromptBuilder, toCopilotPlanValidator(role, goal andservedBychecks) and to the review inCopilotGenerateDialog.vue(REQ-BQCH-006). Verify:tests/Unit/Service/CopilotPlanValidatorTest.phpcases for a story without a goal and aservedBypointing at a menu step; extendtests/e2e/copilot-wizard-generate.spec.tsto assert the "User stories" group. - T08: Declare
storiesonApplicationin a new fragmentlib/Settings/register.d/81-application-stories.json, letbuildiq.createAppaccept it, and addsrc/components/applicationDetail/widgets/StoriesWidget.vueto the app detail dashboard (REQ-BQCH-007). Verify: PHPUnit on the register import accepting the property and onCreateAppHandlersaving it; vitesttests/components/applicationDetail/StoriesWidget.spec.js. - T09: When OpenRegister publishes a text read for a file, accept PDF, Word and OpenDocument in D6 and extend the T06 tests (REQ-BQCH-005). Verify: PHPUnit case reading a
.docxthrough the published read. - T10: Strings and docs: English and Dutch for "Ask AI", the dialog, "Add a document", the type and size messages and "User stories" (
l10n/en.json,l10n/nl.json), and a page indocs/on getting AI help in the rule and automation editors and on generating an app from a document. - T11: Run
openspec validate ai-copilot-documents-and-code-help --strict.
Design
See design.md for technical design details.
Synced from openspec/changes/ai-copilot-documents-and-code-help by OpenSpec workflow
App: buildiq
Activity