sofia-cli 0.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.
- package/.github/agents/copilot-instructions.md +39 -0
- package/.github/agents/speckit.analyze.agent.md +184 -0
- package/.github/agents/speckit.checklist.agent.md +294 -0
- package/.github/agents/speckit.clarify.agent.md +181 -0
- package/.github/agents/speckit.constitution.agent.md +84 -0
- package/.github/agents/speckit.implement.agent.md +135 -0
- package/.github/agents/speckit.plan.agent.md +90 -0
- package/.github/agents/speckit.specify.agent.md +258 -0
- package/.github/agents/speckit.tasks.agent.md +137 -0
- package/.github/agents/speckit.taskstoissues.agent.md +30 -0
- package/.github/copilot-instructions.md +257 -0
- package/.github/prompts/speckit.analyze.prompt.md +3 -0
- package/.github/prompts/speckit.checklist.prompt.md +3 -0
- package/.github/prompts/speckit.clarify.prompt.md +3 -0
- package/.github/prompts/speckit.constitution.prompt.md +3 -0
- package/.github/prompts/speckit.implement.prompt.md +3 -0
- package/.github/prompts/speckit.plan.prompt.md +3 -0
- package/.github/prompts/speckit.specify.prompt.md +3 -0
- package/.github/prompts/speckit.tasks.prompt.md +3 -0
- package/.github/prompts/speckit.taskstoissues.prompt.md +3 -0
- package/.github/workflows/ci.yml +38 -0
- package/.prettierrc +6 -0
- package/.specify/memory/constitution.md +181 -0
- package/.specify/scripts/bash/check-prerequisites.sh +166 -0
- package/.specify/scripts/bash/common.sh +156 -0
- package/.specify/scripts/bash/create-new-feature.sh +297 -0
- package/.specify/scripts/bash/setup-plan.sh +61 -0
- package/.specify/scripts/bash/update-agent-context.sh +810 -0
- package/.specify/templates/agent-file-template.md +28 -0
- package/.specify/templates/checklist-template.md +40 -0
- package/.specify/templates/constitution-template.md +50 -0
- package/.specify/templates/plan-template.md +113 -0
- package/.specify/templates/spec-template.md +115 -0
- package/.specify/templates/tasks-template.md +251 -0
- package/.vscode/mcp.json +42 -0
- package/.vscode/settings.json +19 -0
- package/CODE_OF_CONDUCT.md +128 -0
- package/LICENSE +21 -0
- package/README.md +213 -0
- package/dist/src/cli/developCommand.js +240 -0
- package/dist/src/cli/directCommands.js +143 -0
- package/dist/src/cli/envLoader.js +16 -0
- package/dist/src/cli/exportCommand.js +53 -0
- package/dist/src/cli/index.js +203 -0
- package/dist/src/cli/ioContext.js +109 -0
- package/dist/src/cli/preflight.js +57 -0
- package/dist/src/cli/statusCommand.js +110 -0
- package/dist/src/cli/workshopCommand.js +400 -0
- package/dist/src/develop/checkpointState.js +86 -0
- package/dist/src/develop/codeGenerator.js +319 -0
- package/dist/src/develop/dynamicScaffolder.js +226 -0
- package/dist/src/develop/githubMcpAdapter.js +122 -0
- package/dist/src/develop/index.js +15 -0
- package/dist/src/develop/mcpContextEnricher.js +195 -0
- package/dist/src/develop/pocScaffolder.js +542 -0
- package/dist/src/develop/ralphLoop.js +659 -0
- package/dist/src/develop/templateRegistry.js +364 -0
- package/dist/src/develop/testRunner.js +202 -0
- package/dist/src/logging/logger.js +58 -0
- package/dist/src/loop/conversationLoop.js +227 -0
- package/dist/src/loop/phaseSummarizer.js +87 -0
- package/dist/src/mcp/mcpManager.js +267 -0
- package/dist/src/mcp/mcpTransport.js +391 -0
- package/dist/src/mcp/retryPolicy.js +47 -0
- package/dist/src/mcp/webSearch.js +254 -0
- package/dist/src/phases/contextSummarizer.js +101 -0
- package/dist/src/phases/discoveryEnricher.js +156 -0
- package/dist/src/phases/phaseExtractors.js +222 -0
- package/dist/src/phases/phaseHandlers.js +328 -0
- package/dist/src/prompts/design.md +51 -0
- package/dist/src/prompts/develop-boundary.md +51 -0
- package/dist/src/prompts/develop.md +111 -0
- package/dist/src/prompts/discover.md +58 -0
- package/dist/src/prompts/ideate.md +56 -0
- package/dist/src/prompts/plan.md +51 -0
- package/dist/src/prompts/promptLoader.js +167 -0
- package/dist/src/prompts/promptLoader.ts +198 -0
- package/dist/src/prompts/select.md +47 -0
- package/dist/src/prompts/summarize/README.md +8 -0
- package/dist/src/prompts/summarize/design-summary.md +37 -0
- package/dist/src/prompts/summarize/develop-summary.md +25 -0
- package/dist/src/prompts/summarize/ideate-summary.md +27 -0
- package/dist/src/prompts/summarize/plan-summary.md +27 -0
- package/dist/src/prompts/summarize/select-summary.md +21 -0
- package/dist/src/prompts/system.md +28 -0
- package/dist/src/sessions/exportPaths.js +22 -0
- package/dist/src/sessions/exportWriter.js +406 -0
- package/dist/src/sessions/sessionManager.js +81 -0
- package/dist/src/sessions/sessionStore.js +65 -0
- package/dist/src/shared/activitySpinner.js +91 -0
- package/dist/src/shared/copilotClient.js +129 -0
- package/dist/src/shared/data/cards.json +1249 -0
- package/dist/src/shared/data/cardsLoader.js +51 -0
- package/dist/src/shared/errorClassifier.js +120 -0
- package/dist/src/shared/events.js +28 -0
- package/dist/src/shared/markdownRenderer.js +34 -0
- package/dist/src/shared/schemas/session.js +265 -0
- package/dist/src/shared/tableRenderer.js +20 -0
- package/dist/src/vendor/chalk.js +2 -0
- package/dist/src/vendor/cli-table3.js +3 -0
- package/dist/src/vendor/commander.js +2 -0
- package/dist/src/vendor/marked-terminal.js +3 -0
- package/dist/src/vendor/marked.js +2 -0
- package/dist/src/vendor/ora.js +2 -0
- package/dist/src/vendor/pino.js +2 -0
- package/dist/src/vendor/zod.js +2 -0
- package/dist/tests/e2e/developE2e.spec.js +126 -0
- package/dist/tests/e2e/developFailureE2e.spec.js +247 -0
- package/dist/tests/e2e/developPty.spec.js +75 -0
- package/dist/tests/e2e/discoveryWebSearchRelevance.spec.js +84 -0
- package/dist/tests/e2e/harness.spec.js +83 -0
- package/dist/tests/e2e/mcpLive.spec.js +120 -0
- package/dist/tests/e2e/newSession.e2e.spec.js +177 -0
- package/dist/tests/e2e/ralphLoopEnrichmentComparison.spec.js +62 -0
- package/dist/tests/e2e/workiqEnrichment.spec.js +56 -0
- package/dist/tests/e2e/zavaSimulation.spec.js +452 -0
- package/dist/tests/fixtures/test-fixture-project/src/add.js +3 -0
- package/dist/tests/fixtures/test-fixture-project/tests/failing.test.js +6 -0
- package/dist/tests/fixtures/test-fixture-project/tests/hanging.test.js +8 -0
- package/dist/tests/fixtures/test-fixture-project/tests/passing.test.js +10 -0
- package/dist/tests/fixtures/test-fixture-project/vitest.config.js +6 -0
- package/dist/tests/integration/autoStartConversation.spec.js +138 -0
- package/dist/tests/integration/defaultCommand.spec.js +147 -0
- package/dist/tests/integration/directCommandNonTty.spec.js +224 -0
- package/dist/tests/integration/directCommandTty.spec.js +151 -0
- package/dist/tests/integration/discoveryEnrichmentFlow.spec.js +175 -0
- package/dist/tests/integration/exportArtifacts.spec.js +202 -0
- package/dist/tests/integration/exportFallbackFlow.spec.js +99 -0
- package/dist/tests/integration/mcpDegradationFlow.spec.js +190 -0
- package/dist/tests/integration/mcpTransportFlow.spec.js +139 -0
- package/dist/tests/integration/newSessionFlow.spec.js +343 -0
- package/dist/tests/integration/pocGithubMcp.spec.js +186 -0
- package/dist/tests/integration/pocLocalFallback.spec.js +171 -0
- package/dist/tests/integration/pocScaffold.spec.js +163 -0
- package/dist/tests/integration/ralphLoopFlow.spec.js +359 -0
- package/dist/tests/integration/ralphLoopPartial.spec.js +368 -0
- package/dist/tests/integration/resumeAndBacktrack.spec.js +247 -0
- package/dist/tests/integration/spinnerLifecycle.spec.js +220 -0
- package/dist/tests/integration/summarizationFlow.spec.js +115 -0
- package/dist/tests/integration/testRunnerReal.spec.js +52 -0
- package/dist/tests/integration/webSearchAgent.spec.js +128 -0
- package/dist/tests/live/copilotSdkLive.spec.js +107 -0
- package/dist/tests/live/zavaFullWorkshop.spec.js +392 -0
- package/dist/tests/setup/loadEnv.js +3 -0
- package/dist/tests/unit/cli/developCommand.spec.js +567 -0
- package/dist/tests/unit/cli/directCommands.spec.js +279 -0
- package/dist/tests/unit/cli/envLoader.spec.js +58 -0
- package/dist/tests/unit/cli/ioContext.spec.js +119 -0
- package/dist/tests/unit/cli/preflight.spec.js +108 -0
- package/dist/tests/unit/cli/statusCommand.spec.js +111 -0
- package/dist/tests/unit/cli/workshopClientFallback.spec.js +80 -0
- package/dist/tests/unit/cli/workshopCommand.spec.js +329 -0
- package/dist/tests/unit/config/vitestEnvSetup.spec.js +13 -0
- package/dist/tests/unit/develop/checkpointState.spec.js +315 -0
- package/dist/tests/unit/develop/codeGenerator.spec.js +355 -0
- package/dist/tests/unit/develop/githubMcpAdapter.spec.js +231 -0
- package/dist/tests/unit/develop/mcpContextEnricher.spec.js +433 -0
- package/dist/tests/unit/develop/outputValidator.spec.js +119 -0
- package/dist/tests/unit/develop/pocScaffolder.spec.js +353 -0
- package/dist/tests/unit/develop/ralphLoop.spec.js +1248 -0
- package/dist/tests/unit/develop/templateRegistry.spec.js +85 -0
- package/dist/tests/unit/develop/testRunner.spec.js +249 -0
- package/dist/tests/unit/infraBicep.spec.js +92 -0
- package/dist/tests/unit/infraDeploy.spec.js +82 -0
- package/dist/tests/unit/infraTeardown.spec.js +63 -0
- package/dist/tests/unit/logging/logger.spec.js +43 -0
- package/dist/tests/unit/loop/conversationLoop.spec.js +592 -0
- package/dist/tests/unit/loop/phaseSummarizer.spec.js +141 -0
- package/dist/tests/unit/loop/streamingMarkdown.spec.js +147 -0
- package/dist/tests/unit/mcp/mcpManager.spec.js +279 -0
- package/dist/tests/unit/mcp/mcpTransport.spec.js +529 -0
- package/dist/tests/unit/mcp/retryPolicy.spec.js +218 -0
- package/dist/tests/unit/mcp/timeoutValidation.spec.js +46 -0
- package/dist/tests/unit/mcp/webSearch.spec.js +567 -0
- package/dist/tests/unit/phases/contextSummarizer.spec.js +140 -0
- package/dist/tests/unit/phases/discoveryEnricher.repeatCalls.spec.js +93 -0
- package/dist/tests/unit/phases/discoveryEnricher.spec.js +411 -0
- package/dist/tests/unit/phases/phaseExtractors.spec.js +352 -0
- package/dist/tests/unit/phases/phaseHandlers.spec.js +425 -0
- package/dist/tests/unit/prompts/promptLoader.spec.js +118 -0
- package/dist/tests/unit/schemas/pocSchemas.spec.js +412 -0
- package/dist/tests/unit/schemas/session.spec.js +257 -0
- package/dist/tests/unit/sessions/exportPaths.spec.js +31 -0
- package/dist/tests/unit/sessions/exportWriter.spec.js +655 -0
- package/dist/tests/unit/sessions/sessionManager.spec.js +151 -0
- package/dist/tests/unit/sessions/sessionStore.spec.js +116 -0
- package/dist/tests/unit/shared/activitySpinner.spec.js +175 -0
- package/dist/tests/unit/shared/cardsLoader.spec.js +76 -0
- package/dist/tests/unit/shared/copilotClient.spec.js +155 -0
- package/dist/tests/unit/shared/errorClassifier.spec.js +131 -0
- package/dist/tests/unit/shared/events.spec.js +55 -0
- package/dist/tests/unit/shared/markdownRenderer.spec.js +35 -0
- package/dist/tests/unit/shared/markdownRendererChunks.spec.js +70 -0
- package/dist/tests/unit/shared/tableRenderer.spec.js +34 -0
- package/dist/vitest.config.js +14 -0
- package/dist/vitest.live.config.js +18 -0
- package/docs/README.md +35 -0
- package/docs/architecture.md +169 -0
- package/docs/cli-usage.md +207 -0
- package/docs/environment.md +66 -0
- package/docs/export-format.md +146 -0
- package/docs/session-model.md +113 -0
- package/eslint.config.js +35 -0
- package/infra/deploy.sh +193 -0
- package/infra/gather-env.sh +211 -0
- package/infra/main.bicep +90 -0
- package/infra/main.bicepparam +18 -0
- package/infra/resources.bicep +134 -0
- package/infra/teardown.sh +114 -0
- package/package.json +63 -0
- package/specs/001-cli-workshop-rebuild/checklists/requirements.md +35 -0
- package/specs/001-cli-workshop-rebuild/contracts/cli.md +59 -0
- package/specs/001-cli-workshop-rebuild/contracts/export-summary-json.md +23 -0
- package/specs/001-cli-workshop-rebuild/contracts/session-json.md +30 -0
- package/specs/001-cli-workshop-rebuild/data-model.md +210 -0
- package/specs/001-cli-workshop-rebuild/plan.md +361 -0
- package/specs/001-cli-workshop-rebuild/quickstart.md +83 -0
- package/specs/001-cli-workshop-rebuild/research.md +116 -0
- package/specs/001-cli-workshop-rebuild/spec.md +240 -0
- package/specs/001-cli-workshop-rebuild/tasks.md +476 -0
- package/specs/002-poc-generation/contracts/poc-output.md +172 -0
- package/specs/002-poc-generation/contracts/ralph-loop.md +113 -0
- package/specs/002-poc-generation/data-model.md +172 -0
- package/specs/002-poc-generation/plan.md +109 -0
- package/specs/002-poc-generation/quickstart.md +97 -0
- package/specs/002-poc-generation/research.md +786 -0
- package/specs/002-poc-generation/spec.md +81 -0
- package/specs/002-poc-generation/tasks-fix.md +198 -0
- package/specs/002-poc-generation/tasks.md +252 -0
- package/specs/003-mcp-transport-integration/checklists/requirements.md +37 -0
- package/specs/003-mcp-transport-integration/contracts/context-enricher.md +220 -0
- package/specs/003-mcp-transport-integration/contracts/discovery-enricher.md +267 -0
- package/specs/003-mcp-transport-integration/contracts/github-adapter.md +149 -0
- package/specs/003-mcp-transport-integration/contracts/mcp-transport.md +288 -0
- package/specs/003-mcp-transport-integration/data-model.md +326 -0
- package/specs/003-mcp-transport-integration/plan.md +114 -0
- package/specs/003-mcp-transport-integration/quickstart.md +311 -0
- package/specs/003-mcp-transport-integration/research.md +395 -0
- package/specs/003-mcp-transport-integration/spec.md +234 -0
- package/specs/003-mcp-transport-integration/tasks.md +324 -0
- package/specs/003-next-spec-gaps.md +150 -0
- package/specs/004-dev-resume-hardening/checklists/requirements.md +37 -0
- package/specs/004-dev-resume-hardening/contracts/cli.md +160 -0
- package/specs/004-dev-resume-hardening/data-model.md +321 -0
- package/specs/004-dev-resume-hardening/plan.md +107 -0
- package/specs/004-dev-resume-hardening/quickstart.md +115 -0
- package/specs/004-dev-resume-hardening/research.md +142 -0
- package/specs/004-dev-resume-hardening/spec.md +221 -0
- package/specs/004-dev-resume-hardening/tasks.md +333 -0
- package/specs/005-ai-search-deploy/checklists/requirements.md +39 -0
- package/specs/005-ai-search-deploy/contracts/web-search-tool.md +241 -0
- package/specs/005-ai-search-deploy/data-model.md +130 -0
- package/specs/005-ai-search-deploy/plan.md +93 -0
- package/specs/005-ai-search-deploy/quickstart.md +96 -0
- package/specs/005-ai-search-deploy/research.md +187 -0
- package/specs/005-ai-search-deploy/spec.md +143 -0
- package/specs/005-ai-search-deploy/tasks.md +284 -0
- package/specs/006-workshop-extraction-fixes/checklists/requirements.md +61 -0
- package/specs/006-workshop-extraction-fixes/contracts/summarization-and-export.md +131 -0
- package/specs/006-workshop-extraction-fixes/data-model.md +149 -0
- package/specs/006-workshop-extraction-fixes/plan.md +123 -0
- package/specs/006-workshop-extraction-fixes/quickstart.md +101 -0
- package/specs/006-workshop-extraction-fixes/research.md +143 -0
- package/specs/006-workshop-extraction-fixes/spec.md +210 -0
- package/specs/006-workshop-extraction-fixes/tasks.md +316 -0
- package/src/cli/developCommand.ts +308 -0
- package/src/cli/directCommands.ts +195 -0
- package/src/cli/envLoader.ts +17 -0
- package/src/cli/exportCommand.ts +65 -0
- package/src/cli/index.ts +249 -0
- package/src/cli/ioContext.ts +139 -0
- package/src/cli/preflight.ts +86 -0
- package/src/cli/statusCommand.ts +118 -0
- package/src/cli/workshopCommand.ts +496 -0
- package/src/develop/checkpointState.ts +121 -0
- package/src/develop/codeGenerator.ts +402 -0
- package/src/develop/dynamicScaffolder.ts +284 -0
- package/src/develop/githubMcpAdapter.ts +199 -0
- package/src/develop/index.ts +34 -0
- package/src/develop/mcpContextEnricher.ts +279 -0
- package/src/develop/pocScaffolder.ts +646 -0
- package/src/develop/ralphLoop.ts +1044 -0
- package/src/develop/templateRegistry.ts +427 -0
- package/src/develop/testRunner.ts +276 -0
- package/src/logging/logger.ts +73 -0
- package/src/loop/conversationLoop.ts +355 -0
- package/src/loop/phaseSummarizer.ts +114 -0
- package/src/mcp/mcpManager.ts +365 -0
- package/src/mcp/mcpTransport.ts +562 -0
- package/src/mcp/retryPolicy.ts +87 -0
- package/src/mcp/webSearch.ts +388 -0
- package/src/originalPrompts/design_thinking.md +178 -0
- package/src/originalPrompts/design_thinking_persona.md +76 -0
- package/src/originalPrompts/document_generator_example.md +77 -0
- package/src/originalPrompts/document_generator_persona.md +47 -0
- package/src/originalPrompts/facilitator_persona.md +125 -0
- package/src/originalPrompts/guardrails.md +47 -0
- package/src/phases/contextSummarizer.ts +154 -0
- package/src/phases/discoveryEnricher.ts +223 -0
- package/src/phases/phaseExtractors.ts +247 -0
- package/src/phases/phaseHandlers.ts +450 -0
- package/src/prompts/design.md +51 -0
- package/src/prompts/develop-boundary.md +51 -0
- package/src/prompts/develop.md +111 -0
- package/src/prompts/discover.md +58 -0
- package/src/prompts/ideate.md +56 -0
- package/src/prompts/plan.md +51 -0
- package/src/prompts/promptLoader.ts +198 -0
- package/src/prompts/select.md +47 -0
- package/src/prompts/summarize/README.md +8 -0
- package/src/prompts/summarize/design-summary.md +37 -0
- package/src/prompts/summarize/develop-summary.md +25 -0
- package/src/prompts/summarize/ideate-summary.md +27 -0
- package/src/prompts/summarize/plan-summary.md +27 -0
- package/src/prompts/summarize/select-summary.md +21 -0
- package/src/prompts/system.md +28 -0
- package/src/sessions/exportPaths.ts +28 -0
- package/src/sessions/exportWriter.ts +490 -0
- package/src/sessions/sessionManager.ts +119 -0
- package/src/sessions/sessionStore.ts +69 -0
- package/src/shared/activitySpinner.ts +108 -0
- package/src/shared/copilotClient.ts +291 -0
- package/src/shared/data/cards.json +1249 -0
- package/src/shared/data/cardsLoader.ts +70 -0
- package/src/shared/errorClassifier.ts +160 -0
- package/src/shared/events.ts +103 -0
- package/src/shared/markdownRenderer.ts +44 -0
- package/src/shared/schemas/session.ts +346 -0
- package/src/shared/tableRenderer.ts +28 -0
- package/src/types/marked-terminal.d.ts +5 -0
- package/src/vendor/chalk.ts +2 -0
- package/src/vendor/cli-table3.ts +3 -0
- package/src/vendor/commander.ts +2 -0
- package/src/vendor/marked-terminal.ts +3 -0
- package/src/vendor/marked.ts +2 -0
- package/src/vendor/ora.ts +2 -0
- package/src/vendor/pino.ts +3 -0
- package/src/vendor/zod.ts +3 -0
- package/tests/e2e/developE2e.spec.ts +152 -0
- package/tests/e2e/developFailureE2e.spec.ts +289 -0
- package/tests/e2e/developPty.spec.ts +86 -0
- package/tests/e2e/discoveryWebSearchRelevance.spec.ts +103 -0
- package/tests/e2e/harness.spec.ts +104 -0
- package/tests/e2e/mcpLive.spec.ts +149 -0
- package/tests/e2e/newSession.e2e.spec.ts +245 -0
- package/tests/e2e/ralphLoopEnrichmentComparison.spec.ts +70 -0
- package/tests/e2e/workiqEnrichment.spec.ts +72 -0
- package/tests/e2e/zava-assessment/agent-interaction-script.md +258 -0
- package/tests/e2e/zava-assessment/company-profile.md +98 -0
- package/tests/e2e/zava-assessment/expected-results-checklist.md +454 -0
- package/tests/e2e/zavaSimulation.spec.ts +511 -0
- package/tests/fixtures/completedSession.json +141 -0
- package/tests/fixtures/test-fixture-project/package-lock.json +1585 -0
- package/tests/fixtures/test-fixture-project/package.json +12 -0
- package/tests/fixtures/test-fixture-project/src/add.ts +3 -0
- package/tests/fixtures/test-fixture-project/tests/failing.test.ts +7 -0
- package/tests/fixtures/test-fixture-project/tests/hanging.test.ts +9 -0
- package/tests/fixtures/test-fixture-project/tests/passing.test.ts +13 -0
- package/tests/fixtures/test-fixture-project/vitest.config.ts +7 -0
- package/tests/integration/autoStartConversation.spec.ts +168 -0
- package/tests/integration/defaultCommand.spec.ts +179 -0
- package/tests/integration/directCommandNonTty.spec.ts +260 -0
- package/tests/integration/directCommandTty.spec.ts +185 -0
- package/tests/integration/discoveryEnrichmentFlow.spec.ts +209 -0
- package/tests/integration/exportArtifacts.spec.ts +232 -0
- package/tests/integration/exportFallbackFlow.spec.ts +115 -0
- package/tests/integration/mcpDegradationFlow.spec.ts +231 -0
- package/tests/integration/mcpTransportFlow.spec.ts +178 -0
- package/tests/integration/newSessionFlow.spec.ts +406 -0
- package/tests/integration/pocGithubMcp.spec.ts +224 -0
- package/tests/integration/pocLocalFallback.spec.ts +205 -0
- package/tests/integration/pocScaffold.spec.ts +220 -0
- package/tests/integration/ralphLoopFlow.spec.ts +430 -0
- package/tests/integration/ralphLoopPartial.spec.ts +416 -0
- package/tests/integration/resumeAndBacktrack.spec.ts +278 -0
- package/tests/integration/spinnerLifecycle.spec.ts +270 -0
- package/tests/integration/summarizationFlow.spec.ts +135 -0
- package/tests/integration/testRunnerReal.spec.ts +63 -0
- package/tests/integration/webSearchAgent.spec.ts +155 -0
- package/tests/live/copilotSdkLive.spec.ts +149 -0
- package/tests/live/zavaFullWorkshop.spec.ts +515 -0
- package/tests/setup/loadEnv.ts +5 -0
- package/tests/unit/cli/developCommand.spec.ts +679 -0
- package/tests/unit/cli/directCommands.spec.ts +325 -0
- package/tests/unit/cli/envLoader.spec.ts +73 -0
- package/tests/unit/cli/ioContext.spec.ts +148 -0
- package/tests/unit/cli/preflight.spec.ts +125 -0
- package/tests/unit/cli/statusCommand.spec.ts +134 -0
- package/tests/unit/cli/workshopClientFallback.spec.ts +100 -0
- package/tests/unit/cli/workshopCommand.spec.ts +378 -0
- package/tests/unit/config/vitestEnvSetup.spec.ts +24 -0
- package/tests/unit/develop/checkpointState.spec.ts +378 -0
- package/tests/unit/develop/codeGenerator.spec.ts +447 -0
- package/tests/unit/develop/githubMcpAdapter.spec.ts +283 -0
- package/tests/unit/develop/mcpContextEnricher.spec.ts +564 -0
- package/tests/unit/develop/outputValidator.spec.ts +134 -0
- package/tests/unit/develop/pocScaffolder.spec.ts +451 -0
- package/tests/unit/develop/ralphLoop.spec.ts +1439 -0
- package/tests/unit/develop/templateRegistry.spec.ts +106 -0
- package/tests/unit/develop/testRunner.spec.ts +294 -0
- package/tests/unit/infraBicep.spec.ts +116 -0
- package/tests/unit/infraDeploy.spec.ts +102 -0
- package/tests/unit/infraTeardown.spec.ts +77 -0
- package/tests/unit/logging/logger.spec.ts +50 -0
- package/tests/unit/loop/conversationLoop.spec.ts +719 -0
- package/tests/unit/loop/phaseSummarizer.spec.ts +169 -0
- package/tests/unit/loop/streamingMarkdown.spec.ts +180 -0
- package/tests/unit/mcp/mcpManager.spec.ts +336 -0
- package/tests/unit/mcp/mcpTransport.spec.ts +689 -0
- package/tests/unit/mcp/retryPolicy.spec.ts +278 -0
- package/tests/unit/mcp/timeoutValidation.spec.ts +55 -0
- package/tests/unit/mcp/webSearch.spec.ts +718 -0
- package/tests/unit/phases/contextSummarizer.spec.ts +158 -0
- package/tests/unit/phases/discoveryEnricher.repeatCalls.spec.ts +125 -0
- package/tests/unit/phases/discoveryEnricher.spec.ts +512 -0
- package/tests/unit/phases/phaseExtractors.spec.ts +406 -0
- package/tests/unit/phases/phaseHandlers.spec.ts +483 -0
- package/tests/unit/prompts/promptLoader.spec.ts +144 -0
- package/tests/unit/schemas/pocSchemas.spec.ts +457 -0
- package/tests/unit/schemas/session.spec.ts +328 -0
- package/tests/unit/sessions/exportPaths.spec.ts +38 -0
- package/tests/unit/sessions/exportWriter.spec.ts +737 -0
- package/tests/unit/sessions/sessionManager.spec.ts +174 -0
- package/tests/unit/sessions/sessionStore.spec.ts +136 -0
- package/tests/unit/shared/activitySpinner.spec.ts +211 -0
- package/tests/unit/shared/cardsLoader.spec.ts +89 -0
- package/tests/unit/shared/copilotClient.spec.ts +185 -0
- package/tests/unit/shared/errorClassifier.spec.ts +152 -0
- package/tests/unit/shared/events.spec.ts +71 -0
- package/tests/unit/shared/markdownRenderer.spec.ts +42 -0
- package/tests/unit/shared/markdownRendererChunks.spec.ts +83 -0
- package/tests/unit/shared/tableRenderer.spec.ts +38 -0
- package/tsconfig.json +20 -0
- package/vitest.config.ts +15 -0
- package/vitest.live.config.ts +19 -0
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
# Agent Interaction Script — Zava Industries Full Workshop
|
|
2
|
+
|
|
3
|
+
This document provides the exact inputs an automated agent should supply to sofIA during each phase of the AI Discovery Workshop. The agent plays the role of **Marco Bellini, Head of Innovation at Zava Industries**.
|
|
4
|
+
|
|
5
|
+
> **Usage:** Feed each numbered response to sofIA when it asks the corresponding question. Wait for sofIA's prompt before supplying the next input. When sofIA presents options, choose the option indicated. When sofIA asks for confirmation, respond with the indicated confirmation text.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Phase 1: Discover
|
|
10
|
+
|
|
11
|
+
### Step 1 — Understand the Business
|
|
12
|
+
|
|
13
|
+
**Agent Input 1 (initial business description):**
|
|
14
|
+
|
|
15
|
+
> We are Zava Industries, a mid-premium fashion company based in Milan. We design and sell modern clothing for ages 20–55. Our competitive edge is trend analysis — we try to detect emerging fashion trends before competitors and turn them into collections fast. We have a team of 20: 5 designers, 4 trend analysts, 3 data scientists, 2 developers, 3 marketing people, 2 ops people, and me as Head of Innovation.
|
|
16
|
+
>
|
|
17
|
+
> Our biggest challenge is speed. Right now our trend analysts spend about 60% of their time manually gathering data from Instagram, TikTok, Pinterest, celebrity magazines, films, and runway shows. This data ends up scattered across Google Sheets, Miro boards, Notion pages, and email threads. By the time we consolidate everything into a trend report, fast-fashion competitors like Zara and Shein have already reacted.
|
|
18
|
+
>
|
|
19
|
+
> We do about €18M annual revenue, serve the EU primarily but are expanding to the US. Our trend-to-retail cycle is 10–14 weeks and we want to get it under 8. We're an Azure shop — Azure SQL, Blob Storage, Power BI for sales dashboards.
|
|
20
|
+
|
|
21
|
+
**Agent Input 2 (responding to follow-up probes about team/process):**
|
|
22
|
+
|
|
23
|
+
> The trend analysts each specialize: Sara covers social media (Instagram, TikTok), Dimitri tracks runway and trade shows, Aisha monitors celebrity and entertainment media, and Tomás does competitor retail analysis. They each produce about 3 reports per month. The data scientists — Priya, Liam, and Mei — have built a basic demand forecasting model using Power BI and Azure ML, but it only works on historical sales data, not on forward-looking trend signals.
|
|
24
|
+
>
|
|
25
|
+
> Our designers get a consolidated trend brief every 2–3 weeks, which they say is too slow. They want real-time or near-real-time signals. The hit rate for our collections is about 35% — only 35% of designed pieces make it to production. We believe better trend data could push that to 50% or more.
|
|
26
|
+
>
|
|
27
|
+
> Key metrics we track: trend detection lead time (currently ~4 weeks, want <1 week), collection hit rate (35%, want 50%+), time to market (10–14 weeks, want 8), and analyst productivity (3 reports/month, want 8+).
|
|
28
|
+
|
|
29
|
+
### Step 2 — Choose a Topic
|
|
30
|
+
|
|
31
|
+
**Agent Input 3 (selecting topic):**
|
|
32
|
+
|
|
33
|
+
> I'd like to focus on **Trend Intelligence and Signal Aggregation** — specifically, how we can use AI to automate the gathering and scoring of trend signals from multiple sources (social media, celebrity media, runway, retail). This is the bottleneck that affects everything else downstream: design speed, collection accuracy, and market responsiveness.
|
|
34
|
+
|
|
35
|
+
### Step 3 — Ideate Activities
|
|
36
|
+
|
|
37
|
+
**Agent Input 4 (describing current activities):**
|
|
38
|
+
|
|
39
|
+
> Here are the key activities in our trend analysis workflow:
|
|
40
|
+
>
|
|
41
|
+
> 1. **Social Media Scanning** — Analysts browse Instagram, TikTok, Pinterest for emerging styles, colors, silhouettes. Mostly manual with some Brandwatch alerts.
|
|
42
|
+
> 2. **Celebrity & Entertainment Monitoring** — Weekly scan of Vogue, Elle, People, Hola! plus streaming shows. Screenshots go to Miro.
|
|
43
|
+
> 3. **Runway & Trade Show Tracking** — Attend or watch livestreams of 4–6 shows/year. Notes in Notion.
|
|
44
|
+
> 4. **Competitor Retail Analysis** — Manual store visits and online browsing of Zara, H&M, COS, etc.
|
|
45
|
+
> 5. **Signal Consolidation** — Merge all data into a trend report. This takes 1–2 weeks.
|
|
46
|
+
> 6. **Trend Scoring & Prioritization** — Team meeting to rank trends. Very subjective, no consistent framework.
|
|
47
|
+
> 7. **Design Brief Creation** — Create briefs for designers based on top trends.
|
|
48
|
+
> 8. **Designer Feedback Loop** — Designers review briefs, ask questions, iterate.
|
|
49
|
+
>
|
|
50
|
+
> What we'd do if it weren't so hard: real-time multi-source signal aggregation, automated trend scoring with a confidence index, instant visual mood board generation, and predictive trend lifecycle estimation (is this trend rising, peaking, or fading?).
|
|
51
|
+
|
|
52
|
+
### Step 4 — Map Workflow
|
|
53
|
+
|
|
54
|
+
**Agent Input 5 (voting on critical steps):**
|
|
55
|
+
|
|
56
|
+
> The most critical steps are:
|
|
57
|
+
>
|
|
58
|
+
> - **Social Media Scanning** — Business value: 5, Human value: 4 (it's mind-numbing repetitive work). Key metric: hours/week spent scanning (~25hrs across the team).
|
|
59
|
+
> - **Signal Consolidation** — Business value: 5, Human value: 3. Key metric: time to produce a consolidated report (currently 1–2 weeks).
|
|
60
|
+
> - **Trend Scoring & Prioritization** — Business value: 5, Human value: 4 (analysts feel frustrated by the subjectivity). Key metric: consistency of scoring across analysts (currently not measured).
|
|
61
|
+
> - **Design Brief Creation** — Business value: 4, Human value: 3. Key metric: designer satisfaction with brief quality (NSAT ~3.2/5).
|
|
62
|
+
|
|
63
|
+
**Agent Input 6 (confirming workflow summary):**
|
|
64
|
+
|
|
65
|
+
> Yes, that workflow summary looks accurate. Let's proceed to ideation.
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## Phase 2: Ideate
|
|
70
|
+
|
|
71
|
+
### Step 5 — Explore AI Envisioning Cards
|
|
72
|
+
|
|
73
|
+
**Agent Input 7 (reacting to cards):**
|
|
74
|
+
|
|
75
|
+
> I'm very interested in these cards:
|
|
76
|
+
>
|
|
77
|
+
> - **Computer Vision / Image Recognition** — for automatically analyzing social media images and runway photos
|
|
78
|
+
> - **Natural Language Processing** — for extracting trend signals from captions, comments, articles
|
|
79
|
+
> - **Recommendation Systems** — for suggesting which trends are most relevant to our brand DNA
|
|
80
|
+
> - **Anomaly / Pattern Detection** — for spotting emerging patterns before they go mainstream
|
|
81
|
+
> - **Predictive Analytics** — for forecasting trend lifecycle and commercial potential
|
|
82
|
+
> - **Content Generation** — for auto-generating mood boards and visual summaries
|
|
83
|
+
> - **Data Integration / Aggregation** — for unifying our scattered data sources
|
|
84
|
+
> - **Sentiment Analysis** — for gauging public reaction to trends and celebrity outfits
|
|
85
|
+
|
|
86
|
+
### Step 6 — Score Cards
|
|
87
|
+
|
|
88
|
+
**Agent Input 8 (scoring cards):**
|
|
89
|
+
|
|
90
|
+
> Here are my scores (Relevance / Feasibility / Impact):
|
|
91
|
+
>
|
|
92
|
+
> | Card | Relevance | Feasibility | Impact |
|
|
93
|
+
> | ----------------------------------- | --------- | ----------- | ------ |
|
|
94
|
+
> | Computer Vision / Image Recognition | 5 | 3 | 5 |
|
|
95
|
+
> | Natural Language Processing | 5 | 4 | 4 |
|
|
96
|
+
> | Recommendation Systems | 4 | 3 | 4 |
|
|
97
|
+
> | Anomaly / Pattern Detection | 5 | 3 | 5 |
|
|
98
|
+
> | Predictive Analytics | 5 | 2 | 5 |
|
|
99
|
+
> | Content Generation | 3 | 4 | 3 |
|
|
100
|
+
> | Data Integration / Aggregation | 5 | 5 | 4 |
|
|
101
|
+
> | Sentiment Analysis | 4 | 4 | 4 |
|
|
102
|
+
|
|
103
|
+
### Step 7 — Review Top Cards
|
|
104
|
+
|
|
105
|
+
**Agent Input 9 (confirming top cards):**
|
|
106
|
+
|
|
107
|
+
> I agree with the top cards selection. Let's aggregate "Computer Vision" and "Anomaly/Pattern Detection" under a theme of **"Visual Trend Detection"**, and "NLP" and "Sentiment Analysis" under **"Text-Based Trend Intelligence"**. The rest can stay as individual cards.
|
|
108
|
+
|
|
109
|
+
### Step 8 — Map Cards to Workflow
|
|
110
|
+
|
|
111
|
+
**Agent Input 10 (mapping cards to workflow):**
|
|
112
|
+
|
|
113
|
+
> Here's how I see the mapping:
|
|
114
|
+
>
|
|
115
|
+
> - **Visual Trend Detection** → Social Media Scanning, Celebrity Monitoring, Runway Tracking
|
|
116
|
+
> - **Text-Based Trend Intelligence** → Social Media Scanning, Celebrity Monitoring
|
|
117
|
+
> - **Data Integration / Aggregation** → Signal Consolidation
|
|
118
|
+
> - **Recommendation Systems** → Trend Scoring & Prioritization
|
|
119
|
+
> - **Predictive Analytics** → Trend Scoring & Prioritization, Design Brief Creation
|
|
120
|
+
> - **Content Generation** → Design Brief Creation, Designer Feedback Loop
|
|
121
|
+
|
|
122
|
+
### Step 9 — Generate Ideas
|
|
123
|
+
|
|
124
|
+
**Agent Input 11 (responding to ideation prompts):**
|
|
125
|
+
|
|
126
|
+
> I love the "How Might We" framing. Here are my thoughts on the generated ideas:
|
|
127
|
+
>
|
|
128
|
+
> 1. **TrendLens** — an AI visual analyzer that processes social media and celebrity photos in near-real-time, extracting fashion attributes (colors, silhouettes, patterns, fabrics) and tracking their frequency over time. This is our top priority.
|
|
129
|
+
> 2. **TrendPulse Dashboard** — a unified real-time dashboard that aggregates all trend signals (visual + text + retail) into a single view with trend scores and lifecycle indicators.
|
|
130
|
+
> 3. **AutoBrief Generator** — AI that creates design briefs automatically from detected trends, including visual mood boards, color palettes, and reference images.
|
|
131
|
+
> 4. **Celebrity Impact Tracker** — AI that correlates celebrity outfit appearances with social media engagement spikes and retail demand signals.
|
|
132
|
+
> 5. **Trend Predictor** — a predictive model that estimates trend lifecycle (emerging, peaking, declining) and commercial potential based on historical pattern matching.
|
|
133
|
+
>
|
|
134
|
+
> I'm most excited about ideas 1 and 2 — they address our core bottleneck.
|
|
135
|
+
|
|
136
|
+
**Agent Input 12 (confirming idea cards):**
|
|
137
|
+
|
|
138
|
+
> These idea cards look great. Let's move to the Design phase.
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
## Phase 3: Design
|
|
143
|
+
|
|
144
|
+
### Steps 10–12
|
|
145
|
+
|
|
146
|
+
**Agent Input 13 (refining idea cards):**
|
|
147
|
+
|
|
148
|
+
> For TrendLens, I want to add:
|
|
149
|
+
>
|
|
150
|
+
> - **Assumptions:** We assume we can get sufficient social media API access (Instagram Graph API, TikTok Research API). We assume Azure Cognitive Services has sufficient fashion-domain accuracy or can be fine-tuned.
|
|
151
|
+
> - **Data Needed:** Social media images (public posts), celebrity photo feeds, runway show images. At least 6 months historical to train pattern recognition.
|
|
152
|
+
>
|
|
153
|
+
> For TrendPulse Dashboard, add:
|
|
154
|
+
>
|
|
155
|
+
> - **Assumptions:** Our existing Power BI infrastructure can be extended or replaced. The team will adopt a new tool if it's significantly better.
|
|
156
|
+
> - **Data Needed:** All source feeds plus our historical sales data for correlation.
|
|
157
|
+
|
|
158
|
+
**Agent Input 14 (scoring feasibility/value):**
|
|
159
|
+
|
|
160
|
+
> My scores:
|
|
161
|
+
>
|
|
162
|
+
> | Idea | Feasibility (1-5) | Business Value (1-5) |
|
|
163
|
+
> | ------------------------ | ----------------- | -------------------- |
|
|
164
|
+
> | TrendLens | 3 | 5 |
|
|
165
|
+
> | TrendPulse Dashboard | 4 | 5 |
|
|
166
|
+
> | AutoBrief Generator | 4 | 3 |
|
|
167
|
+
> | Celebrity Impact Tracker | 3 | 4 |
|
|
168
|
+
> | Trend Predictor | 2 | 5 |
|
|
169
|
+
|
|
170
|
+
**Agent Input 15 (impact assessment feedback):**
|
|
171
|
+
|
|
172
|
+
> I agree with the BXT assessment. A few additions:
|
|
173
|
+
>
|
|
174
|
+
> - **Risk for TrendLens:** Social media API rate limits and policy changes are a real threat. We need to design for provider-agnostic data ingestion.
|
|
175
|
+
> - **Risk for TrendPulse:** Change management — analysts are attached to their individual tools. We need a great UX.
|
|
176
|
+
> - **Biggest opportunity:** If we combine TrendLens + TrendPulse into one platform, it becomes a potential SaaS product we could sell to other fashion brands.
|
|
177
|
+
|
|
178
|
+
**Agent Input 16 (confirming design output):**
|
|
179
|
+
|
|
180
|
+
> The architecture sketch and impact assessment look solid. Let's proceed to Selection.
|
|
181
|
+
|
|
182
|
+
---
|
|
183
|
+
|
|
184
|
+
## Phase 4: Select
|
|
185
|
+
|
|
186
|
+
**Agent Input 17 (responding to recommendation):**
|
|
187
|
+
|
|
188
|
+
> I agree with the recommendation. Let me confirm: I want to proceed with **TrendPulse Dashboard with integrated TrendLens** — the unified real-time trend intelligence platform that combines visual AI analysis with multi-source signal aggregation. This addresses our core bottleneck (manual data gathering and slow consolidation) and has the best combined feasibility + impact score. It also has long-term potential as a SaaS product.
|
|
189
|
+
|
|
190
|
+
---
|
|
191
|
+
|
|
192
|
+
## Phase 5: Plan
|
|
193
|
+
|
|
194
|
+
**Agent Input 18 (plan refinement):**
|
|
195
|
+
|
|
196
|
+
> The milestones look good. A few notes:
|
|
197
|
+
>
|
|
198
|
+
> - For the PoC, I want the minimum viable scope to be: ingest images from one social media source (Instagram), extract basic fashion attributes (colors, patterns), and display them on a simple dashboard with a trend frequency chart.
|
|
199
|
+
> - **Tech stack preference:** Azure Functions for the backend, Azure Cognitive Services (Custom Vision or Azure AI Vision) for image analysis, Azure Cosmos DB for trend signal storage, and a simple React or Next.js frontend.
|
|
200
|
+
> - **PoC timeline:** 4 weeks with the two developers (Javier, Nadia) and one data scientist (Priya).
|
|
201
|
+
> - **Success criteria for PoC:** Process at least 100 images, extract 3+ fashion attributes per image with >70% accuracy, display trend frequency on the dashboard updating at least hourly.
|
|
202
|
+
|
|
203
|
+
**Agent Input 19 (confirming plan):**
|
|
204
|
+
|
|
205
|
+
> The plan and PoC definition look great. I'm ready to proceed to the Develop phase.
|
|
206
|
+
|
|
207
|
+
---
|
|
208
|
+
|
|
209
|
+
## Phase 6: Develop (Boundary — workshop side)
|
|
210
|
+
|
|
211
|
+
**Agent Input 20 (PoC intent capture):**
|
|
212
|
+
|
|
213
|
+
> For the PoC development:
|
|
214
|
+
>
|
|
215
|
+
> - **Target stack:** TypeScript + Node.js for the backend API, React for the dashboard, Azure Cognitive Services for image analysis.
|
|
216
|
+
> - **Key scenarios:** (1) Ingest an Instagram-like image feed, (2) extract fashion attributes using AI vision, (3) aggregate signals into trend scores, (4) display on a real-time dashboard.
|
|
217
|
+
> - **Constraints:** Must run locally for the PoC (no production Azure deployment needed yet). Should use mocked image data if API access is unavailable.
|
|
218
|
+
> - **Out of scope for PoC:** User authentication, multi-language support, production scaling.
|
|
219
|
+
|
|
220
|
+
---
|
|
221
|
+
|
|
222
|
+
## Decision Gate Responses
|
|
223
|
+
|
|
224
|
+
At each phase transition, when sofIA asks for a decision:
|
|
225
|
+
|
|
226
|
+
- **After Discover:** "Continue to next phase"
|
|
227
|
+
- **After Ideate:** "Continue to next phase"
|
|
228
|
+
- **After Design:** "Continue to next phase"
|
|
229
|
+
- **After Select:** "Continue to next phase"
|
|
230
|
+
- **After Plan:** "Continue to next phase" (or "Automatically start development" if offered)
|
|
231
|
+
|
|
232
|
+
If sofIA asks "Would you like me to search the web for information about your company?", respond:
|
|
233
|
+
|
|
234
|
+
> Yes, please research Zava Industries and the fashion trend analysis technology landscape.
|
|
235
|
+
|
|
236
|
+
If sofIA asks about WorkIQ access, respond:
|
|
237
|
+
|
|
238
|
+
> No, we don't have WorkIQ configured for this session. Skip it.
|
|
239
|
+
|
|
240
|
+
---
|
|
241
|
+
|
|
242
|
+
## Abort / Error Handling Inputs
|
|
243
|
+
|
|
244
|
+
If sofIA encounters an error and offers retry:
|
|
245
|
+
|
|
246
|
+
> Retry
|
|
247
|
+
|
|
248
|
+
If sofIA asks to refine the current phase:
|
|
249
|
+
|
|
250
|
+
> The current output looks good. Let's continue to the next phase.
|
|
251
|
+
|
|
252
|
+
If sofIA shows an unrecoverable error:
|
|
253
|
+
|
|
254
|
+
> Log the error and note it in the assessment results. Attempt to continue from the last known good state.
|
|
255
|
+
|
|
256
|
+
---
|
|
257
|
+
|
|
258
|
+
_This script is designed for automated testing of the sofIA CLI. All inputs are consistent with the Zava Industries company profile._
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# Zava Industries — Company Profile
|
|
2
|
+
|
|
3
|
+
## Company Overview
|
|
4
|
+
|
|
5
|
+
**Name:** Zava Industries
|
|
6
|
+
**Industry:** Fashion & Apparel Design
|
|
7
|
+
**Founded:** 2014
|
|
8
|
+
**HQ:** Milan, Italy (with a satellite studio in Barcelona, Spain)
|
|
9
|
+
**Annual Revenue:** ~€18M
|
|
10
|
+
**Customer base:** B2C and B2B (wholesale to multi-brand retailers)
|
|
11
|
+
|
|
12
|
+
Zava Industries designs and sells modern clothing lines driven by trend analysis. The company's competitive edge is its ability to detect and act on emerging fashion trends faster than traditional apparel houses, compressing the concept-to-rack cycle to 8–12 weeks.
|
|
13
|
+
|
|
14
|
+
## Target Market
|
|
15
|
+
|
|
16
|
+
- **Age range:** 20–55
|
|
17
|
+
- **Segments:** Urban professionals (20–35), trend-conscious mid-career (35–45), premium casual (45–55)
|
|
18
|
+
- **Geographies:** EU (primary), UK, US East Coast (growing)
|
|
19
|
+
- **Price point:** Mid-to-premium (€60–€350 per garment)
|
|
20
|
+
|
|
21
|
+
## Team (20 people)
|
|
22
|
+
|
|
23
|
+
| Role | Count | Names (key contacts) | Responsibilities |
|
|
24
|
+
| ------------------------- | ----- | -------------------------------- | ------------------------------------------------------------ |
|
|
25
|
+
| Head of Innovation | 1 | Marco Bellini (you) | Strategy, AI initiatives, workshop facilitator |
|
|
26
|
+
| Fashion Designers | 5 | Lucia, Ahmed, Yuki, Carlos, Iris | Concept design, mood boards, collection direction |
|
|
27
|
+
| Trend Analysts | 4 | Sara, Dimitri, Aisha, Tomás | Social media monitoring, celebrity tracking, runway analysis |
|
|
28
|
+
| Data Scientists | 3 | Priya, Liam, Mei | Trend data modeling, NLP on social feeds, demand forecasting |
|
|
29
|
+
| Software Developers | 2 | Javier, Nadia | Internal tools, website, data pipelines |
|
|
30
|
+
| Marketing & Brand | 3 | Elena, Fabio, Chloë | Campaigns, influencer partnerships, brand storytelling |
|
|
31
|
+
| Operations & Supply Chain | 2 | Hans, Beatriz | Sourcing, production coordination, logistics |
|
|
32
|
+
|
|
33
|
+
## Current Trend Analysis Process
|
|
34
|
+
|
|
35
|
+
### Data Sources (collected manually + semi-automated)
|
|
36
|
+
|
|
37
|
+
1. **Social networks:** Instagram, TikTok, Pinterest — analysts manually browse and tag emerging styles, colors, and silhouettes. They use basic social listening tools (Brandwatch, Sprout Social) but extraction is mostly copy-paste.
|
|
38
|
+
2. **Films & TV:** The team watches new releases and streaming hits, noting costume design trends. A shared Google Sheet tracks "looks" with screenshots.
|
|
39
|
+
3. **Celebrity magazines & paparazzi feeds:** Physical and digital magazines (Vogue, Elle, People, Hola!) are scanned weekly. Key looks are clipped into a Miro board.
|
|
40
|
+
4. **Runway & trade shows:** Analysts attend 4–6 shows/year; others are watched via livestream. Notes go into Notion.
|
|
41
|
+
5. **Retail & competitor monitoring:** Manual store visits + online browsing of Zara, H&M, COS, Arket, Massimo Dutti, & Other Stories.
|
|
42
|
+
|
|
43
|
+
### Pain Points
|
|
44
|
+
|
|
45
|
+
- **Manual data collection is slow:** Analysts spend ~60% of their time gathering rather than analyzing. By the time a trend report is ready, fast-fashion competitors may have already reacted.
|
|
46
|
+
- **No unified data repository:** Trend signals are scattered across Google Sheets, Miro, Notion, Instagram saves, and email threads. Cross-referencing is painful.
|
|
47
|
+
- **Subjectivity in trend scoring:** Each analyst has their own mental model. There's no consistent framework for ranking which trends are worth pursuing.
|
|
48
|
+
- **Limited predictive capability:** The data scientists have built a basic demand-forecasting model for existing products, but they can't yet predict _which new trends_ will sell. Their models are starved for structured historical trend data.
|
|
49
|
+
- **Slow design feedback loop:** Designers wait 2–3 weeks for a consolidated trend report. They'd prefer real-time or near-real-time signals.
|
|
50
|
+
- **Celebrity influence tracking is unreliable:** Tracking which celebrity outfits drive consumer interest is entirely manual and often lagging.
|
|
51
|
+
|
|
52
|
+
### Tools Currently Used
|
|
53
|
+
|
|
54
|
+
| Tool | Purpose | Limitation |
|
|
55
|
+
| -------------------------- | ---------------------------------- | -------------------------------------------- |
|
|
56
|
+
| Brandwatch | Social listening | Expensive; limited fashion-specific taxonomy |
|
|
57
|
+
| Miro | Visual collaboration / mood boards | Not structured data; can't query |
|
|
58
|
+
| Notion | Knowledge base / trend notes | Siloed by analyst |
|
|
59
|
+
| Google Sheets | Tracking spreadsheets | No API integration with design tools |
|
|
60
|
+
| Adobe Illustrator / CLO 3D | Design | No trend data input |
|
|
61
|
+
| Power BI | Demand dashboards | Only works on sales data, not trend signals |
|
|
62
|
+
| Slack / Teams | Communication | Information gets lost in chat history |
|
|
63
|
+
|
|
64
|
+
### Key Metrics
|
|
65
|
+
|
|
66
|
+
- **Trend detection lead time:** Currently ~4 weeks from signal to actionable brief. Target: <1 week.
|
|
67
|
+
- **Trend report accuracy:** Currently subjective; no systematic measurement. Target: 70%+ retrospective accuracy.
|
|
68
|
+
- **Collection hit rate:** 35% of designed pieces make it to production (rest are killed in review). Target: 50%+.
|
|
69
|
+
- **Time to market:** 10–14 weeks from trend brief to retail floor. Target: 8 weeks.
|
|
70
|
+
- **Analyst productivity:** Each analyst produces ~3 reports/month. Target: 8+ with AI assistance.
|
|
71
|
+
|
|
72
|
+
### Business Challenges
|
|
73
|
+
|
|
74
|
+
1. Fast-fashion giants (Zara, Shein) can react to trends in 2–3 weeks; Zava takes 10+.
|
|
75
|
+
2. Consolidating multi-source signals into a single "trend score" is an unsolved problem for the team.
|
|
76
|
+
3. Celebrity-driven trends spike and fade quickly — the team often misses the window.
|
|
77
|
+
4. Design team creativity is bottlenecked by slow information flow, not by lack of talent.
|
|
78
|
+
5. The company wants to expand into the US market but needs faster, data-driven trend response to compete.
|
|
79
|
+
|
|
80
|
+
### Strategic Goals (next 12 months)
|
|
81
|
+
|
|
82
|
+
- Build an **AI-powered trend intelligence platform** that aggregates signals from social media, celebrity feeds, runway shows, and retail data.
|
|
83
|
+
- Enable **real-time trend dashboards** for designers with visual and data summaries.
|
|
84
|
+
- Create a **predictive trend scoring model** that ranks emerging trends by commercial potential.
|
|
85
|
+
- Reduce trend-to-retail cycle time to **8 weeks**.
|
|
86
|
+
- Launch a "**Trend Radar**" feature for buyers and wholesale partners.
|
|
87
|
+
|
|
88
|
+
### Constraints
|
|
89
|
+
|
|
90
|
+
- Budget: €200K for AI/tech initiatives this fiscal year.
|
|
91
|
+
- Team: 2 developers and 3 data scientists must maintain current systems while building new ones.
|
|
92
|
+
- Data: Social media API access is a known limitation (rate limits, platform policy changes).
|
|
93
|
+
- Compliance: GDPR applies to any consumer data; celebrity image rights are a legal consideration.
|
|
94
|
+
- Infrastructure: Currently Azure-based (Azure SQL, Azure Blob, Power BI). Prefer to stay in Azure ecosystem.
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
_This profile is fictional and created for the purpose of testing the sofIA AI Discovery Workshop CLI._
|