bps-kit 1.0.1 → 1.0.2
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/package.json +1 -1
- package/templates/.agents/agents/backend-specialist.md +263 -0
- package/templates/.agents/agents/code-archaeologist.md +106 -0
- package/templates/.agents/agents/database-architect.md +226 -0
- package/templates/.agents/agents/debugger.md +225 -0
- package/templates/.agents/agents/devops-engineer.md +242 -0
- package/templates/.agents/agents/documentation-writer.md +104 -0
- package/templates/.agents/agents/explorer-agent.md +73 -0
- package/templates/.agents/agents/frontend-specialist.md +593 -0
- package/templates/.agents/agents/game-developer.md +162 -0
- package/templates/.agents/agents/mobile-developer.md +377 -0
- package/templates/.agents/agents/orchestrator.md +416 -0
- package/templates/.agents/agents/penetration-tester.md +188 -0
- package/templates/.agents/agents/performance-optimizer.md +187 -0
- package/templates/.agents/agents/product-manager.md +112 -0
- package/templates/.agents/agents/product-owner.md +95 -0
- package/templates/.agents/agents/project-planner.md +406 -0
- package/templates/.agents/agents/qa-automation-engineer.md +103 -0
- package/templates/.agents/agents/security-auditor.md +170 -0
- package/templates/.agents/agents/seo-specialist.md +111 -0
- package/templates/.agents/agents/test-engineer.md +158 -0
- package/templates/.agents/rules/GEMINI.md +219 -0
- package/templates/.agents/scripts/auto_preview.py +148 -0
- package/templates/.agents/scripts/checklist.py +217 -0
- package/templates/.agents/scripts/session_manager.py +120 -0
- package/templates/.agents/scripts/verify_all.py +327 -0
- package/templates/.agents/workflows/brainstorm.md +113 -0
- package/templates/.agents/workflows/create.md +59 -0
- package/templates/.agents/workflows/debug.md +103 -0
- package/templates/.agents/workflows/deploy.md +176 -0
- package/templates/.agents/workflows/enhance.md +63 -0
- package/templates/.agents/workflows/orchestrate.md +237 -0
- package/templates/.agents/workflows/plan.md +89 -0
- package/templates/.agents/workflows/preview.md +81 -0
- package/templates/.agents/workflows/setup-brain.md +39 -0
- package/templates/.agents/workflows/status.md +86 -0
- package/templates/.agents/workflows/test.md +144 -0
- package/templates/.agents/workflows/ui-ux-pro-max.md +296 -0
- package/templates/skills_normal/api-patterns/scripts/api_validator.py +211 -0
- package/templates/skills_normal/database-design/scripts/schema_validator.py +172 -0
- package/templates/skills_normal/frontend-design/scripts/accessibility_checker.py +183 -0
- package/templates/skills_normal/frontend-design/scripts/ux_audit.py +722 -0
- package/templates/skills_normal/git-pushing/scripts/smart_commit.sh +19 -0
- package/templates/skills_normal/lint-and-validate/scripts/lint_runner.py +184 -0
- package/templates/skills_normal/lint-and-validate/scripts/type_coverage.py +173 -0
- package/templates/skills_normal/performance-profiling/scripts/lighthouse_audit.py +76 -0
- package/templates/skills_normal/senior-fullstack/scripts/code_quality_analyzer.py +114 -0
- package/templates/skills_normal/senior-fullstack/scripts/fullstack_scaffolder.py +114 -0
- package/templates/skills_normal/senior-fullstack/scripts/project_scaffolder.py +114 -0
- package/templates/skills_normal/seo-fundamentals/scripts/seo_checker.py +219 -0
- package/templates/skills_normal/testing-patterns/scripts/test_runner.py +219 -0
- package/templates/skills_normal/vulnerability-scanner/scripts/security_scan.py +458 -0
- package/templates/vault/007/scripts/config.py +472 -0
- package/templates/vault/007/scripts/full_audit.py +1306 -0
- package/templates/vault/007/scripts/quick_scan.py +481 -0
- package/templates/vault/007/scripts/requirements.txt +26 -0
- package/templates/vault/007/scripts/scanners/__init__.py +0 -0
- package/templates/vault/007/scripts/scanners/dependency_scanner.py +1305 -0
- package/templates/vault/007/scripts/scanners/injection_scanner.py +1104 -0
- package/templates/vault/007/scripts/scanners/secrets_scanner.py +1008 -0
- package/templates/vault/007/scripts/score_calculator.py +693 -0
- package/templates/vault/agent-orchestrator/scripts/match_skills.py +329 -0
- package/templates/vault/agent-orchestrator/scripts/orchestrate.py +304 -0
- package/templates/vault/agent-orchestrator/scripts/requirements.txt +1 -0
- package/templates/vault/agent-orchestrator/scripts/scan_registry.py +508 -0
- package/templates/vault/ai-studio-image/scripts/config.py +613 -0
- package/templates/vault/ai-studio-image/scripts/generate.py +630 -0
- package/templates/vault/ai-studio-image/scripts/prompt_engine.py +424 -0
- package/templates/vault/ai-studio-image/scripts/requirements.txt +4 -0
- package/templates/vault/ai-studio-image/scripts/templates.py +349 -0
- package/templates/vault/android_ui_verification/scripts/verify_ui.sh +32 -0
- package/templates/vault/apify-audience-analysis/reference/scripts/run_actor.js +363 -0
- package/templates/vault/apify-brand-reputation-monitoring/reference/scripts/run_actor.js +363 -0
- package/templates/vault/apify-competitor-intelligence/reference/scripts/run_actor.js +363 -0
- package/templates/vault/apify-content-analytics/reference/scripts/run_actor.js +363 -0
- package/templates/vault/apify-ecommerce/reference/scripts/package.json +3 -0
- package/templates/vault/apify-ecommerce/reference/scripts/run_actor.js +369 -0
- package/templates/vault/apify-influencer-discovery/reference/scripts/run_actor.js +363 -0
- package/templates/vault/apify-lead-generation/reference/scripts/run_actor.js +363 -0
- package/templates/vault/apify-market-research/reference/scripts/run_actor.js +363 -0
- package/templates/vault/apify-trend-analysis/reference/scripts/run_actor.js +363 -0
- package/templates/vault/apify-ultimate-scraper/reference/scripts/run_actor.js +363 -0
- package/templates/vault/audio-transcriber/scripts/install-requirements.sh +190 -0
- package/templates/vault/audio-transcriber/scripts/transcribe.py +486 -0
- package/templates/vault/claude-monitor/scripts/api_bench.py +240 -0
- package/templates/vault/claude-monitor/scripts/config.py +69 -0
- package/templates/vault/claude-monitor/scripts/health_check.py +362 -0
- package/templates/vault/claude-monitor/scripts/monitor.py +296 -0
- package/templates/vault/content-creator/scripts/brand_voice_analyzer.py +185 -0
- package/templates/vault/content-creator/scripts/seo_optimizer.py +419 -0
- package/templates/vault/context-agent/scripts/active_context.py +227 -0
- package/templates/vault/context-agent/scripts/compressor.py +149 -0
- package/templates/vault/context-agent/scripts/config.py +69 -0
- package/templates/vault/context-agent/scripts/context_loader.py +155 -0
- package/templates/vault/context-agent/scripts/context_manager.py +302 -0
- package/templates/vault/context-agent/scripts/models.py +103 -0
- package/templates/vault/context-agent/scripts/project_registry.py +132 -0
- package/templates/vault/context-agent/scripts/requirements.txt +6 -0
- package/templates/vault/context-agent/scripts/search.py +115 -0
- package/templates/vault/context-agent/scripts/session_parser.py +206 -0
- package/templates/vault/context-agent/scripts/session_summary.py +319 -0
- package/templates/vault/context-guardian/scripts/context_snapshot.py +229 -0
- package/templates/vault/docx/ooxml/scripts/pack.py +159 -0
- package/templates/vault/docx/ooxml/scripts/unpack.py +29 -0
- package/templates/vault/docx/ooxml/scripts/validate.py +69 -0
- package/templates/vault/docx/ooxml/scripts/validation/__init__.py +15 -0
- package/templates/vault/docx/ooxml/scripts/validation/base.py +951 -0
- package/templates/vault/docx/ooxml/scripts/validation/docx.py +274 -0
- package/templates/vault/docx/ooxml/scripts/validation/pptx.py +315 -0
- package/templates/vault/docx/ooxml/scripts/validation/redlining.py +279 -0
- package/templates/vault/docx/scripts/__init__.py +1 -0
- package/templates/vault/docx/scripts/document.py +1276 -0
- package/templates/vault/docx/scripts/templates/comments.xml +3 -0
- package/templates/vault/docx/scripts/templates/commentsExtended.xml +3 -0
- package/templates/vault/docx/scripts/templates/commentsExtensible.xml +3 -0
- package/templates/vault/docx/scripts/templates/commentsIds.xml +3 -0
- package/templates/vault/docx/scripts/templates/people.xml +3 -0
- package/templates/vault/docx/scripts/utilities.py +374 -0
- package/templates/vault/docx-official/ooxml/scripts/pack.py +159 -0
- package/templates/vault/docx-official/ooxml/scripts/unpack.py +29 -0
- package/templates/vault/docx-official/ooxml/scripts/validate.py +69 -0
- package/templates/vault/docx-official/ooxml/scripts/validation/__init__.py +15 -0
- package/templates/vault/docx-official/ooxml/scripts/validation/base.py +951 -0
- package/templates/vault/docx-official/ooxml/scripts/validation/docx.py +274 -0
- package/templates/vault/docx-official/ooxml/scripts/validation/pptx.py +315 -0
- package/templates/vault/docx-official/ooxml/scripts/validation/redlining.py +279 -0
- package/templates/vault/docx-official/scripts/__init__.py +1 -0
- package/templates/vault/docx-official/scripts/document.py +1276 -0
- package/templates/vault/docx-official/scripts/templates/comments.xml +3 -0
- package/templates/vault/docx-official/scripts/templates/commentsExtended.xml +3 -0
- package/templates/vault/docx-official/scripts/templates/commentsExtensible.xml +3 -0
- package/templates/vault/docx-official/scripts/templates/commentsIds.xml +3 -0
- package/templates/vault/docx-official/scripts/templates/people.xml +3 -0
- package/templates/vault/docx-official/scripts/utilities.py +374 -0
- package/templates/vault/geo-fundamentals/scripts/geo_checker.py +289 -0
- package/templates/vault/helm-chart-scaffolding/scripts/validate-chart.sh +244 -0
- package/templates/vault/i18n-localization/scripts/i18n_checker.py +241 -0
- package/templates/vault/instagram/scripts/account_setup.py +233 -0
- package/templates/vault/instagram/scripts/analyze.py +221 -0
- package/templates/vault/instagram/scripts/api_client.py +444 -0
- package/templates/vault/instagram/scripts/auth.py +411 -0
- package/templates/vault/instagram/scripts/comments.py +160 -0
- package/templates/vault/instagram/scripts/config.py +111 -0
- package/templates/vault/instagram/scripts/db.py +467 -0
- package/templates/vault/instagram/scripts/export.py +138 -0
- package/templates/vault/instagram/scripts/governance.py +233 -0
- package/templates/vault/instagram/scripts/hashtags.py +114 -0
- package/templates/vault/instagram/scripts/insights.py +170 -0
- package/templates/vault/instagram/scripts/media.py +65 -0
- package/templates/vault/instagram/scripts/messages.py +103 -0
- package/templates/vault/instagram/scripts/profile.py +58 -0
- package/templates/vault/instagram/scripts/publish.py +449 -0
- package/templates/vault/instagram/scripts/requirements.txt +5 -0
- package/templates/vault/instagram/scripts/run_all.py +189 -0
- package/templates/vault/instagram/scripts/schedule.py +189 -0
- package/templates/vault/instagram/scripts/serve_api.py +234 -0
- package/templates/vault/instagram/scripts/templates.py +155 -0
- package/templates/vault/junta-leiloeiros/scripts/db.py +216 -0
- package/templates/vault/junta-leiloeiros/scripts/export.py +137 -0
- package/templates/vault/junta-leiloeiros/scripts/requirements.txt +15 -0
- package/templates/vault/junta-leiloeiros/scripts/run_all.py +190 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/__init__.py +4 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/base_scraper.py +209 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/generic_scraper.py +110 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucap.py +110 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/juceac.py +72 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/juceal.py +72 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/juceb.py +68 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucec.py +63 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucema.py +211 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucemg.py +218 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucep.py +70 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucepa.py +74 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucepar.py +80 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucepe.py +78 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucepi.py +69 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucer.py +256 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucerja.py +170 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucern.py +71 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucesc.py +89 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucesp.py +233 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucetins.py +134 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucis_df.py +63 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/jucisrs.py +299 -0
- package/templates/vault/junta-leiloeiros/scripts/scraper/states.py +99 -0
- package/templates/vault/junta-leiloeiros/scripts/serve_api.py +164 -0
- package/templates/vault/junta-leiloeiros/scripts/web_scraper_fallback.py +233 -0
- package/templates/vault/last30days/scripts/last30days.py +521 -0
- package/templates/vault/last30days/scripts/lib/__init__.py +1 -0
- package/templates/vault/last30days/scripts/lib/cache.py +152 -0
- package/templates/vault/last30days/scripts/lib/dates.py +124 -0
- package/templates/vault/last30days/scripts/lib/dedupe.py +120 -0
- package/templates/vault/last30days/scripts/lib/env.py +149 -0
- package/templates/vault/last30days/scripts/lib/http.py +152 -0
- package/templates/vault/last30days/scripts/lib/models.py +175 -0
- package/templates/vault/last30days/scripts/lib/normalize.py +160 -0
- package/templates/vault/last30days/scripts/lib/openai_reddit.py +230 -0
- package/templates/vault/last30days/scripts/lib/reddit_enrich.py +232 -0
- package/templates/vault/last30days/scripts/lib/render.py +383 -0
- package/templates/vault/last30days/scripts/lib/schema.py +336 -0
- package/templates/vault/last30days/scripts/lib/score.py +311 -0
- package/templates/vault/last30days/scripts/lib/ui.py +324 -0
- package/templates/vault/last30days/scripts/lib/websearch.py +401 -0
- package/templates/vault/last30days/scripts/lib/xai_x.py +217 -0
- package/templates/vault/leiloeiro-avaliacao/scripts/governance.py +106 -0
- package/templates/vault/leiloeiro-avaliacao/scripts/requirements.txt +1 -0
- package/templates/vault/leiloeiro-edital/scripts/governance.py +106 -0
- package/templates/vault/leiloeiro-edital/scripts/requirements.txt +1 -0
- package/templates/vault/leiloeiro-ia/scripts/governance.py +106 -0
- package/templates/vault/leiloeiro-ia/scripts/requirements.txt +1 -0
- package/templates/vault/leiloeiro-juridico/scripts/governance.py +106 -0
- package/templates/vault/leiloeiro-juridico/scripts/requirements.txt +1 -0
- package/templates/vault/leiloeiro-mercado/scripts/governance.py +106 -0
- package/templates/vault/leiloeiro-mercado/scripts/requirements.txt +1 -0
- package/templates/vault/leiloeiro-risco/scripts/governance.py +106 -0
- package/templates/vault/leiloeiro-risco/scripts/requirements.txt +1 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/backend/src/db/database.ts +24 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/backend/src/db/db.ts +35 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/backend/src/db/index.ts +2 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/backend/src/db/migrations.ts +31 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/backend/src/db/schema.sql +8 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/backend/src/index.ts +44 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/backend/src/routes/todos.ts +155 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/backend/src/types/index.ts +35 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/frontend/src/App.css +384 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/frontend/src/App.tsx +81 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/frontend/src/api/todos.ts +57 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/frontend/src/components/ConfirmDialog.tsx +26 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/frontend/src/components/EmptyState.tsx +8 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/frontend/src/components/TodoForm.tsx +43 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/frontend/src/components/TodoItem.tsx +36 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/frontend/src/components/TodoList.tsx +27 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/frontend/src/hooks/useTodos.ts +81 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/frontend/src/index.css +48 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/frontend/src/main.tsx +10 -0
- package/templates/vault/loki-mode/examples/todo-app-generated/frontend/src/vite-env.d.ts +1 -0
- package/templates/vault/loki-mode/scripts/export-to-vibe-kanban.sh +178 -0
- package/templates/vault/loki-mode/scripts/loki-wrapper.sh +281 -0
- package/templates/vault/loki-mode/scripts/take-screenshots.js +55 -0
- package/templates/vault/matematico-tao/scripts/complexity_analyzer.py +544 -0
- package/templates/vault/matematico-tao/scripts/dependency_graph.py +538 -0
- package/templates/vault/mcp-builder/scripts/connections.py +151 -0
- package/templates/vault/mcp-builder/scripts/evaluation.py +373 -0
- package/templates/vault/mcp-builder/scripts/example_evaluation.xml +22 -0
- package/templates/vault/mcp-builder/scripts/requirements.txt +2 -0
- package/templates/vault/mobile-design/scripts/mobile_audit.py +670 -0
- package/templates/vault/notebooklm/scripts/__init__.py +81 -0
- package/templates/vault/notebooklm/scripts/ask_question.py +256 -0
- package/templates/vault/notebooklm/scripts/auth_manager.py +358 -0
- package/templates/vault/notebooklm/scripts/browser_session.py +255 -0
- package/templates/vault/notebooklm/scripts/browser_utils.py +107 -0
- package/templates/vault/notebooklm/scripts/cleanup_manager.py +302 -0
- package/templates/vault/notebooklm/scripts/config.py +44 -0
- package/templates/vault/notebooklm/scripts/notebook_manager.py +410 -0
- package/templates/vault/notebooklm/scripts/run.py +102 -0
- package/templates/vault/notebooklm/scripts/setup_environment.py +204 -0
- package/templates/vault/pdf/scripts/check_bounding_boxes.py +70 -0
- package/templates/vault/pdf/scripts/check_bounding_boxes_test.py +226 -0
- package/templates/vault/pdf/scripts/check_fillable_fields.py +12 -0
- package/templates/vault/pdf/scripts/convert_pdf_to_images.py +35 -0
- package/templates/vault/pdf/scripts/create_validation_image.py +41 -0
- package/templates/vault/pdf/scripts/extract_form_field_info.py +152 -0
- package/templates/vault/pdf/scripts/fill_fillable_fields.py +114 -0
- package/templates/vault/pdf/scripts/fill_pdf_form_with_annotations.py +108 -0
- package/templates/vault/pdf-official/scripts/check_bounding_boxes.py +70 -0
- package/templates/vault/pdf-official/scripts/check_bounding_boxes_test.py +226 -0
- package/templates/vault/pdf-official/scripts/check_fillable_fields.py +12 -0
- package/templates/vault/pdf-official/scripts/convert_pdf_to_images.py +35 -0
- package/templates/vault/pdf-official/scripts/create_validation_image.py +41 -0
- package/templates/vault/pdf-official/scripts/extract_form_field_info.py +152 -0
- package/templates/vault/pdf-official/scripts/fill_fillable_fields.py +114 -0
- package/templates/vault/pdf-official/scripts/fill_pdf_form_with_annotations.py +108 -0
- package/templates/vault/planning-with-files/scripts/check-complete.sh +44 -0
- package/templates/vault/planning-with-files/scripts/init-session.sh +120 -0
- package/templates/vault/pptx/ooxml/scripts/pack.py +159 -0
- package/templates/vault/pptx/ooxml/scripts/unpack.py +29 -0
- package/templates/vault/pptx/ooxml/scripts/validate.py +69 -0
- package/templates/vault/pptx/ooxml/scripts/validation/__init__.py +15 -0
- package/templates/vault/pptx/ooxml/scripts/validation/base.py +951 -0
- package/templates/vault/pptx/ooxml/scripts/validation/docx.py +274 -0
- package/templates/vault/pptx/ooxml/scripts/validation/pptx.py +315 -0
- package/templates/vault/pptx/ooxml/scripts/validation/redlining.py +279 -0
- package/templates/vault/pptx/scripts/html2pptx.js +979 -0
- package/templates/vault/pptx/scripts/inventory.py +1020 -0
- package/templates/vault/pptx/scripts/rearrange.py +231 -0
- package/templates/vault/pptx/scripts/replace.py +385 -0
- package/templates/vault/pptx/scripts/thumbnail.py +450 -0
- package/templates/vault/pptx-official/ooxml/scripts/pack.py +159 -0
- package/templates/vault/pptx-official/ooxml/scripts/unpack.py +29 -0
- package/templates/vault/pptx-official/ooxml/scripts/validate.py +69 -0
- package/templates/vault/pptx-official/ooxml/scripts/validation/__init__.py +15 -0
- package/templates/vault/pptx-official/ooxml/scripts/validation/base.py +951 -0
- package/templates/vault/pptx-official/ooxml/scripts/validation/docx.py +274 -0
- package/templates/vault/pptx-official/ooxml/scripts/validation/pptx.py +315 -0
- package/templates/vault/pptx-official/ooxml/scripts/validation/redlining.py +279 -0
- package/templates/vault/pptx-official/scripts/html2pptx.js +979 -0
- package/templates/vault/pptx-official/scripts/inventory.py +1020 -0
- package/templates/vault/pptx-official/scripts/rearrange.py +231 -0
- package/templates/vault/pptx-official/scripts/replace.py +385 -0
- package/templates/vault/pptx-official/scripts/thumbnail.py +450 -0
- package/templates/vault/product-manager-toolkit/scripts/customer_interview_analyzer.py +441 -0
- package/templates/vault/product-manager-toolkit/scripts/rice_prioritizer.py +296 -0
- package/templates/vault/prompt-engineering-patterns/scripts/optimize-prompt.py +279 -0
- package/templates/vault/scripts/.skill_cache.json +7538 -0
- package/templates/vault/scripts/skill_search.py +228 -0
- package/templates/vault/senior-architect/scripts/architecture_diagram_generator.py +114 -0
- package/templates/vault/senior-architect/scripts/dependency_analyzer.py +114 -0
- package/templates/vault/senior-architect/scripts/project_architect.py +114 -0
- package/templates/vault/shopify-development/scripts/requirements.txt +19 -0
- package/templates/vault/shopify-development/scripts/shopify_graphql.py +428 -0
- package/templates/vault/shopify-development/scripts/shopify_init.py +441 -0
- package/templates/vault/shopify-development/scripts/tests/test_shopify_init.py +379 -0
- package/templates/vault/skill-creator/scripts/init_skill.py +303 -0
- package/templates/vault/skill-creator/scripts/package_skill.py +110 -0
- package/templates/vault/skill-creator/scripts/quick_validate.py +95 -0
- package/templates/vault/skill-installer/scripts/detect_skills.py +318 -0
- package/templates/vault/skill-installer/scripts/install_skill.py +1708 -0
- package/templates/vault/skill-installer/scripts/package_skill.py +417 -0
- package/templates/vault/skill-installer/scripts/requirements.txt +1 -0
- package/templates/vault/skill-installer/scripts/validate_skill.py +430 -0
- package/templates/vault/skill-sentinel/scripts/analyzers/__init__.py +13 -0
- package/templates/vault/skill-sentinel/scripts/analyzers/code_quality.py +247 -0
- package/templates/vault/skill-sentinel/scripts/analyzers/cross_skill.py +134 -0
- package/templates/vault/skill-sentinel/scripts/analyzers/dependencies.py +121 -0
- package/templates/vault/skill-sentinel/scripts/analyzers/documentation.py +189 -0
- package/templates/vault/skill-sentinel/scripts/analyzers/governance_audit.py +153 -0
- package/templates/vault/skill-sentinel/scripts/analyzers/performance.py +164 -0
- package/templates/vault/skill-sentinel/scripts/analyzers/security.py +189 -0
- package/templates/vault/skill-sentinel/scripts/config.py +158 -0
- package/templates/vault/skill-sentinel/scripts/cost_optimizer.py +146 -0
- package/templates/vault/skill-sentinel/scripts/db.py +354 -0
- package/templates/vault/skill-sentinel/scripts/governance.py +58 -0
- package/templates/vault/skill-sentinel/scripts/recommender.py +228 -0
- package/templates/vault/skill-sentinel/scripts/report_generator.py +224 -0
- package/templates/vault/skill-sentinel/scripts/requirements.txt +1 -0
- package/templates/vault/skill-sentinel/scripts/run_audit.py +290 -0
- package/templates/vault/skill-sentinel/scripts/scanner.py +271 -0
- package/templates/vault/stability-ai/scripts/config.py +266 -0
- package/templates/vault/stability-ai/scripts/generate.py +687 -0
- package/templates/vault/stability-ai/scripts/requirements.txt +4 -0
- package/templates/vault/stability-ai/scripts/styles.py +174 -0
- package/templates/vault/telegram/assets/boilerplate/nodejs/src/bot-client.ts +86 -0
- package/templates/vault/telegram/assets/boilerplate/nodejs/src/handlers.ts +79 -0
- package/templates/vault/telegram/assets/boilerplate/nodejs/src/index.ts +32 -0
- package/templates/vault/telegram/scripts/send_message.py +143 -0
- package/templates/vault/telegram/scripts/setup_project.py +103 -0
- package/templates/vault/telegram/scripts/test_bot.py +144 -0
- package/templates/vault/typescript-expert/scripts/ts_diagnostic.py +203 -0
- package/templates/vault/ui-ux-pro-max/scripts/__pycache__/core.cpython-314.pyc +0 -0
- package/templates/vault/ui-ux-pro-max/scripts/__pycache__/design_system.cpython-314.pyc +0 -0
- package/templates/vault/ui-ux-pro-max/scripts/core.py +257 -0
- package/templates/vault/ui-ux-pro-max/scripts/design_system.py +487 -0
- package/templates/vault/ui-ux-pro-max/scripts/search.py +76 -0
- package/templates/vault/videodb/scripts/ws_listener.py +204 -0
- package/templates/vault/web-artifacts-builder/scripts/bundle-artifact.sh +54 -0
- package/templates/vault/web-artifacts-builder/scripts/init-artifact.sh +322 -0
- package/templates/vault/web-artifacts-builder/scripts/shadcn-components.tar.gz +0 -0
- package/templates/vault/webapp-testing/scripts/with_server.py +106 -0
- package/templates/vault/whatsapp-cloud-api/assets/boilerplate/nodejs/src/index.ts +125 -0
- package/templates/vault/whatsapp-cloud-api/assets/boilerplate/nodejs/src/template-manager.ts +67 -0
- package/templates/vault/whatsapp-cloud-api/assets/boilerplate/nodejs/src/types.ts +216 -0
- package/templates/vault/whatsapp-cloud-api/assets/boilerplate/nodejs/src/webhook-handler.ts +173 -0
- package/templates/vault/whatsapp-cloud-api/assets/boilerplate/nodejs/src/whatsapp-client.ts +193 -0
- package/templates/vault/whatsapp-cloud-api/scripts/send_test_message.py +137 -0
- package/templates/vault/whatsapp-cloud-api/scripts/setup_project.py +118 -0
- package/templates/vault/whatsapp-cloud-api/scripts/validate_config.py +190 -0
- package/templates/vault/youtube-summarizer/scripts/extract-transcript.py +65 -0
- package/templates/vault/youtube-summarizer/scripts/install-dependencies.sh +28 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import sqlite3 from 'sqlite3';
|
|
2
|
+
import path from 'path';
|
|
3
|
+
|
|
4
|
+
const dbPath = path.join(__dirname, '../../todos.db');
|
|
5
|
+
|
|
6
|
+
const db = new sqlite3.Database(dbPath, (err: Error | null) => {
|
|
7
|
+
if (err) {
|
|
8
|
+
console.error('Database connection error:', err);
|
|
9
|
+
} else {
|
|
10
|
+
console.log('Connected to SQLite database');
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
// Initialize database schema
|
|
15
|
+
export const initDatabase = (): Promise<void> => {
|
|
16
|
+
return new Promise((resolve, reject) => {
|
|
17
|
+
db.run(`
|
|
18
|
+
CREATE TABLE IF NOT EXISTS todos (
|
|
19
|
+
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
20
|
+
title TEXT NOT NULL,
|
|
21
|
+
completed BOOLEAN DEFAULT 0,
|
|
22
|
+
createdAt TEXT DEFAULT CURRENT_TIMESTAMP
|
|
23
|
+
)
|
|
24
|
+
`, (err: Error | null) => {
|
|
25
|
+
if (err) {
|
|
26
|
+
reject(err);
|
|
27
|
+
} else {
|
|
28
|
+
console.log('Database schema initialized');
|
|
29
|
+
resolve();
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export default db;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { getDatabase } from './database';
|
|
2
|
+
import fs from 'fs';
|
|
3
|
+
import path from 'path';
|
|
4
|
+
|
|
5
|
+
const schemaPath = path.join(__dirname, './schema.sql');
|
|
6
|
+
|
|
7
|
+
export function runMigrations(): void {
|
|
8
|
+
try {
|
|
9
|
+
const db = getDatabase();
|
|
10
|
+
const schema = fs.readFileSync(schemaPath, 'utf-8');
|
|
11
|
+
|
|
12
|
+
// Execute the schema SQL
|
|
13
|
+
db.exec(schema);
|
|
14
|
+
|
|
15
|
+
console.log('Database migrations completed successfully');
|
|
16
|
+
} catch (error) {
|
|
17
|
+
console.error('Error running migrations:', error);
|
|
18
|
+
throw error;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export function initializeDatabase(): void {
|
|
23
|
+
try {
|
|
24
|
+
runMigrations();
|
|
25
|
+
console.log('Database initialized and ready for use');
|
|
26
|
+
} catch (error) {
|
|
27
|
+
console.error('Failed to initialize database:', error);
|
|
28
|
+
throw error;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import express, { Express, Request, Response } from 'express';
|
|
2
|
+
import cors from 'cors';
|
|
3
|
+
import { initializeDatabase, closeDatabase } from './db';
|
|
4
|
+
import todosRouter from './routes/todos';
|
|
5
|
+
|
|
6
|
+
const app: Express = express();
|
|
7
|
+
const PORT = process.env.PORT || 3001;
|
|
8
|
+
|
|
9
|
+
// Middleware
|
|
10
|
+
app.use(cors());
|
|
11
|
+
app.use(express.json());
|
|
12
|
+
|
|
13
|
+
// Initialize database on startup
|
|
14
|
+
try {
|
|
15
|
+
initializeDatabase();
|
|
16
|
+
} catch (error) {
|
|
17
|
+
console.error('Failed to initialize database:', error);
|
|
18
|
+
process.exit(1);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// Routes
|
|
22
|
+
app.use('/api', todosRouter);
|
|
23
|
+
|
|
24
|
+
// Health check endpoint
|
|
25
|
+
app.get('/health', (_req: Request, res: Response) => {
|
|
26
|
+
res.json({ status: 'ok', message: 'Backend server is running' });
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
// Start server
|
|
30
|
+
const server = app.listen(PORT, () => {
|
|
31
|
+
console.log(`Server is running on port ${PORT}`);
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
// Graceful shutdown
|
|
35
|
+
process.on('SIGINT', () => {
|
|
36
|
+
console.log('Shutting down gracefully...');
|
|
37
|
+
closeDatabase();
|
|
38
|
+
server.close(() => {
|
|
39
|
+
console.log('Server closed');
|
|
40
|
+
process.exit(0);
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
export default app;
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { Router, Request, Response } from 'express';
|
|
2
|
+
import db from '../db/db';
|
|
3
|
+
import { ApiResponse, Todo } from '../types/index';
|
|
4
|
+
|
|
5
|
+
const router = Router();
|
|
6
|
+
|
|
7
|
+
// GET /api/todos - Retrieve all todos
|
|
8
|
+
router.get('/todos', (_req: Request, res: Response): void => {
|
|
9
|
+
db.all('SELECT * FROM todos ORDER BY createdAt DESC', (err: any, rows: Todo[]) => {
|
|
10
|
+
if (err) {
|
|
11
|
+
const errorResponse: ApiResponse<null> = {
|
|
12
|
+
success: false,
|
|
13
|
+
error: 'Database error',
|
|
14
|
+
};
|
|
15
|
+
res.status(500).json(errorResponse);
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const successResponse: ApiResponse<Todo[]> = {
|
|
20
|
+
success: true,
|
|
21
|
+
data: rows || [],
|
|
22
|
+
};
|
|
23
|
+
res.json(successResponse);
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
// POST /api/todos - Create new todo
|
|
28
|
+
router.post('/todos', (req: Request, res: Response): void => {
|
|
29
|
+
const { title } = req.body;
|
|
30
|
+
|
|
31
|
+
// Validation
|
|
32
|
+
if (!title || typeof title !== 'string' || title.trim() === '') {
|
|
33
|
+
res.status(400).json({ error: 'Title is required and must be a non-empty string' });
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
const trimmedTitle = title.trim();
|
|
38
|
+
const now = new Date().toISOString();
|
|
39
|
+
|
|
40
|
+
db.run(
|
|
41
|
+
'INSERT INTO todos (title, completed, createdAt, updatedAt) VALUES (?, ?, ?, ?)',
|
|
42
|
+
[trimmedTitle, 0, now, now],
|
|
43
|
+
function(this: any, err: Error | null) {
|
|
44
|
+
if (err) {
|
|
45
|
+
res.status(500).json({ error: 'Database error', details: err.message });
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// Return created todo
|
|
50
|
+
db.get('SELECT * FROM todos WHERE id = ?', [this.lastID], (err: any, row: Todo) => {
|
|
51
|
+
if (err) {
|
|
52
|
+
res.status(500).json({ error: 'Database error', details: err.message });
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const successResponse: ApiResponse<Todo> = {
|
|
57
|
+
success: true,
|
|
58
|
+
data: row,
|
|
59
|
+
};
|
|
60
|
+
res.status(201).json(successResponse);
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
// PATCH /api/todos/:id - Update todo completion status
|
|
67
|
+
router.patch('/todos/:id', (req: Request, res: Response): void => {
|
|
68
|
+
const { id } = req.params;
|
|
69
|
+
const { completed } = req.body;
|
|
70
|
+
|
|
71
|
+
// Validation
|
|
72
|
+
if (typeof completed !== 'boolean') {
|
|
73
|
+
res.status(400).json({ error: 'Completed must be a boolean value' });
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// Check if todo exists
|
|
78
|
+
db.get('SELECT * FROM todos WHERE id = ?', [id], (err: any, row: Todo) => {
|
|
79
|
+
if (err) {
|
|
80
|
+
res.status(500).json({ error: 'Database error', details: err.message });
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
if (!row) {
|
|
84
|
+
res.status(404).json({ error: 'Todo not found' });
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
const now = new Date().toISOString();
|
|
89
|
+
|
|
90
|
+
// Update todo
|
|
91
|
+
db.run(
|
|
92
|
+
'UPDATE todos SET completed = ?, updatedAt = ? WHERE id = ?',
|
|
93
|
+
[completed ? 1 : 0, now, id],
|
|
94
|
+
function(err: Error | null) {
|
|
95
|
+
if (err) {
|
|
96
|
+
res.status(500).json({ error: 'Database error', details: err.message });
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// Return updated todo
|
|
101
|
+
db.get('SELECT * FROM todos WHERE id = ?', [id], (err: any, updatedRow: Todo) => {
|
|
102
|
+
if (err) {
|
|
103
|
+
res.status(500).json({ error: 'Database error', details: err.message });
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
const successResponse: ApiResponse<Todo> = {
|
|
108
|
+
success: true,
|
|
109
|
+
data: updatedRow,
|
|
110
|
+
};
|
|
111
|
+
res.json(successResponse);
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
);
|
|
115
|
+
});
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
// DELETE /api/todos/:id - Delete todo by id
|
|
119
|
+
router.delete('/todos/:id', (req: Request, res: Response): void => {
|
|
120
|
+
const { id } = req.params;
|
|
121
|
+
|
|
122
|
+
// Validation - check if id is a valid number
|
|
123
|
+
if (!id || isNaN(Number(id))) {
|
|
124
|
+
res.status(400).json({ error: 'Invalid id parameter' });
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
// Check if todo exists
|
|
129
|
+
db.get('SELECT * FROM todos WHERE id = ?', [id], (err: any, row: Todo) => {
|
|
130
|
+
if (err) {
|
|
131
|
+
res.status(500).json({ error: 'Database error', details: err.message });
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
if (!row) {
|
|
135
|
+
res.status(404).json({ error: 'Todo not found' });
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
// Delete todo
|
|
140
|
+
db.run(
|
|
141
|
+
'DELETE FROM todos WHERE id = ?',
|
|
142
|
+
[id],
|
|
143
|
+
function(err: Error | null) {
|
|
144
|
+
if (err) {
|
|
145
|
+
res.status(500).json({ error: 'Database error', details: err.message });
|
|
146
|
+
return;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
res.json({ message: 'Todo deleted successfully' });
|
|
150
|
+
}
|
|
151
|
+
);
|
|
152
|
+
});
|
|
153
|
+
});
|
|
154
|
+
|
|
155
|
+
export default router;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// Todo item types
|
|
2
|
+
export interface Todo {
|
|
3
|
+
id: number;
|
|
4
|
+
title: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
completed: boolean;
|
|
7
|
+
createdAt: string;
|
|
8
|
+
updatedAt: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// API response types
|
|
12
|
+
export interface ApiResponse<T> {
|
|
13
|
+
success: boolean;
|
|
14
|
+
data?: T;
|
|
15
|
+
error?: string;
|
|
16
|
+
message?: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// Request body types
|
|
20
|
+
export interface CreateTodoRequest {
|
|
21
|
+
title: string;
|
|
22
|
+
description?: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface UpdateTodoRequest {
|
|
26
|
+
title?: string;
|
|
27
|
+
description?: string;
|
|
28
|
+
completed?: boolean;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// Database types
|
|
32
|
+
export interface DatabaseConfig {
|
|
33
|
+
path: string;
|
|
34
|
+
readonly?: boolean;
|
|
35
|
+
}
|
|
@@ -0,0 +1,384 @@
|
|
|
1
|
+
* {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
margin: 0;
|
|
4
|
+
padding: 0;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
html {
|
|
8
|
+
scroll-behavior: smooth;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
body {
|
|
12
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
|
|
13
|
+
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
|
|
14
|
+
sans-serif;
|
|
15
|
+
background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
|
|
16
|
+
min-height: 100vh;
|
|
17
|
+
line-height: 1.6;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.app {
|
|
21
|
+
max-width: 600px;
|
|
22
|
+
margin: 0 auto;
|
|
23
|
+
padding: 20px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.app-header {
|
|
27
|
+
text-align: center;
|
|
28
|
+
margin-bottom: 30px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.app-header h1 {
|
|
32
|
+
color: #333;
|
|
33
|
+
font-size: 2.5rem;
|
|
34
|
+
font-weight: 600;
|
|
35
|
+
letter-spacing: -0.5px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.app-main {
|
|
39
|
+
background: white;
|
|
40
|
+
border-radius: 12px;
|
|
41
|
+
padding: 24px;
|
|
42
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* TodoForm */
|
|
46
|
+
.todo-form {
|
|
47
|
+
display: flex;
|
|
48
|
+
gap: 12px;
|
|
49
|
+
margin-bottom: 24px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.todo-input {
|
|
53
|
+
flex: 1;
|
|
54
|
+
padding: 12px 16px;
|
|
55
|
+
border: 2px solid #e0e0e0;
|
|
56
|
+
border-radius: 8px;
|
|
57
|
+
font-size: 16px;
|
|
58
|
+
transition: all 0.2s ease;
|
|
59
|
+
font-family: inherit;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.todo-input:focus {
|
|
63
|
+
outline: none;
|
|
64
|
+
border-color: #4CAF50;
|
|
65
|
+
box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.todo-input:disabled {
|
|
69
|
+
background-color: #f5f5f5;
|
|
70
|
+
color: #999;
|
|
71
|
+
cursor: not-allowed;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.add-button {
|
|
75
|
+
padding: 12px 24px;
|
|
76
|
+
background-color: #4CAF50;
|
|
77
|
+
color: white;
|
|
78
|
+
border: none;
|
|
79
|
+
border-radius: 8px;
|
|
80
|
+
font-size: 16px;
|
|
81
|
+
font-weight: 500;
|
|
82
|
+
cursor: pointer;
|
|
83
|
+
transition: all 0.2s ease;
|
|
84
|
+
white-space: nowrap;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.add-button:hover:not(:disabled) {
|
|
88
|
+
background-color: #45a049;
|
|
89
|
+
transform: translateY(-1px);
|
|
90
|
+
box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.add-button:active:not(:disabled) {
|
|
94
|
+
transform: translateY(0);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.add-button:disabled {
|
|
98
|
+
background-color: #ccc;
|
|
99
|
+
cursor: not-allowed;
|
|
100
|
+
opacity: 0.6;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/* TodoList */
|
|
104
|
+
.todo-list {
|
|
105
|
+
display: flex;
|
|
106
|
+
flex-direction: column;
|
|
107
|
+
gap: 12px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/* TodoItem */
|
|
111
|
+
.todo-item {
|
|
112
|
+
display: flex;
|
|
113
|
+
justify-content: space-between;
|
|
114
|
+
align-items: center;
|
|
115
|
+
padding: 16px;
|
|
116
|
+
background: #f9f9f9;
|
|
117
|
+
border: 1px solid #e8e8e8;
|
|
118
|
+
border-radius: 8px;
|
|
119
|
+
transition: all 0.2s ease;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.todo-item:hover {
|
|
123
|
+
background: #f0f0f0;
|
|
124
|
+
border-color: #d0d0d0;
|
|
125
|
+
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.todo-content {
|
|
129
|
+
display: flex;
|
|
130
|
+
align-items: center;
|
|
131
|
+
gap: 12px;
|
|
132
|
+
flex: 1;
|
|
133
|
+
min-width: 0;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.todo-checkbox {
|
|
137
|
+
width: 20px;
|
|
138
|
+
height: 20px;
|
|
139
|
+
cursor: pointer;
|
|
140
|
+
accent-color: #4CAF50;
|
|
141
|
+
flex-shrink: 0;
|
|
142
|
+
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.todo-checkbox:hover {
|
|
146
|
+
transform: scale(1.15);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.todo-checkbox:focus {
|
|
150
|
+
outline: 2px solid #4CAF50;
|
|
151
|
+
outline-offset: 2px;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.todo-title {
|
|
155
|
+
font-size: 16px;
|
|
156
|
+
color: #333;
|
|
157
|
+
word-break: break-word;
|
|
158
|
+
transition: all 0.2s ease;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.todo-title.completed {
|
|
162
|
+
text-decoration: line-through;
|
|
163
|
+
color: #999;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.delete-button {
|
|
167
|
+
padding: 8px 16px;
|
|
168
|
+
background-color: #f44336;
|
|
169
|
+
color: white;
|
|
170
|
+
border: none;
|
|
171
|
+
border-radius: 6px;
|
|
172
|
+
font-size: 14px;
|
|
173
|
+
cursor: pointer;
|
|
174
|
+
transition: all 0.2s ease;
|
|
175
|
+
white-space: nowrap;
|
|
176
|
+
flex-shrink: 0;
|
|
177
|
+
margin-left: 8px;
|
|
178
|
+
font-weight: 500;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.delete-button:hover {
|
|
182
|
+
background-color: #da190b;
|
|
183
|
+
transform: translateY(-1px);
|
|
184
|
+
box-shadow: 0 4px 8px rgba(244, 67, 54, 0.3);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.delete-button:active {
|
|
188
|
+
transform: translateY(0);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.delete-button:focus {
|
|
192
|
+
outline: 2px solid #f44336;
|
|
193
|
+
outline-offset: 2px;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/* EmptyState */
|
|
197
|
+
.empty-state {
|
|
198
|
+
text-align: center;
|
|
199
|
+
padding: 48px 24px;
|
|
200
|
+
color: #999;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.empty-message {
|
|
204
|
+
font-size: 20px;
|
|
205
|
+
font-weight: 500;
|
|
206
|
+
color: #666;
|
|
207
|
+
margin-bottom: 8px;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.empty-hint {
|
|
211
|
+
font-size: 14px;
|
|
212
|
+
color: #999;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/* Loading State */
|
|
216
|
+
.loading {
|
|
217
|
+
text-align: center;
|
|
218
|
+
padding: 40px 20px;
|
|
219
|
+
color: #666;
|
|
220
|
+
font-size: 16px;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/* Error Message */
|
|
224
|
+
.error-message {
|
|
225
|
+
padding: 12px 16px;
|
|
226
|
+
background-color: #ffebee;
|
|
227
|
+
color: #c62828;
|
|
228
|
+
border: 1px solid #ef5350;
|
|
229
|
+
border-radius: 8px;
|
|
230
|
+
margin-bottom: 16px;
|
|
231
|
+
font-size: 14px;
|
|
232
|
+
text-align: center;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/* ConfirmDialog */
|
|
236
|
+
.dialog-overlay {
|
|
237
|
+
position: fixed;
|
|
238
|
+
top: 0;
|
|
239
|
+
left: 0;
|
|
240
|
+
right: 0;
|
|
241
|
+
bottom: 0;
|
|
242
|
+
background: rgba(0, 0, 0, 0.5);
|
|
243
|
+
display: flex;
|
|
244
|
+
align-items: center;
|
|
245
|
+
justify-content: center;
|
|
246
|
+
z-index: 1000;
|
|
247
|
+
animation: fadeIn 0.2s ease;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
@keyframes fadeIn {
|
|
251
|
+
from {
|
|
252
|
+
opacity: 0;
|
|
253
|
+
}
|
|
254
|
+
to {
|
|
255
|
+
opacity: 1;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.dialog-content {
|
|
260
|
+
background: white;
|
|
261
|
+
padding: 24px;
|
|
262
|
+
border-radius: 12px;
|
|
263
|
+
max-width: 400px;
|
|
264
|
+
width: 90%;
|
|
265
|
+
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
|
|
266
|
+
animation: slideUp 0.2s ease;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
@keyframes slideUp {
|
|
270
|
+
from {
|
|
271
|
+
transform: translateY(10px);
|
|
272
|
+
opacity: 0;
|
|
273
|
+
}
|
|
274
|
+
to {
|
|
275
|
+
transform: translateY(0);
|
|
276
|
+
opacity: 1;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.dialog-message {
|
|
281
|
+
margin-bottom: 20px;
|
|
282
|
+
font-size: 16px;
|
|
283
|
+
color: #333;
|
|
284
|
+
line-height: 1.5;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.dialog-buttons {
|
|
288
|
+
display: flex;
|
|
289
|
+
gap: 12px;
|
|
290
|
+
justify-content: flex-end;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.cancel-button {
|
|
294
|
+
padding: 10px 20px;
|
|
295
|
+
background-color: #f0f0f0;
|
|
296
|
+
color: #333;
|
|
297
|
+
border: none;
|
|
298
|
+
border-radius: 6px;
|
|
299
|
+
cursor: pointer;
|
|
300
|
+
font-size: 14px;
|
|
301
|
+
font-weight: 500;
|
|
302
|
+
transition: all 0.2s ease;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.cancel-button:hover {
|
|
306
|
+
background-color: #e0e0e0;
|
|
307
|
+
transform: translateY(-1px);
|
|
308
|
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.cancel-button:focus {
|
|
312
|
+
outline: 2px solid #333;
|
|
313
|
+
outline-offset: 2px;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.confirm-button {
|
|
317
|
+
padding: 10px 20px;
|
|
318
|
+
background-color: #f44336;
|
|
319
|
+
color: white;
|
|
320
|
+
border: none;
|
|
321
|
+
border-radius: 6px;
|
|
322
|
+
cursor: pointer;
|
|
323
|
+
font-size: 14px;
|
|
324
|
+
font-weight: 500;
|
|
325
|
+
transition: all 0.2s ease;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.confirm-button:hover {
|
|
329
|
+
background-color: #da190b;
|
|
330
|
+
transform: translateY(-1px);
|
|
331
|
+
box-shadow: 0 4px 8px rgba(244, 67, 54, 0.3);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.confirm-button:active {
|
|
335
|
+
transform: translateY(0);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.confirm-button:focus {
|
|
339
|
+
outline: 2px solid #f44336;
|
|
340
|
+
outline-offset: 2px;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
/* Responsive Design */
|
|
344
|
+
@media (max-width: 640px) {
|
|
345
|
+
.app {
|
|
346
|
+
padding: 12px;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.app-header h1 {
|
|
350
|
+
font-size: 2rem;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.app-main {
|
|
354
|
+
padding: 16px;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.todo-form {
|
|
358
|
+
flex-direction: column;
|
|
359
|
+
gap: 10px;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.add-button {
|
|
363
|
+
width: 100%;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.todo-item {
|
|
367
|
+
flex-direction: column;
|
|
368
|
+
align-items: flex-start;
|
|
369
|
+
gap: 12px;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.todo-content {
|
|
373
|
+
width: 100%;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.delete-button {
|
|
377
|
+
width: 100%;
|
|
378
|
+
margin-left: 0;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.dialog-content {
|
|
382
|
+
width: 95%;
|
|
383
|
+
}
|
|
384
|
+
}
|