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,281 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# Loki Mode Wrapper Script
|
|
3
|
+
# Provides true autonomy by auto-resuming on rate limits or interruptions
|
|
4
|
+
#
|
|
5
|
+
# How it works:
|
|
6
|
+
# 1. Launches Claude Code with Loki Mode prompt
|
|
7
|
+
# 2. Monitors the process - when Claude exits, checks exit code
|
|
8
|
+
# 3. On rate limit (exit code != 0), waits with exponential backoff
|
|
9
|
+
# 4. Restarts automatically, telling Claude to resume from checkpoint
|
|
10
|
+
# 5. Continues until successful completion or max retries exceeded
|
|
11
|
+
#
|
|
12
|
+
# Usage:
|
|
13
|
+
# ./scripts/loki-wrapper.sh [PRD_PATH]
|
|
14
|
+
# ./scripts/loki-wrapper.sh ./docs/requirements.md
|
|
15
|
+
# ./scripts/loki-wrapper.sh # Interactive mode
|
|
16
|
+
|
|
17
|
+
set -uo pipefail
|
|
18
|
+
|
|
19
|
+
# Configuration
|
|
20
|
+
MAX_RETRIES=${LOKI_MAX_RETRIES:-50} # Maximum retry attempts
|
|
21
|
+
BASE_WAIT=${LOKI_BASE_WAIT:-60} # Base wait time in seconds
|
|
22
|
+
MAX_WAIT=${LOKI_MAX_WAIT:-3600} # Max wait time (1 hour)
|
|
23
|
+
LOG_FILE=${LOKI_LOG_FILE:-.loki/wrapper.log} # Log file location
|
|
24
|
+
STATE_FILE=${LOKI_STATE_FILE:-.loki/wrapper-state.json}
|
|
25
|
+
|
|
26
|
+
# Colors
|
|
27
|
+
RED='\033[0;31m'
|
|
28
|
+
GREEN='\033[0;32m'
|
|
29
|
+
YELLOW='\033[1;33m'
|
|
30
|
+
BLUE='\033[0;34m'
|
|
31
|
+
NC='\033[0m'
|
|
32
|
+
|
|
33
|
+
log() {
|
|
34
|
+
local level="$1"
|
|
35
|
+
shift
|
|
36
|
+
local msg="$*"
|
|
37
|
+
local timestamp=$(date '+%Y-%m-%d %H:%M:%S')
|
|
38
|
+
echo -e "[$timestamp] [$level] $msg" | tee -a "$LOG_FILE"
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
log_info() { log "INFO" "$*"; }
|
|
42
|
+
log_warn() { log "${YELLOW}WARN${NC}" "$*"; }
|
|
43
|
+
log_error() { log "${RED}ERROR${NC}" "$*"; }
|
|
44
|
+
log_success() { log "${GREEN}SUCCESS${NC}" "$*"; }
|
|
45
|
+
|
|
46
|
+
# Ensure .loki directory exists
|
|
47
|
+
mkdir -p .loki
|
|
48
|
+
|
|
49
|
+
# Parse arguments
|
|
50
|
+
PRD_PATH="${1:-}"
|
|
51
|
+
INITIAL_PROMPT=""
|
|
52
|
+
|
|
53
|
+
if [ -n "$PRD_PATH" ]; then
|
|
54
|
+
if [ -f "$PRD_PATH" ]; then
|
|
55
|
+
INITIAL_PROMPT="Loki Mode with PRD at $PRD_PATH"
|
|
56
|
+
else
|
|
57
|
+
log_error "PRD file not found: $PRD_PATH"
|
|
58
|
+
exit 1
|
|
59
|
+
fi
|
|
60
|
+
else
|
|
61
|
+
INITIAL_PROMPT="Loki Mode"
|
|
62
|
+
fi
|
|
63
|
+
|
|
64
|
+
# Save wrapper state
|
|
65
|
+
save_state() {
|
|
66
|
+
local retry_count="$1"
|
|
67
|
+
local status="$2"
|
|
68
|
+
local last_exit_code="$3"
|
|
69
|
+
|
|
70
|
+
cat > "$STATE_FILE" << EOF
|
|
71
|
+
{
|
|
72
|
+
"retryCount": $retry_count,
|
|
73
|
+
"status": "$status",
|
|
74
|
+
"lastExitCode": $last_exit_code,
|
|
75
|
+
"lastRun": "$(date -u +%Y-%m-%dT%H:%M:%SZ)",
|
|
76
|
+
"prdPath": "$PRD_PATH",
|
|
77
|
+
"pid": $$
|
|
78
|
+
}
|
|
79
|
+
EOF
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
# Load wrapper state if resuming
|
|
83
|
+
load_state() {
|
|
84
|
+
if [ -f "$STATE_FILE" ]; then
|
|
85
|
+
if command -v python3 &> /dev/null; then
|
|
86
|
+
RETRY_COUNT=$(python3 -c "import json; print(json.load(open('$STATE_FILE')).get('retryCount', 0))" 2>/dev/null || echo "0")
|
|
87
|
+
else
|
|
88
|
+
RETRY_COUNT=0
|
|
89
|
+
fi
|
|
90
|
+
else
|
|
91
|
+
RETRY_COUNT=0
|
|
92
|
+
fi
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
# Calculate wait time with exponential backoff and jitter
|
|
96
|
+
calculate_wait() {
|
|
97
|
+
local retry="$1"
|
|
98
|
+
local wait_time=$((BASE_WAIT * (2 ** retry)))
|
|
99
|
+
|
|
100
|
+
# Add jitter (0-30 seconds)
|
|
101
|
+
local jitter=$((RANDOM % 30))
|
|
102
|
+
wait_time=$((wait_time + jitter))
|
|
103
|
+
|
|
104
|
+
# Cap at max wait
|
|
105
|
+
if [ $wait_time -gt $MAX_WAIT ]; then
|
|
106
|
+
wait_time=$MAX_WAIT
|
|
107
|
+
fi
|
|
108
|
+
|
|
109
|
+
echo $wait_time
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
# Check if this looks like a rate limit error
|
|
113
|
+
is_rate_limit() {
|
|
114
|
+
local exit_code="$1"
|
|
115
|
+
|
|
116
|
+
# Exit code 1 with rate limit indicators in log
|
|
117
|
+
if [ $exit_code -ne 0 ]; then
|
|
118
|
+
# Check recent .loki logs for rate limit indicators
|
|
119
|
+
if [ -d ".loki/logs" ]; then
|
|
120
|
+
if grep -r -l "rate.limit\|429\|too.many.requests\|quota.exceeded" .loki/logs/*.log 2>/dev/null | head -1 | grep -q .; then
|
|
121
|
+
return 0
|
|
122
|
+
fi
|
|
123
|
+
fi
|
|
124
|
+
# Assume rate limit on non-zero exit (conservative approach)
|
|
125
|
+
return 0
|
|
126
|
+
fi
|
|
127
|
+
return 1
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
# Check if Loki Mode completed successfully
|
|
131
|
+
is_completed() {
|
|
132
|
+
# Check for completion markers
|
|
133
|
+
if [ -f ".loki/state/orchestrator.json" ]; then
|
|
134
|
+
if command -v python3 &> /dev/null; then
|
|
135
|
+
local phase=$(python3 -c "import json; print(json.load(open('.loki/state/orchestrator.json')).get('currentPhase', ''))" 2>/dev/null || echo "")
|
|
136
|
+
if [ "$phase" = "COMPLETED" ] || [ "$phase" = "complete" ]; then
|
|
137
|
+
return 0
|
|
138
|
+
fi
|
|
139
|
+
fi
|
|
140
|
+
fi
|
|
141
|
+
|
|
142
|
+
# Check for success file
|
|
143
|
+
if [ -f ".loki/COMPLETED" ]; then
|
|
144
|
+
return 0
|
|
145
|
+
fi
|
|
146
|
+
|
|
147
|
+
return 1
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
# Build the resume prompt
|
|
151
|
+
build_resume_prompt() {
|
|
152
|
+
local retry="$1"
|
|
153
|
+
|
|
154
|
+
if [ $retry -eq 0 ]; then
|
|
155
|
+
echo "$INITIAL_PROMPT"
|
|
156
|
+
else
|
|
157
|
+
# Resume from checkpoint
|
|
158
|
+
if [ -n "$PRD_PATH" ]; then
|
|
159
|
+
echo "Loki Mode - Resume from checkpoint. PRD at $PRD_PATH. This is retry #$retry after rate limit. Check .loki/state/ for current progress and continue from where we left off."
|
|
160
|
+
else
|
|
161
|
+
echo "Loki Mode - Resume from checkpoint. This is retry #$retry after rate limit. Check .loki/state/ for current progress and continue from where we left off."
|
|
162
|
+
fi
|
|
163
|
+
fi
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
# Main execution loop
|
|
167
|
+
main() {
|
|
168
|
+
log_info "=========================================="
|
|
169
|
+
log_info "Loki Mode Autonomous Wrapper"
|
|
170
|
+
log_info "=========================================="
|
|
171
|
+
log_info "PRD: ${PRD_PATH:-Interactive}"
|
|
172
|
+
log_info "Max retries: $MAX_RETRIES"
|
|
173
|
+
log_info "Base wait: ${BASE_WAIT}s"
|
|
174
|
+
log_info ""
|
|
175
|
+
|
|
176
|
+
load_state
|
|
177
|
+
local retry=$RETRY_COUNT
|
|
178
|
+
|
|
179
|
+
while [ $retry -lt $MAX_RETRIES ]; do
|
|
180
|
+
local prompt=$(build_resume_prompt $retry)
|
|
181
|
+
|
|
182
|
+
log_info "Attempt $((retry + 1))/$MAX_RETRIES"
|
|
183
|
+
log_info "Prompt: $prompt"
|
|
184
|
+
save_state $retry "running" 0
|
|
185
|
+
|
|
186
|
+
# Launch Claude Code
|
|
187
|
+
# The process exits when:
|
|
188
|
+
# 1. User types /exit or Ctrl+C (exit 0)
|
|
189
|
+
# 2. Rate limit hit (exit 1 or other non-zero)
|
|
190
|
+
# 3. Crash or error (non-zero exit)
|
|
191
|
+
# 4. Session completes naturally (exit 0)
|
|
192
|
+
|
|
193
|
+
local start_time=$(date +%s)
|
|
194
|
+
|
|
195
|
+
# Run Claude Code with the prompt
|
|
196
|
+
# Using -p for non-interactive prompt mode
|
|
197
|
+
set +e
|
|
198
|
+
claude --dangerously-skip-permissions -p "$prompt" 2>&1 | tee -a "$LOG_FILE"
|
|
199
|
+
local exit_code=${PIPESTATUS[0]}
|
|
200
|
+
set -e
|
|
201
|
+
|
|
202
|
+
local end_time=$(date +%s)
|
|
203
|
+
local duration=$((end_time - start_time))
|
|
204
|
+
|
|
205
|
+
log_info "Claude exited with code $exit_code after ${duration}s"
|
|
206
|
+
save_state $retry "exited" $exit_code
|
|
207
|
+
|
|
208
|
+
# Check for successful completion
|
|
209
|
+
if [ $exit_code -eq 0 ]; then
|
|
210
|
+
if is_completed; then
|
|
211
|
+
log_success "Loki Mode completed successfully!"
|
|
212
|
+
save_state $retry "completed" 0
|
|
213
|
+
exit 0
|
|
214
|
+
else
|
|
215
|
+
log_info "Claude exited cleanly but work may not be complete"
|
|
216
|
+
log_info "Checking if we should continue..."
|
|
217
|
+
|
|
218
|
+
# If session was short, might be intentional exit
|
|
219
|
+
if [ $duration -lt 30 ]; then
|
|
220
|
+
log_warn "Session was very short (${duration}s). User may have exited intentionally."
|
|
221
|
+
log_info "Waiting 10 seconds before checking again..."
|
|
222
|
+
sleep 10
|
|
223
|
+
|
|
224
|
+
# Re-check completion
|
|
225
|
+
if is_completed; then
|
|
226
|
+
log_success "Loki Mode completed!"
|
|
227
|
+
exit 0
|
|
228
|
+
fi
|
|
229
|
+
fi
|
|
230
|
+
fi
|
|
231
|
+
fi
|
|
232
|
+
|
|
233
|
+
# Handle non-zero exit (likely rate limit)
|
|
234
|
+
if is_rate_limit $exit_code; then
|
|
235
|
+
local wait_time=$(calculate_wait $retry)
|
|
236
|
+
log_warn "Rate limit detected. Waiting ${wait_time}s before retry..."
|
|
237
|
+
|
|
238
|
+
# Show countdown
|
|
239
|
+
local remaining=$wait_time
|
|
240
|
+
while [ $remaining -gt 0 ]; do
|
|
241
|
+
printf "\r${YELLOW}Resuming in ${remaining}s...${NC} "
|
|
242
|
+
sleep 10
|
|
243
|
+
remaining=$((remaining - 10))
|
|
244
|
+
done
|
|
245
|
+
echo ""
|
|
246
|
+
|
|
247
|
+
((retry++))
|
|
248
|
+
else
|
|
249
|
+
# Non-rate-limit error
|
|
250
|
+
log_error "Non-rate-limit error (exit code: $exit_code)"
|
|
251
|
+
|
|
252
|
+
# Still retry, but with shorter wait
|
|
253
|
+
local wait_time=$((BASE_WAIT / 2))
|
|
254
|
+
log_info "Retrying in ${wait_time}s..."
|
|
255
|
+
sleep $wait_time
|
|
256
|
+
((retry++))
|
|
257
|
+
fi
|
|
258
|
+
done
|
|
259
|
+
|
|
260
|
+
log_error "Max retries ($MAX_RETRIES) exceeded. Giving up."
|
|
261
|
+
save_state $retry "failed" 1
|
|
262
|
+
exit 1
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
# Trap signals for clean shutdown
|
|
266
|
+
cleanup() {
|
|
267
|
+
log_warn "Received interrupt signal. Saving state..."
|
|
268
|
+
save_state $RETRY_COUNT "interrupted" 130
|
|
269
|
+
exit 130
|
|
270
|
+
}
|
|
271
|
+
trap cleanup INT TERM
|
|
272
|
+
|
|
273
|
+
# Check for claude command
|
|
274
|
+
if ! command -v claude &> /dev/null; then
|
|
275
|
+
log_error "Claude Code CLI not found. Please install it first."
|
|
276
|
+
log_info "Visit: https://claude.ai/code"
|
|
277
|
+
exit 1
|
|
278
|
+
fi
|
|
279
|
+
|
|
280
|
+
# Run main
|
|
281
|
+
main "$@"
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
const puppeteer = require('puppeteer');
|
|
3
|
+
const path = require('path');
|
|
4
|
+
const fs = require('fs');
|
|
5
|
+
|
|
6
|
+
async function takeScreenshots() {
|
|
7
|
+
const dashboardPath = path.resolve(__dirname, '../autonomy/.loki/dashboard/index.html');
|
|
8
|
+
const screenshotsDir = path.resolve(__dirname, '../docs/screenshots');
|
|
9
|
+
|
|
10
|
+
// Ensure screenshots directory exists
|
|
11
|
+
if (!fs.existsSync(screenshotsDir)) {
|
|
12
|
+
fs.mkdirSync(screenshotsDir, { recursive: true });
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
console.log('Launching browser...');
|
|
16
|
+
const browser = await puppeteer.launch({
|
|
17
|
+
headless: 'new',
|
|
18
|
+
args: ['--no-sandbox', '--disable-setuid-sandbox']
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
const page = await browser.newPage();
|
|
22
|
+
|
|
23
|
+
// Set viewport for consistent screenshots
|
|
24
|
+
await page.setViewport({ width: 1400, height: 900 });
|
|
25
|
+
|
|
26
|
+
console.log('Loading dashboard...');
|
|
27
|
+
await page.goto(`file://${dashboardPath}`, { waitUntil: 'networkidle0' });
|
|
28
|
+
|
|
29
|
+
// Wait for content to render
|
|
30
|
+
await page.waitForSelector('#agents-grid');
|
|
31
|
+
await page.waitForSelector('#queue-columns');
|
|
32
|
+
|
|
33
|
+
// Screenshot 1: Agents section
|
|
34
|
+
console.log('Taking agents screenshot...');
|
|
35
|
+
const agentsSection = await page.$('#agents-section');
|
|
36
|
+
await agentsSection.screenshot({
|
|
37
|
+
path: path.join(screenshotsDir, 'dashboard-agents.png'),
|
|
38
|
+
type: 'png'
|
|
39
|
+
});
|
|
40
|
+
console.log('Saved: dashboard-agents.png');
|
|
41
|
+
|
|
42
|
+
// Screenshot 2: Task queue section
|
|
43
|
+
console.log('Taking tasks screenshot...');
|
|
44
|
+
const queueSection = await page.$('#queue-section');
|
|
45
|
+
await queueSection.screenshot({
|
|
46
|
+
path: path.join(screenshotsDir, 'dashboard-tasks.png'),
|
|
47
|
+
type: 'png'
|
|
48
|
+
});
|
|
49
|
+
console.log('Saved: dashboard-tasks.png');
|
|
50
|
+
|
|
51
|
+
await browser.close();
|
|
52
|
+
console.log('Done! Screenshots saved to docs/screenshots/');
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
takeScreenshots().catch(console.error);
|