aios-core 1.0.0
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/.aios-core/cli/commands/generate/index.js +222 -0
- package/.aios-core/cli/commands/manifest/index.js +46 -0
- package/.aios-core/cli/commands/manifest/regenerate.js +96 -0
- package/.aios-core/cli/commands/manifest/validate.js +66 -0
- package/.aios-core/cli/commands/mcp/add.js +234 -0
- package/.aios-core/cli/commands/mcp/index.js +76 -0
- package/.aios-core/cli/commands/mcp/link.js +217 -0
- package/.aios-core/cli/commands/mcp/setup.js +164 -0
- package/.aios-core/cli/commands/mcp/status.js +183 -0
- package/.aios-core/cli/commands/metrics/cleanup.js +91 -0
- package/.aios-core/cli/commands/metrics/index.js +65 -0
- package/.aios-core/cli/commands/metrics/record.js +154 -0
- package/.aios-core/cli/commands/metrics/seed.js +126 -0
- package/.aios-core/cli/commands/metrics/show.js +209 -0
- package/.aios-core/cli/commands/migrate/analyze.js +353 -0
- package/.aios-core/cli/commands/migrate/backup.js +352 -0
- package/.aios-core/cli/commands/migrate/execute.js +292 -0
- package/.aios-core/cli/commands/migrate/index.js +441 -0
- package/.aios-core/cli/commands/migrate/rollback.js +323 -0
- package/.aios-core/cli/commands/migrate/update-imports.js +396 -0
- package/.aios-core/cli/commands/migrate/validate.js +452 -0
- package/.aios-core/cli/commands/qa/index.js +56 -0
- package/.aios-core/cli/commands/qa/run.js +163 -0
- package/.aios-core/cli/commands/qa/status.js +195 -0
- package/.aios-core/cli/commands/workers/formatters/info-formatter.js +274 -0
- package/.aios-core/cli/commands/workers/formatters/list-table.js +265 -0
- package/.aios-core/cli/commands/workers/formatters/list-tree.js +159 -0
- package/.aios-core/cli/commands/workers/index.js +56 -0
- package/.aios-core/cli/commands/workers/info.js +194 -0
- package/.aios-core/cli/commands/workers/list.js +214 -0
- package/.aios-core/cli/commands/workers/search-filters.js +185 -0
- package/.aios-core/cli/commands/workers/search-keyword.js +310 -0
- package/.aios-core/cli/commands/workers/search-semantic.js +293 -0
- package/.aios-core/cli/commands/workers/search.js +154 -0
- package/.aios-core/cli/commands/workers/utils/pagination.js +102 -0
- package/.aios-core/cli/index.js +128 -0
- package/.aios-core/cli/utils/output-formatter-cli.js +232 -0
- package/.aios-core/cli/utils/score-calculator.js +221 -0
- package/.aios-core/core/README.md +229 -0
- package/.aios-core/core/config/config-cache.js +233 -0
- package/.aios-core/core/config/config-loader.js +277 -0
- package/.aios-core/core/docs/SHARD-TRANSLATION-GUIDE.md +335 -0
- package/.aios-core/core/docs/component-creation-guide.md +458 -0
- package/.aios-core/core/docs/session-update-pattern.md +314 -0
- package/.aios-core/core/docs/template-syntax.md +267 -0
- package/.aios-core/core/docs/troubleshooting-guide.md +625 -0
- package/.aios-core/core/elicitation/agent-elicitation.js +272 -0
- package/.aios-core/core/elicitation/elicitation-engine.js +484 -0
- package/.aios-core/core/elicitation/session-manager.js +321 -0
- package/.aios-core/core/elicitation/task-elicitation.js +281 -0
- package/.aios-core/core/elicitation/workflow-elicitation.js +315 -0
- package/.aios-core/core/index.esm.js +42 -0
- package/.aios-core/core/index.js +76 -0
- package/.aios-core/core/manifest/manifest-generator.js +386 -0
- package/.aios-core/core/manifest/manifest-validator.js +429 -0
- package/.aios-core/core/mcp/config-migrator.js +340 -0
- package/.aios-core/core/mcp/global-config-manager.js +369 -0
- package/.aios-core/core/mcp/index.js +34 -0
- package/.aios-core/core/mcp/os-detector.js +188 -0
- package/.aios-core/core/mcp/symlink-manager.js +413 -0
- package/.aios-core/core/migration/migration-config.yaml +83 -0
- package/.aios-core/core/migration/module-mapping.yaml +89 -0
- package/.aios-core/core/quality-gates/base-layer.js +134 -0
- package/.aios-core/core/quality-gates/checklist-generator.js +329 -0
- package/.aios-core/core/quality-gates/focus-area-recommender.js +359 -0
- package/.aios-core/core/quality-gates/human-review-orchestrator.js +529 -0
- package/.aios-core/core/quality-gates/layer1-precommit.js +336 -0
- package/.aios-core/core/quality-gates/layer2-pr-automation.js +324 -0
- package/.aios-core/core/quality-gates/layer3-human-review.js +348 -0
- package/.aios-core/core/quality-gates/notification-manager.js +550 -0
- package/.aios-core/core/quality-gates/quality-gate-config.yaml +86 -0
- package/.aios-core/core/quality-gates/quality-gate-manager.js +601 -0
- package/.aios-core/core/registry/README.md +179 -0
- package/.aios-core/core/registry/build-registry.js +452 -0
- package/.aios-core/core/registry/registry-loader.js +330 -0
- package/.aios-core/core/registry/registry-schema.json +166 -0
- package/.aios-core/core/registry/service-registry.json +6586 -0
- package/.aios-core/core/registry/validate-registry.js +340 -0
- package/.aios-core/core/session/context-detector.js +232 -0
- package/.aios-core/core/session/context-loader.js +442 -0
- package/.aios-core/core/utils/output-formatter.js +298 -0
- package/.aios-core/core/utils/security-utils.js +333 -0
- package/.aios-core/core/utils/yaml-validator.js +419 -0
- package/.aios-core/core-config.yaml +497 -0
- package/.aios-core/data/agent-config-requirements.yaml +368 -0
- package/.aios-core/data/aios-kb.md +924 -0
- package/.aios-core/data/learned-patterns.yaml +3 -0
- package/.aios-core/data/technical-preferences.md +4 -0
- package/.aios-core/data/workflow-patterns.yaml +611 -0
- package/.aios-core/development/README.md +142 -0
- package/.aios-core/development/agent-teams/team-all.yaml +15 -0
- package/.aios-core/development/agent-teams/team-fullstack.yaml +18 -0
- package/.aios-core/development/agent-teams/team-ide-minimal.yaml +10 -0
- package/.aios-core/development/agent-teams/team-no-ui.yaml +13 -0
- package/.aios-core/development/agent-teams/team-qa-focused.yaml +155 -0
- package/.aios-core/development/agents/aios-master.md +370 -0
- package/.aios-core/development/agents/analyst.md +195 -0
- package/.aios-core/development/agents/architect.md +363 -0
- package/.aios-core/development/agents/data-engineer.md +468 -0
- package/.aios-core/development/agents/dev.md +403 -0
- package/.aios-core/development/agents/devops.md +410 -0
- package/.aios-core/development/agents/pm.md +198 -0
- package/.aios-core/development/agents/po.md +256 -0
- package/.aios-core/development/agents/qa.md +312 -0
- package/.aios-core/development/agents/sm.md +220 -0
- package/.aios-core/development/agents/squad-creator.md +302 -0
- package/.aios-core/development/agents/ux-design-expert.md +471 -0
- package/.aios-core/development/scripts/agent-assignment-resolver.js +231 -0
- package/.aios-core/development/scripts/agent-config-loader.js +624 -0
- package/.aios-core/development/scripts/agent-exit-hooks.js +96 -0
- package/.aios-core/development/scripts/apply-inline-greeting-all-agents.js +146 -0
- package/.aios-core/development/scripts/audit-agent-config.js +380 -0
- package/.aios-core/development/scripts/backlog-manager.js +404 -0
- package/.aios-core/development/scripts/batch-update-agents-session-context.js +95 -0
- package/.aios-core/development/scripts/decision-context.js +228 -0
- package/.aios-core/development/scripts/decision-log-generator.js +293 -0
- package/.aios-core/development/scripts/decision-log-indexer.js +284 -0
- package/.aios-core/development/scripts/decision-recorder.js +168 -0
- package/.aios-core/development/scripts/dev-context-loader.js +297 -0
- package/.aios-core/development/scripts/generate-greeting.js +160 -0
- package/.aios-core/development/scripts/greeting-builder.js +866 -0
- package/.aios-core/development/scripts/greeting-config-cli.js +85 -0
- package/.aios-core/development/scripts/greeting-preference-manager.js +145 -0
- package/.aios-core/development/scripts/migrate-task-to-v2.js +377 -0
- package/.aios-core/development/scripts/squad/README.md +112 -0
- package/.aios-core/development/scripts/squad/index.js +123 -0
- package/.aios-core/development/scripts/squad/squad-analyzer.js +638 -0
- package/.aios-core/development/scripts/squad/squad-designer.js +1010 -0
- package/.aios-core/development/scripts/squad/squad-downloader.js +510 -0
- package/.aios-core/development/scripts/squad/squad-extender.js +871 -0
- package/.aios-core/development/scripts/squad/squad-generator.js +1405 -0
- package/.aios-core/development/scripts/squad/squad-loader.js +359 -0
- package/.aios-core/development/scripts/squad/squad-migrator.js +632 -0
- package/.aios-core/development/scripts/squad/squad-publisher.js +629 -0
- package/.aios-core/development/scripts/squad/squad-validator.js +783 -0
- package/.aios-core/development/scripts/story-index-generator.js +337 -0
- package/.aios-core/development/scripts/story-manager.js +375 -0
- package/.aios-core/development/scripts/story-update-hook.js +259 -0
- package/.aios-core/development/scripts/task-identifier-resolver.js +145 -0
- package/.aios-core/development/scripts/test-greeting-system.js +142 -0
- package/.aios-core/development/scripts/validate-task-v2.js +319 -0
- package/.aios-core/development/scripts/workflow-navigator.js +214 -0
- package/.aios-core/development/tasks/add-mcp.md +436 -0
- package/.aios-core/development/tasks/advanced-elicitation.md +319 -0
- package/.aios-core/development/tasks/analyst-facilitate-brainstorming.md +342 -0
- package/.aios-core/development/tasks/analyze-brownfield.md +456 -0
- package/.aios-core/development/tasks/analyze-framework.md +697 -0
- package/.aios-core/development/tasks/analyze-performance.md +637 -0
- package/.aios-core/development/tasks/analyze-project-structure.md +621 -0
- package/.aios-core/development/tasks/apply-qa-fixes.md +340 -0
- package/.aios-core/development/tasks/architect-analyze-impact.md +827 -0
- package/.aios-core/development/tasks/audit-codebase.md +429 -0
- package/.aios-core/development/tasks/audit-tailwind-config.md +270 -0
- package/.aios-core/development/tasks/audit-utilities.md +358 -0
- package/.aios-core/development/tasks/bootstrap-shadcn-library.md +286 -0
- package/.aios-core/development/tasks/brownfield-create-epic.md +486 -0
- package/.aios-core/development/tasks/brownfield-create-story.md +357 -0
- package/.aios-core/development/tasks/build-component.md +478 -0
- package/.aios-core/development/tasks/calculate-roi.md +455 -0
- package/.aios-core/development/tasks/ci-cd-configuration.md +764 -0
- package/.aios-core/development/tasks/cleanup-utilities.md +670 -0
- package/.aios-core/development/tasks/collaborative-edit.md +1109 -0
- package/.aios-core/development/tasks/compose-molecule.md +284 -0
- package/.aios-core/development/tasks/consolidate-patterns.md +414 -0
- package/.aios-core/development/tasks/correct-course.md +280 -0
- package/.aios-core/development/tasks/create-agent.md +322 -0
- package/.aios-core/development/tasks/create-brownfield-story.md +727 -0
- package/.aios-core/development/tasks/create-deep-research-prompt.md +499 -0
- package/.aios-core/development/tasks/create-doc.md +316 -0
- package/.aios-core/development/tasks/create-next-story.md +774 -0
- package/.aios-core/development/tasks/create-service.md +391 -0
- package/.aios-core/development/tasks/create-suite.md +284 -0
- package/.aios-core/development/tasks/create-task.md +372 -0
- package/.aios-core/development/tasks/create-workflow.md +371 -0
- package/.aios-core/development/tasks/db-analyze-hotpaths.md +572 -0
- package/.aios-core/development/tasks/db-apply-migration.md +381 -0
- package/.aios-core/development/tasks/db-bootstrap.md +642 -0
- package/.aios-core/development/tasks/db-domain-modeling.md +693 -0
- package/.aios-core/development/tasks/db-dry-run.md +293 -0
- package/.aios-core/development/tasks/db-env-check.md +260 -0
- package/.aios-core/development/tasks/db-expansion-pack-integration.md +663 -0
- package/.aios-core/development/tasks/db-explain.md +631 -0
- package/.aios-core/development/tasks/db-impersonate.md +495 -0
- package/.aios-core/development/tasks/db-load-csv.md +593 -0
- package/.aios-core/development/tasks/db-policy-apply.md +653 -0
- package/.aios-core/development/tasks/db-rls-audit.md +411 -0
- package/.aios-core/development/tasks/db-rollback.md +739 -0
- package/.aios-core/development/tasks/db-run-sql.md +613 -0
- package/.aios-core/development/tasks/db-schema-audit.md +1011 -0
- package/.aios-core/development/tasks/db-seed.md +390 -0
- package/.aios-core/development/tasks/db-smoke-test.md +351 -0
- package/.aios-core/development/tasks/db-snapshot.md +569 -0
- package/.aios-core/development/tasks/db-supabase-setup.md +712 -0
- package/.aios-core/development/tasks/db-verify-order.md +515 -0
- package/.aios-core/development/tasks/deprecate-component.md +957 -0
- package/.aios-core/development/tasks/dev-apply-qa-fixes.md +318 -0
- package/.aios-core/development/tasks/dev-backlog-debt.md +469 -0
- package/.aios-core/development/tasks/dev-develop-story.md +846 -0
- package/.aios-core/development/tasks/dev-improve-code-quality.md +873 -0
- package/.aios-core/development/tasks/dev-optimize-performance.md +1034 -0
- package/.aios-core/development/tasks/dev-suggest-refactoring.md +871 -0
- package/.aios-core/development/tasks/dev-validate-next-story.md +349 -0
- package/.aios-core/development/tasks/document-project.md +553 -0
- package/.aios-core/development/tasks/environment-bootstrap.md +1311 -0
- package/.aios-core/development/tasks/execute-checklist.md +301 -0
- package/.aios-core/development/tasks/export-design-tokens-dtcg.md +274 -0
- package/.aios-core/development/tasks/extend-pattern.md +269 -0
- package/.aios-core/development/tasks/extract-tokens.md +467 -0
- package/.aios-core/development/tasks/facilitate-brainstorming-session.md +518 -0
- package/.aios-core/development/tasks/generate-ai-frontend-prompt.md +261 -0
- package/.aios-core/development/tasks/generate-documentation.md +284 -0
- package/.aios-core/development/tasks/generate-migration-strategy.md +522 -0
- package/.aios-core/development/tasks/generate-shock-report.md +501 -0
- package/.aios-core/development/tasks/github-devops-github-pr-automation.md +664 -0
- package/.aios-core/development/tasks/github-devops-pre-push-quality-gate.md +733 -0
- package/.aios-core/development/tasks/github-devops-repository-cleanup.md +374 -0
- package/.aios-core/development/tasks/github-devops-version-management.md +483 -0
- package/.aios-core/development/tasks/improve-self.md +823 -0
- package/.aios-core/development/tasks/index-docs.md +388 -0
- package/.aios-core/development/tasks/init-project-status.md +506 -0
- package/.aios-core/development/tasks/integrate-expansion-pack.md +314 -0
- package/.aios-core/development/tasks/kb-mode-interaction.md +284 -0
- package/.aios-core/development/tasks/learn-patterns.md +901 -0
- package/.aios-core/development/tasks/mcp-workflow.md +437 -0
- package/.aios-core/development/tasks/modify-agent.md +382 -0
- package/.aios-core/development/tasks/modify-task.md +425 -0
- package/.aios-core/development/tasks/modify-workflow.md +466 -0
- package/.aios-core/development/tasks/next.md +294 -0
- package/.aios-core/development/tasks/patterns.md +334 -0
- package/.aios-core/development/tasks/po-backlog-add.md +370 -0
- package/.aios-core/development/tasks/po-manage-story-backlog.md +523 -0
- package/.aios-core/development/tasks/po-pull-story-from-clickup.md +540 -0
- package/.aios-core/development/tasks/po-pull-story.md +316 -0
- package/.aios-core/development/tasks/po-stories-index.md +351 -0
- package/.aios-core/development/tasks/po-sync-story-to-clickup.md +457 -0
- package/.aios-core/development/tasks/po-sync-story.md +303 -0
- package/.aios-core/development/tasks/pr-automation.md +701 -0
- package/.aios-core/development/tasks/propose-modification.md +843 -0
- package/.aios-core/development/tasks/qa-backlog-add-followup.md +425 -0
- package/.aios-core/development/tasks/qa-gate.md +374 -0
- package/.aios-core/development/tasks/qa-generate-tests.md +1175 -0
- package/.aios-core/development/tasks/qa-nfr-assess.md +558 -0
- package/.aios-core/development/tasks/qa-review-proposal.md +1158 -0
- package/.aios-core/development/tasks/qa-review-story.md +683 -0
- package/.aios-core/development/tasks/qa-risk-profile.md +567 -0
- package/.aios-core/development/tasks/qa-run-tests.md +277 -0
- package/.aios-core/development/tasks/qa-test-design.md +388 -0
- package/.aios-core/development/tasks/qa-trace-requirements.md +477 -0
- package/.aios-core/development/tasks/release-management.md +723 -0
- package/.aios-core/development/tasks/search-mcp.md +309 -0
- package/.aios-core/development/tasks/security-audit.md +554 -0
- package/.aios-core/development/tasks/security-scan.md +790 -0
- package/.aios-core/development/tasks/setup-database.md +741 -0
- package/.aios-core/development/tasks/setup-design-system.md +462 -0
- package/.aios-core/development/tasks/setup-github.md +874 -0
- package/.aios-core/development/tasks/setup-llm-routing.md +229 -0
- package/.aios-core/development/tasks/setup-mcp-docker.md +627 -0
- package/.aios-core/development/tasks/setup-project-docs.md +440 -0
- package/.aios-core/development/tasks/shard-doc.md +538 -0
- package/.aios-core/development/tasks/sm-create-next-story.md +480 -0
- package/.aios-core/development/tasks/squad-creator-analyze.md +315 -0
- package/.aios-core/development/tasks/squad-creator-create.md +312 -0
- package/.aios-core/development/tasks/squad-creator-design.md +334 -0
- package/.aios-core/development/tasks/squad-creator-download.md +167 -0
- package/.aios-core/development/tasks/squad-creator-extend.md +411 -0
- package/.aios-core/development/tasks/squad-creator-list.md +225 -0
- package/.aios-core/development/tasks/squad-creator-migrate.md +243 -0
- package/.aios-core/development/tasks/squad-creator-publish.md +229 -0
- package/.aios-core/development/tasks/squad-creator-sync-synkra.md +315 -0
- package/.aios-core/development/tasks/squad-creator-validate.md +159 -0
- package/.aios-core/development/tasks/sync-documentation.md +865 -0
- package/.aios-core/development/tasks/tailwind-upgrade.md +294 -0
- package/.aios-core/development/tasks/test-as-user.md +621 -0
- package/.aios-core/development/tasks/test-validation-task.md +171 -0
- package/.aios-core/development/tasks/undo-last.md +347 -0
- package/.aios-core/development/tasks/update-manifest.md +410 -0
- package/.aios-core/development/tasks/ux-create-wireframe.md +617 -0
- package/.aios-core/development/tasks/ux-ds-scan-artifact.md +672 -0
- package/.aios-core/development/tasks/ux-user-research.md +559 -0
- package/.aios-core/development/tasks/validate-next-story.md +423 -0
- package/.aios-core/development/tasks/waves.md +205 -0
- package/.aios-core/development/templates/service-template/README.md.hbs +158 -0
- package/.aios-core/development/templates/service-template/__tests__/index.test.ts.hbs +237 -0
- package/.aios-core/development/templates/service-template/client.ts.hbs +403 -0
- package/.aios-core/development/templates/service-template/errors.ts.hbs +182 -0
- package/.aios-core/development/templates/service-template/index.ts.hbs +120 -0
- package/.aios-core/development/templates/service-template/jest.config.js +89 -0
- package/.aios-core/development/templates/service-template/package.json.hbs +87 -0
- package/.aios-core/development/templates/service-template/tsconfig.json +45 -0
- package/.aios-core/development/templates/service-template/types.ts.hbs +145 -0
- package/.aios-core/development/templates/squad/agent-template.md +69 -0
- package/.aios-core/development/templates/squad/checklist-template.md +82 -0
- package/.aios-core/development/templates/squad/data-template.yaml +105 -0
- package/.aios-core/development/templates/squad/script-template.js +179 -0
- package/.aios-core/development/templates/squad/task-template.md +125 -0
- package/.aios-core/development/templates/squad/template-template.md +97 -0
- package/.aios-core/development/templates/squad/tool-template.js +103 -0
- package/.aios-core/development/templates/squad/workflow-template.yaml +108 -0
- package/.aios-core/development/workflows/README.md +84 -0
- package/.aios-core/development/workflows/brownfield-fullstack.yaml +297 -0
- package/.aios-core/development/workflows/brownfield-service.yaml +187 -0
- package/.aios-core/development/workflows/brownfield-ui.yaml +197 -0
- package/.aios-core/development/workflows/greenfield-fullstack.yaml +333 -0
- package/.aios-core/development/workflows/greenfield-service.yaml +206 -0
- package/.aios-core/development/workflows/greenfield-ui.yaml +235 -0
- package/.aios-core/docs/standards/AGENT-PERSONALIZATION-STANDARD-V1.md +572 -0
- package/.aios-core/docs/standards/AIOS-COLOR-PALETTE-QUICK-REFERENCE.md +185 -0
- package/.aios-core/docs/standards/AIOS-COLOR-PALETTE-V2.1.md +354 -0
- package/.aios-core/docs/standards/AIOS-LIVRO-DE-OURO-V2.1-COMPLETE.md +821 -0
- package/.aios-core/docs/standards/AIOS-LIVRO-DE-OURO-V2.2-SUMMARY.md +1339 -0
- package/.aios-core/docs/standards/EXECUTOR-DECISION-TREE.md +697 -0
- package/.aios-core/docs/standards/OPEN-SOURCE-VS-SERVICE-DIFFERENCES.md +511 -0
- package/.aios-core/docs/standards/QUALITY-GATES-SPECIFICATION.md +556 -0
- package/.aios-core/docs/standards/STANDARDS-INDEX.md +210 -0
- package/.aios-core/docs/standards/STORY-TEMPLATE-V2-SPECIFICATION.md +550 -0
- package/.aios-core/docs/standards/TASK-FORMAT-SPECIFICATION-V1.md +1414 -0
- package/.aios-core/elicitation/agent-elicitation.js +272 -0
- package/.aios-core/elicitation/task-elicitation.js +281 -0
- package/.aios-core/elicitation/workflow-elicitation.js +315 -0
- package/.aios-core/index.esm.js +16 -0
- package/.aios-core/index.js +16 -0
- package/.aios-core/infrastructure/README.md +126 -0
- package/.aios-core/infrastructure/index.js +199 -0
- package/.aios-core/infrastructure/integrations/pm-adapters/README.md +59 -0
- package/.aios-core/infrastructure/integrations/pm-adapters/clickup-adapter.js +345 -0
- package/.aios-core/infrastructure/integrations/pm-adapters/github-adapter.js +392 -0
- package/.aios-core/infrastructure/integrations/pm-adapters/jira-adapter.js +448 -0
- package/.aios-core/infrastructure/integrations/pm-adapters/local-adapter.js +175 -0
- package/.aios-core/infrastructure/scripts/aios-validator.js +294 -0
- package/.aios-core/infrastructure/scripts/approval-workflow.js +643 -0
- package/.aios-core/infrastructure/scripts/atomic-layer-classifier.js +308 -0
- package/.aios-core/infrastructure/scripts/backup-manager.js +607 -0
- package/.aios-core/infrastructure/scripts/batch-creator.js +608 -0
- package/.aios-core/infrastructure/scripts/branch-manager.js +391 -0
- package/.aios-core/infrastructure/scripts/capability-analyzer.js +535 -0
- package/.aios-core/infrastructure/scripts/clickup-helpers.js +226 -0
- package/.aios-core/infrastructure/scripts/code-quality-improver.js +1312 -0
- package/.aios-core/infrastructure/scripts/commit-message-generator.js +850 -0
- package/.aios-core/infrastructure/scripts/component-generator.js +738 -0
- package/.aios-core/infrastructure/scripts/component-metadata.js +627 -0
- package/.aios-core/infrastructure/scripts/component-search.js +277 -0
- package/.aios-core/infrastructure/scripts/config-cache.js +322 -0
- package/.aios-core/infrastructure/scripts/config-loader.js +349 -0
- package/.aios-core/infrastructure/scripts/conflict-resolver.js +675 -0
- package/.aios-core/infrastructure/scripts/coverage-analyzer.js +882 -0
- package/.aios-core/infrastructure/scripts/dependency-analyzer.js +638 -0
- package/.aios-core/infrastructure/scripts/dependency-impact-analyzer.js +703 -0
- package/.aios-core/infrastructure/scripts/diff-generator.js +129 -0
- package/.aios-core/infrastructure/scripts/documentation-integrity/brownfield-analyzer.js +501 -0
- package/.aios-core/infrastructure/scripts/documentation-integrity/config-generator.js +368 -0
- package/.aios-core/infrastructure/scripts/documentation-integrity/deployment-config-loader.js +308 -0
- package/.aios-core/infrastructure/scripts/documentation-integrity/doc-generator.js +331 -0
- package/.aios-core/infrastructure/scripts/documentation-integrity/gitignore-generator.js +312 -0
- package/.aios-core/infrastructure/scripts/documentation-integrity/index.js +74 -0
- package/.aios-core/infrastructure/scripts/documentation-integrity/mode-detector.js +389 -0
- package/.aios-core/infrastructure/scripts/documentation-synchronizer.js +1432 -0
- package/.aios-core/infrastructure/scripts/framework-analyzer.js +746 -0
- package/.aios-core/infrastructure/scripts/git-config-detector.js +293 -0
- package/.aios-core/infrastructure/scripts/git-wrapper.js +443 -0
- package/.aios-core/infrastructure/scripts/ide-sync/README.md +184 -0
- package/.aios-core/infrastructure/scripts/ide-sync/agent-parser.js +295 -0
- package/.aios-core/infrastructure/scripts/ide-sync/index.js +502 -0
- package/.aios-core/infrastructure/scripts/ide-sync/redirect-generator.js +200 -0
- package/.aios-core/infrastructure/scripts/ide-sync/transformers/antigravity.js +105 -0
- package/.aios-core/infrastructure/scripts/ide-sync/transformers/claude-code.js +84 -0
- package/.aios-core/infrastructure/scripts/ide-sync/transformers/cursor.js +94 -0
- package/.aios-core/infrastructure/scripts/ide-sync/transformers/trae.js +125 -0
- package/.aios-core/infrastructure/scripts/ide-sync/transformers/windsurf.js +106 -0
- package/.aios-core/infrastructure/scripts/ide-sync/validator.js +273 -0
- package/.aios-core/infrastructure/scripts/improvement-engine.js +758 -0
- package/.aios-core/infrastructure/scripts/improvement-validator.js +710 -0
- package/.aios-core/infrastructure/scripts/llm-routing/install-llm-routing.js +280 -0
- package/.aios-core/infrastructure/scripts/llm-routing/templates/claude-free-tracked.cmd +127 -0
- package/.aios-core/infrastructure/scripts/llm-routing/templates/claude-free-tracked.sh +108 -0
- package/.aios-core/infrastructure/scripts/llm-routing/templates/claude-free.cmd +80 -0
- package/.aios-core/infrastructure/scripts/llm-routing/templates/claude-free.sh +62 -0
- package/.aios-core/infrastructure/scripts/llm-routing/templates/claude-max.cmd +26 -0
- package/.aios-core/infrastructure/scripts/llm-routing/templates/claude-max.sh +18 -0
- package/.aios-core/infrastructure/scripts/llm-routing/templates/deepseek-proxy.cmd +71 -0
- package/.aios-core/infrastructure/scripts/llm-routing/templates/deepseek-proxy.sh +65 -0
- package/.aios-core/infrastructure/scripts/llm-routing/templates/deepseek-usage.cmd +51 -0
- package/.aios-core/infrastructure/scripts/llm-routing/templates/deepseek-usage.sh +16 -0
- package/.aios-core/infrastructure/scripts/llm-routing/usage-tracker/index.js +549 -0
- package/.aios-core/infrastructure/scripts/modification-risk-assessment.js +970 -0
- package/.aios-core/infrastructure/scripts/modification-validator.js +555 -0
- package/.aios-core/infrastructure/scripts/output-formatter.js +297 -0
- package/.aios-core/infrastructure/scripts/performance-analyzer.js +758 -0
- package/.aios-core/infrastructure/scripts/performance-and-error-resolver.js +258 -0
- package/.aios-core/infrastructure/scripts/performance-optimizer.js +1902 -0
- package/.aios-core/infrastructure/scripts/performance-tracker.js +452 -0
- package/.aios-core/infrastructure/scripts/pm-adapter-factory.js +181 -0
- package/.aios-core/infrastructure/scripts/pm-adapter.js +134 -0
- package/.aios-core/infrastructure/scripts/project-status-loader.js +445 -0
- package/.aios-core/infrastructure/scripts/refactoring-suggester.js +1139 -0
- package/.aios-core/infrastructure/scripts/repository-detector.js +64 -0
- package/.aios-core/infrastructure/scripts/sandbox-tester.js +618 -0
- package/.aios-core/infrastructure/scripts/security-checker.js +359 -0
- package/.aios-core/infrastructure/scripts/spot-check-validator.js +149 -0
- package/.aios-core/infrastructure/scripts/status-mapper.js +115 -0
- package/.aios-core/infrastructure/scripts/template-engine.js +240 -0
- package/.aios-core/infrastructure/scripts/template-validator.js +279 -0
- package/.aios-core/infrastructure/scripts/test-generator.js +844 -0
- package/.aios-core/infrastructure/scripts/test-quality-assessment.js +1081 -0
- package/.aios-core/infrastructure/scripts/test-utilities-fast.js +126 -0
- package/.aios-core/infrastructure/scripts/test-utilities.js +200 -0
- package/.aios-core/infrastructure/scripts/tool-resolver.js +360 -0
- package/.aios-core/infrastructure/scripts/transaction-manager.js +590 -0
- package/.aios-core/infrastructure/scripts/usage-analytics.js +634 -0
- package/.aios-core/infrastructure/scripts/validate-output-pattern.js +213 -0
- package/.aios-core/infrastructure/scripts/visual-impact-generator.js +1056 -0
- package/.aios-core/infrastructure/scripts/yaml-validator.js +397 -0
- package/.aios-core/infrastructure/templates/coderabbit.yaml.template +279 -0
- package/.aios-core/infrastructure/templates/core-config/core-config-brownfield.tmpl.yaml +176 -0
- package/.aios-core/infrastructure/templates/core-config/core-config-greenfield.tmpl.yaml +168 -0
- package/.aios-core/infrastructure/templates/github-workflows/README.md +109 -0
- package/.aios-core/infrastructure/templates/github-workflows/ci.yml.template +169 -0
- package/.aios-core/infrastructure/templates/github-workflows/pr-automation.yml.template +330 -0
- package/.aios-core/infrastructure/templates/github-workflows/release.yml.template +196 -0
- package/.aios-core/infrastructure/templates/gitignore/gitignore-aios-base.tmpl +63 -0
- package/.aios-core/infrastructure/templates/gitignore/gitignore-brownfield-merge.tmpl +18 -0
- package/.aios-core/infrastructure/templates/gitignore/gitignore-node.tmpl +85 -0
- package/.aios-core/infrastructure/templates/gitignore/gitignore-python.tmpl +145 -0
- package/.aios-core/infrastructure/templates/project-docs/coding-standards-tmpl.md +346 -0
- package/.aios-core/infrastructure/templates/project-docs/source-tree-tmpl.md +177 -0
- package/.aios-core/infrastructure/templates/project-docs/tech-stack-tmpl.md +267 -0
- package/.aios-core/infrastructure/tests/project-status-loader.test.js +394 -0
- package/.aios-core/infrastructure/tests/regression-suite-v2.md +621 -0
- package/.aios-core/infrastructure/tests/validate-module.js +97 -0
- package/.aios-core/infrastructure/tools/README.md +222 -0
- package/.aios-core/infrastructure/tools/cli/github-cli.yaml +200 -0
- package/.aios-core/infrastructure/tools/cli/llm-routing.yaml +126 -0
- package/.aios-core/infrastructure/tools/cli/railway-cli.yaml +260 -0
- package/.aios-core/infrastructure/tools/cli/supabase-cli.yaml +224 -0
- package/.aios-core/infrastructure/tools/local/ffmpeg.yaml +261 -0
- package/.aios-core/infrastructure/tools/mcp/21st-dev-magic.yaml +127 -0
- package/.aios-core/infrastructure/tools/mcp/browser.yaml +103 -0
- package/.aios-core/infrastructure/tools/mcp/clickup.yaml +534 -0
- package/.aios-core/infrastructure/tools/mcp/context7.yaml +78 -0
- package/.aios-core/infrastructure/tools/mcp/desktop-commander.yaml +180 -0
- package/.aios-core/infrastructure/tools/mcp/exa.yaml +103 -0
- package/.aios-core/infrastructure/tools/mcp/google-workspace.yaml +930 -0
- package/.aios-core/infrastructure/tools/mcp/n8n.yaml +551 -0
- package/.aios-core/infrastructure/tools/mcp/supabase.yaml +808 -0
- package/.aios-core/install-manifest.yaml +2338 -0
- package/.aios-core/manifests/schema/manifest-schema.json +190 -0
- package/.aios-core/package.json +103 -0
- package/.aios-core/product/README.md +56 -0
- package/.aios-core/product/checklists/accessibility-wcag-checklist.md +80 -0
- package/.aios-core/product/checklists/architect-checklist.md +444 -0
- package/.aios-core/product/checklists/change-checklist.md +183 -0
- package/.aios-core/product/checklists/component-quality-checklist.md +74 -0
- package/.aios-core/product/checklists/database-design-checklist.md +119 -0
- package/.aios-core/product/checklists/dba-predeploy-checklist.md +97 -0
- package/.aios-core/product/checklists/dba-rollback-checklist.md +99 -0
- package/.aios-core/product/checklists/migration-readiness-checklist.md +75 -0
- package/.aios-core/product/checklists/pattern-audit-checklist.md +88 -0
- package/.aios-core/product/checklists/pm-checklist.md +376 -0
- package/.aios-core/product/checklists/po-master-checklist.md +442 -0
- package/.aios-core/product/checklists/pre-push-checklist.md +108 -0
- package/.aios-core/product/checklists/release-checklist.md +122 -0
- package/.aios-core/product/checklists/story-dod-checklist.md +102 -0
- package/.aios-core/product/checklists/story-draft-checklist.md +216 -0
- package/.aios-core/product/data/atomic-design-principles.md +108 -0
- package/.aios-core/product/data/brainstorming-techniques.md +37 -0
- package/.aios-core/product/data/consolidation-algorithms.md +142 -0
- package/.aios-core/product/data/database-best-practices.md +182 -0
- package/.aios-core/product/data/design-token-best-practices.md +107 -0
- package/.aios-core/product/data/elicitation-methods.md +135 -0
- package/.aios-core/product/data/integration-patterns.md +207 -0
- package/.aios-core/product/data/migration-safety-guide.md +329 -0
- package/.aios-core/product/data/mode-selection-best-practices.md +471 -0
- package/.aios-core/product/data/postgres-tuning-guide.md +300 -0
- package/.aios-core/product/data/rls-security-patterns.md +333 -0
- package/.aios-core/product/data/roi-calculation-guide.md +142 -0
- package/.aios-core/product/data/supabase-patterns.md +330 -0
- package/.aios-core/product/data/test-levels-framework.md +149 -0
- package/.aios-core/product/data/test-priorities-matrix.md +175 -0
- package/.aios-core/product/data/wcag-compliance-guide.md +267 -0
- package/.aios-core/product/templates/activation-instructions-inline-greeting.yaml +63 -0
- package/.aios-core/product/templates/activation-instructions-template.md +258 -0
- package/.aios-core/product/templates/adr.hbs +125 -0
- package/.aios-core/product/templates/agent-template.yaml +121 -0
- package/.aios-core/product/templates/architecture-tmpl.yaml +651 -0
- package/.aios-core/product/templates/brainstorming-output-tmpl.yaml +156 -0
- package/.aios-core/product/templates/brownfield-architecture-tmpl.yaml +476 -0
- package/.aios-core/product/templates/brownfield-prd-tmpl.yaml +280 -0
- package/.aios-core/product/templates/changelog-template.md +134 -0
- package/.aios-core/product/templates/command-rationalization-matrix.md +152 -0
- package/.aios-core/product/templates/competitor-analysis-tmpl.yaml +293 -0
- package/.aios-core/product/templates/component-react-tmpl.tsx +98 -0
- package/.aios-core/product/templates/dbdr.hbs +241 -0
- package/.aios-core/product/templates/design-story-tmpl.yaml +587 -0
- package/.aios-core/product/templates/ds-artifact-analysis.md +70 -0
- package/.aios-core/product/templates/engine/elicitation.js +298 -0
- package/.aios-core/product/templates/engine/index.js +308 -0
- package/.aios-core/product/templates/engine/loader.js +231 -0
- package/.aios-core/product/templates/engine/renderer.js +343 -0
- package/.aios-core/product/templates/engine/schemas/adr.schema.json +102 -0
- package/.aios-core/product/templates/engine/schemas/dbdr.schema.json +205 -0
- package/.aios-core/product/templates/engine/schemas/epic.schema.json +175 -0
- package/.aios-core/product/templates/engine/schemas/pmdr.schema.json +175 -0
- package/.aios-core/product/templates/engine/schemas/prd-v2.schema.json +300 -0
- package/.aios-core/product/templates/engine/schemas/prd.schema.json +152 -0
- package/.aios-core/product/templates/engine/schemas/story.schema.json +222 -0
- package/.aios-core/product/templates/engine/schemas/task.schema.json +154 -0
- package/.aios-core/product/templates/engine/validator.js +294 -0
- package/.aios-core/product/templates/epic.hbs +212 -0
- package/.aios-core/product/templates/eslintrc-security.json +32 -0
- package/.aios-core/product/templates/front-end-architecture-tmpl.yaml +206 -0
- package/.aios-core/product/templates/front-end-spec-tmpl.yaml +349 -0
- package/.aios-core/product/templates/fullstack-architecture-tmpl.yaml +805 -0
- package/.aios-core/product/templates/github-actions-cd.yml +212 -0
- package/.aios-core/product/templates/github-actions-ci.yml +172 -0
- package/.aios-core/product/templates/github-pr-template.md +67 -0
- package/.aios-core/product/templates/gordon-mcp.yaml +140 -0
- package/.aios-core/product/templates/ide-rules/antigravity-rules.md +115 -0
- package/.aios-core/product/templates/ide-rules/claude-rules.md +221 -0
- package/.aios-core/product/templates/ide-rules/cline-rules.md +84 -0
- package/.aios-core/product/templates/ide-rules/copilot-rules.md +92 -0
- package/.aios-core/product/templates/ide-rules/cursor-rules.md +115 -0
- package/.aios-core/product/templates/ide-rules/gemini-rules.md +85 -0
- package/.aios-core/product/templates/ide-rules/roo-rules.md +86 -0
- package/.aios-core/product/templates/ide-rules/trae-rules.md +104 -0
- package/.aios-core/product/templates/ide-rules/windsurf-rules.md +80 -0
- package/.aios-core/product/templates/index-strategy-tmpl.yaml +53 -0
- package/.aios-core/product/templates/market-research-tmpl.yaml +252 -0
- package/.aios-core/product/templates/mcp-workflow.js +271 -0
- package/.aios-core/product/templates/migration-plan-tmpl.yaml +1022 -0
- package/.aios-core/product/templates/migration-strategy-tmpl.md +524 -0
- package/.aios-core/product/templates/personalized-agent-template.md +258 -0
- package/.aios-core/product/templates/personalized-checklist-template.md +340 -0
- package/.aios-core/product/templates/personalized-task-template-v2.md +905 -0
- package/.aios-core/product/templates/personalized-task-template.md +344 -0
- package/.aios-core/product/templates/personalized-template-file.yaml +322 -0
- package/.aios-core/product/templates/personalized-workflow-template.yaml +460 -0
- package/.aios-core/product/templates/pmdr.hbs +186 -0
- package/.aios-core/product/templates/prd-tmpl.yaml +202 -0
- package/.aios-core/product/templates/prd-v2.0.hbs +216 -0
- package/.aios-core/product/templates/prd.hbs +201 -0
- package/.aios-core/product/templates/project-brief-tmpl.yaml +221 -0
- package/.aios-core/product/templates/qa-gate-tmpl.yaml +240 -0
- package/.aios-core/product/templates/rls-policies-tmpl.yaml +1203 -0
- package/.aios-core/product/templates/schema-design-tmpl.yaml +428 -0
- package/.aios-core/product/templates/shock-report-tmpl.html +502 -0
- package/.aios-core/product/templates/state-persistence-tmpl.yaml +219 -0
- package/.aios-core/product/templates/story-tmpl.yaml +332 -0
- package/.aios-core/product/templates/story.hbs +263 -0
- package/.aios-core/product/templates/task-execution-report.md +495 -0
- package/.aios-core/product/templates/task-template.md +123 -0
- package/.aios-core/product/templates/task.hbs +170 -0
- package/.aios-core/product/templates/tmpl-comment-on-examples.sql +158 -0
- package/.aios-core/product/templates/tmpl-migration-script.sql +91 -0
- package/.aios-core/product/templates/tmpl-rls-granular-policies.sql +104 -0
- package/.aios-core/product/templates/tmpl-rls-kiss-policy.sql +10 -0
- package/.aios-core/product/templates/tmpl-rls-roles.sql +135 -0
- package/.aios-core/product/templates/tmpl-rls-simple.sql +77 -0
- package/.aios-core/product/templates/tmpl-rls-tenant.sql +152 -0
- package/.aios-core/product/templates/tmpl-rollback-script.sql +77 -0
- package/.aios-core/product/templates/tmpl-seed-data.sql +140 -0
- package/.aios-core/product/templates/tmpl-smoke-test.sql +16 -0
- package/.aios-core/product/templates/tmpl-staging-copy-merge.sql +139 -0
- package/.aios-core/product/templates/tmpl-stored-proc.sql +140 -0
- package/.aios-core/product/templates/tmpl-trigger.sql +152 -0
- package/.aios-core/product/templates/tmpl-view-materialized.sql +133 -0
- package/.aios-core/product/templates/tmpl-view.sql +177 -0
- package/.aios-core/product/templates/token-exports-css-tmpl.css +240 -0
- package/.aios-core/product/templates/token-exports-tailwind-tmpl.js +395 -0
- package/.aios-core/product/templates/tokens-schema-tmpl.yaml +305 -0
- package/.aios-core/product/templates/workflow-template.yaml +134 -0
- package/.aios-core/quality/metrics-collector.js +599 -0
- package/.aios-core/quality/metrics-hook.js +260 -0
- package/.aios-core/quality/schemas/quality-metrics.schema.json +233 -0
- package/.aios-core/quality/seed-metrics.js +336 -0
- package/.aios-core/schemas/squad-design-schema.json +299 -0
- package/.aios-core/schemas/squad-schema.json +185 -0
- package/.aios-core/scripts/README.md +122 -0
- package/.aios-core/scripts/aios-doc-template.md +325 -0
- package/.aios-core/scripts/batch-migrate-phase1.ps1 +36 -0
- package/.aios-core/scripts/batch-migrate-phase2.ps1 +88 -0
- package/.aios-core/scripts/batch-migrate-phase3.ps1 +45 -0
- package/.aios-core/scripts/command-execution-hook.js +201 -0
- package/.aios-core/scripts/migrate-framework-docs.sh +300 -0
- package/.aios-core/scripts/session-context-loader.js +45 -0
- package/.aios-core/scripts/test-template-system.js +941 -0
- package/.aios-core/scripts/validate-phase1.ps1 +35 -0
- package/.aios-core/scripts/workflow-management.md +69 -0
- package/.aios-core/user-guide.md +1413 -0
- package/.aios-core/utils/aios-validator.js +25 -0
- package/.aios-core/workflow-intelligence/__tests__/confidence-scorer.test.js +334 -0
- package/.aios-core/workflow-intelligence/__tests__/integration.test.js +337 -0
- package/.aios-core/workflow-intelligence/__tests__/suggestion-engine.test.js +433 -0
- package/.aios-core/workflow-intelligence/__tests__/wave-analyzer.test.js +458 -0
- package/.aios-core/workflow-intelligence/__tests__/workflow-registry.test.js +302 -0
- package/.aios-core/workflow-intelligence/engine/confidence-scorer.js +305 -0
- package/.aios-core/workflow-intelligence/engine/output-formatter.js +285 -0
- package/.aios-core/workflow-intelligence/engine/suggestion-engine.js +603 -0
- package/.aios-core/workflow-intelligence/engine/wave-analyzer.js +676 -0
- package/.aios-core/workflow-intelligence/index.js +327 -0
- package/.aios-core/workflow-intelligence/learning/capture-hook.js +147 -0
- package/.aios-core/workflow-intelligence/learning/index.js +230 -0
- package/.aios-core/workflow-intelligence/learning/pattern-capture.js +340 -0
- package/.aios-core/workflow-intelligence/learning/pattern-store.js +498 -0
- package/.aios-core/workflow-intelligence/learning/pattern-validator.js +309 -0
- package/.aios-core/workflow-intelligence/registry/workflow-registry.js +358 -0
- package/.aios-core/working-in-the-brownfield.md +361 -0
- package/.claude/rules/mcp-usage.md +176 -0
- package/LICENSE +48 -0
- package/README.md +705 -0
- package/bin/aios-init.js +867 -0
- package/bin/aios-minimal.js +26 -0
- package/bin/aios.js +280 -0
- package/bin/modules/env-config.js +436 -0
- package/bin/modules/mcp-installer.js +383 -0
- package/bin/utils/install-errors.js +339 -0
- package/bin/utils/install-transaction.js +445 -0
- package/package.json +126 -0
- package/packages/installer/package.json +39 -0
- package/packages/installer/src/config/configure-environment.js +312 -0
- package/packages/installer/src/config/templates/core-config-template.js +183 -0
- package/packages/installer/src/config/templates/env-template.js +270 -0
- package/packages/installer/src/config/validation/config-validator.js +243 -0
- package/packages/installer/src/detection/detect-project-type.js +81 -0
- package/packages/installer/src/wizard/wizard.js +244 -0
- package/packages/installer/tests/integration/environment-configuration.test.js +329 -0
- package/packages/installer/tests/integration/wizard-detection.test.js +351 -0
- package/packages/installer/tests/unit/config-validator.test.js +315 -0
- package/packages/installer/tests/unit/detection/detect-project-type.test.js +401 -0
- package/packages/installer/tests/unit/env-template.test.js +187 -0
- package/scripts/generate-install-manifest.js +337 -0
- package/scripts/validate-manifest.js +265 -0
- package/src/config/ide-configs.js +189 -0
- package/src/installer/aios-core-installer.js +319 -0
- package/src/installer/brownfield-upgrader.js +438 -0
- package/src/installer/dependency-installer.js +335 -0
- package/src/installer/file-hasher.js +137 -0
- package/src/utils/aios-colors.js +234 -0
- package/src/wizard/feedback.js +218 -0
- package/src/wizard/ide-config-generator.js +536 -0
- package/src/wizard/ide-selector.js +84 -0
- package/src/wizard/index.js +589 -0
- package/src/wizard/questions.js +249 -0
- package/src/wizard/validation/index.js +120 -0
- package/src/wizard/validation/report-generator.js +269 -0
- package/src/wizard/validation/troubleshooting-system.js +346 -0
- package/src/wizard/validation/validators/config-validator.js +362 -0
- package/src/wizard/validation/validators/dependency-validator.js +333 -0
- package/src/wizard/validation/validators/file-structure-validator.js +181 -0
- package/src/wizard/validation/validators/mcp-health-checker.js +310 -0
- package/src/wizard/validators.js +274 -0
- package/templates/squad/LICENSE +21 -0
- package/templates/squad/README.md +37 -0
- package/templates/squad/agents/example-agent.yaml +36 -0
- package/templates/squad/package.json +19 -0
- package/templates/squad/squad.yaml +25 -0
- package/templates/squad/tasks/example-task.yaml +46 -0
- package/templates/squad/templates/example-template.md +24 -0
- package/templates/squad/tests/example-agent.test.js +53 -0
- package/templates/squad/workflows/example-workflow.yaml +54 -0
- package/tools/diagnose-installation.js +266 -0
- package/tools/diagnose-npx-issue.ps1 +96 -0
- package/tools/quick-diagnose.cmd +85 -0
- package/tools/quick-diagnose.ps1 +117 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
name: "{{squad-name}}"
|
|
2
|
+
version: 0.1.0
|
|
3
|
+
description: "{{description}}"
|
|
4
|
+
author: "{{author}}"
|
|
5
|
+
license: MIT
|
|
6
|
+
|
|
7
|
+
aios:
|
|
8
|
+
minVersion: "2.1.0"
|
|
9
|
+
type: squad
|
|
10
|
+
|
|
11
|
+
components:
|
|
12
|
+
agents:
|
|
13
|
+
- agents/*.yaml
|
|
14
|
+
tasks:
|
|
15
|
+
- tasks/*.yaml
|
|
16
|
+
workflows:
|
|
17
|
+
- workflows/*.yaml
|
|
18
|
+
templates:
|
|
19
|
+
- templates/*.md
|
|
20
|
+
|
|
21
|
+
dependencies: []
|
|
22
|
+
|
|
23
|
+
keywords:
|
|
24
|
+
- aios
|
|
25
|
+
- squad
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Example Task Definition
|
|
2
|
+
# Replace placeholders with your task's details
|
|
3
|
+
|
|
4
|
+
name: example-task
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
description: Brief description of what this task accomplishes
|
|
7
|
+
|
|
8
|
+
inputs:
|
|
9
|
+
- name: input1
|
|
10
|
+
type: string
|
|
11
|
+
required: true
|
|
12
|
+
description: Primary input for the task
|
|
13
|
+
|
|
14
|
+
- name: options
|
|
15
|
+
type: object
|
|
16
|
+
required: false
|
|
17
|
+
description: Optional configuration object
|
|
18
|
+
|
|
19
|
+
outputs:
|
|
20
|
+
- name: result
|
|
21
|
+
type: object
|
|
22
|
+
description: The processed result
|
|
23
|
+
|
|
24
|
+
- name: metadata
|
|
25
|
+
type: object
|
|
26
|
+
description: Additional information about the execution
|
|
27
|
+
|
|
28
|
+
steps:
|
|
29
|
+
- id: validate
|
|
30
|
+
action: validate-inputs
|
|
31
|
+
description: Validate all required inputs are present and valid
|
|
32
|
+
|
|
33
|
+
- id: process
|
|
34
|
+
action: process-data
|
|
35
|
+
description: Main processing logic
|
|
36
|
+
depends_on: [validate]
|
|
37
|
+
|
|
38
|
+
- id: finalize
|
|
39
|
+
action: prepare-output
|
|
40
|
+
description: Format and return the result
|
|
41
|
+
depends_on: [process]
|
|
42
|
+
|
|
43
|
+
error_handling:
|
|
44
|
+
on_validation_error: "Invalid input: {{error.message}}"
|
|
45
|
+
on_process_error: "Processing failed: {{error.message}}"
|
|
46
|
+
retry_count: 1
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# {{title}}
|
|
2
|
+
|
|
3
|
+
**Created:** {{date}}
|
|
4
|
+
**Author:** {{author}}
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Overview
|
|
9
|
+
|
|
10
|
+
{{overview}}
|
|
11
|
+
|
|
12
|
+
## Details
|
|
13
|
+
|
|
14
|
+
{{details}}
|
|
15
|
+
|
|
16
|
+
## Next Steps
|
|
17
|
+
|
|
18
|
+
- [ ] Step 1
|
|
19
|
+
- [ ] Step 2
|
|
20
|
+
- [ ] Step 3
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
*Generated by {{squad-name}}*
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Example Agent Tests
|
|
3
|
+
* Replace with your actual test cases
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { loadAgent, executeCommand } from '@aios/testing';
|
|
7
|
+
|
|
8
|
+
describe('example-agent', () => {
|
|
9
|
+
let agent;
|
|
10
|
+
|
|
11
|
+
beforeAll(async () => {
|
|
12
|
+
agent = await loadAgent('./agents/example-agent.yaml');
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
describe('initialization', () => {
|
|
16
|
+
test('should load agent successfully', () => {
|
|
17
|
+
expect(agent).toBeDefined();
|
|
18
|
+
expect(agent.name).toBe('example-agent');
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
test('should have required persona fields', () => {
|
|
22
|
+
expect(agent.persona.name).toBeDefined();
|
|
23
|
+
expect(agent.persona.role).toBeDefined();
|
|
24
|
+
expect(agent.persona.expertise).toBeInstanceOf(Array);
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
describe('commands', () => {
|
|
29
|
+
test('should have example-command registered', () => {
|
|
30
|
+
const command = agent.commands.find(c => c.name === 'example-command');
|
|
31
|
+
expect(command).toBeDefined();
|
|
32
|
+
expect(command.workflow).toBe('example-workflow');
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
describe('execution', () => {
|
|
37
|
+
test('should execute example-command successfully', async () => {
|
|
38
|
+
const result = await executeCommand(agent, '*example-command', {
|
|
39
|
+
input1: 'test-input'
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
expect(result.success).toBe(true);
|
|
43
|
+
expect(result.output).toBeDefined();
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
test('should handle invalid input gracefully', async () => {
|
|
47
|
+
const result = await executeCommand(agent, '*example-command', {});
|
|
48
|
+
|
|
49
|
+
expect(result.success).toBe(false);
|
|
50
|
+
expect(result.error).toContain('input');
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
});
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# Example Workflow Definition
|
|
2
|
+
# Replace placeholders with your workflow's details
|
|
3
|
+
|
|
4
|
+
name: example-workflow
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
description: Multi-step workflow that orchestrates tasks
|
|
7
|
+
|
|
8
|
+
trigger:
|
|
9
|
+
command: "*example-command"
|
|
10
|
+
agent: example-agent
|
|
11
|
+
|
|
12
|
+
elicitation:
|
|
13
|
+
enabled: true
|
|
14
|
+
questions:
|
|
15
|
+
- id: action_type
|
|
16
|
+
prompt: "What would you like to do?"
|
|
17
|
+
type: choice
|
|
18
|
+
options:
|
|
19
|
+
- Create new item
|
|
20
|
+
- Update existing item
|
|
21
|
+
- Delete item
|
|
22
|
+
|
|
23
|
+
- id: item_name
|
|
24
|
+
prompt: "What is the name of the item?"
|
|
25
|
+
type: text
|
|
26
|
+
required: true
|
|
27
|
+
|
|
28
|
+
steps:
|
|
29
|
+
- id: step-1
|
|
30
|
+
task: example-task
|
|
31
|
+
inputs:
|
|
32
|
+
input1: "{{elicitation.item_name}}"
|
|
33
|
+
options:
|
|
34
|
+
action: "{{elicitation.action_type}}"
|
|
35
|
+
on_success: step-2
|
|
36
|
+
on_error: error-handler
|
|
37
|
+
|
|
38
|
+
- id: step-2
|
|
39
|
+
action: log-result
|
|
40
|
+
description: Log the successful result
|
|
41
|
+
inputs:
|
|
42
|
+
message: "Operation completed successfully"
|
|
43
|
+
|
|
44
|
+
error_handling:
|
|
45
|
+
- id: error-handler
|
|
46
|
+
action: notify
|
|
47
|
+
message: "Workflow failed: {{error.message}}"
|
|
48
|
+
severity: error
|
|
49
|
+
|
|
50
|
+
completion:
|
|
51
|
+
message: "Workflow completed successfully!"
|
|
52
|
+
next_steps:
|
|
53
|
+
- Review the output
|
|
54
|
+
- Verify the changes
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* AIOS-Core Installation Diagnostic Tool
|
|
4
|
+
*
|
|
5
|
+
* Run this script to diagnose installation issues:
|
|
6
|
+
* node diagnose-installation.js
|
|
7
|
+
*
|
|
8
|
+
* Or directly from URL:
|
|
9
|
+
* npx https://raw.githubusercontent.com/SynkraAI/aios-core/main/tools/diagnose-installation.js
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
const { execSync, spawnSync } = require('child_process');
|
|
13
|
+
const os = require('os');
|
|
14
|
+
const path = require('path');
|
|
15
|
+
const fs = require('fs');
|
|
16
|
+
|
|
17
|
+
const REQUIRED_NODE = '18.0.0';
|
|
18
|
+
const REQUIRED_NPM = '9.0.0';
|
|
19
|
+
|
|
20
|
+
console.log('');
|
|
21
|
+
console.log('╔══════════════════════════════════════════════════════════════════╗');
|
|
22
|
+
console.log('║ AIOS-Core Installation Diagnostic Tool ║');
|
|
23
|
+
console.log('╚══════════════════════════════════════════════════════════════════╝');
|
|
24
|
+
console.log('');
|
|
25
|
+
|
|
26
|
+
// Helper functions
|
|
27
|
+
function exec(cmd) {
|
|
28
|
+
try {
|
|
29
|
+
return execSync(cmd, { encoding: 'utf8', stdio: ['pipe', 'pipe', 'pipe'] }).trim();
|
|
30
|
+
} catch (e) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function compareVersions(v1, v2) {
|
|
36
|
+
const parts1 = v1.split('.').map(Number);
|
|
37
|
+
const parts2 = v2.split('.').map(Number);
|
|
38
|
+
for (let i = 0; i < 3; i++) {
|
|
39
|
+
if ((parts1[i] || 0) > (parts2[i] || 0)) return 1;
|
|
40
|
+
if ((parts1[i] || 0) < (parts2[i] || 0)) return -1;
|
|
41
|
+
}
|
|
42
|
+
return 0;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
function checkMark(ok) {
|
|
46
|
+
return ok ? '✓' : '✗';
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
let hasErrors = false;
|
|
50
|
+
let hasWarnings = false;
|
|
51
|
+
|
|
52
|
+
// 1. System Information
|
|
53
|
+
console.log('── System Information ──────────────────────────────────────────────');
|
|
54
|
+
console.log(` Platform: ${os.platform()} (${os.arch()})`);
|
|
55
|
+
console.log(` OS: ${os.type()} ${os.release()}`);
|
|
56
|
+
console.log(` Hostname: ${os.hostname()}`);
|
|
57
|
+
console.log(` Home: ${os.homedir()}`);
|
|
58
|
+
console.log(` User: ${os.userInfo().username}`);
|
|
59
|
+
console.log('');
|
|
60
|
+
|
|
61
|
+
// 2. Node.js Check
|
|
62
|
+
console.log('── Node.js ─────────────────────────────────────────────────────────');
|
|
63
|
+
const nodeVersion = exec('node --version');
|
|
64
|
+
if (nodeVersion) {
|
|
65
|
+
const nodeVer = nodeVersion.replace('v', '');
|
|
66
|
+
const nodeOk = compareVersions(nodeVer, REQUIRED_NODE) >= 0;
|
|
67
|
+
console.log(` ${checkMark(nodeOk)} Version: ${nodeVersion} (required: >= v${REQUIRED_NODE})`);
|
|
68
|
+
if (!nodeOk) {
|
|
69
|
+
console.log(` ⚠️ ERROR: Node.js version too old! Please upgrade to v${REQUIRED_NODE} or higher.`);
|
|
70
|
+
console.log(` 📥 Download: https://nodejs.org/`);
|
|
71
|
+
hasErrors = true;
|
|
72
|
+
}
|
|
73
|
+
const nodePath = exec('where node') || exec('which node');
|
|
74
|
+
console.log(` Path: ${nodePath ? nodePath.split('\n')[0] : 'NOT FOUND'}`);
|
|
75
|
+
} else {
|
|
76
|
+
console.log(' ✗ Node.js: NOT INSTALLED');
|
|
77
|
+
console.log(' ⚠️ ERROR: Node.js is required!');
|
|
78
|
+
console.log(' 📥 Download: https://nodejs.org/');
|
|
79
|
+
hasErrors = true;
|
|
80
|
+
}
|
|
81
|
+
console.log('');
|
|
82
|
+
|
|
83
|
+
// 3. npm Check
|
|
84
|
+
console.log('── npm ─────────────────────────────────────────────────────────────');
|
|
85
|
+
const npmVersion = exec('npm --version');
|
|
86
|
+
if (npmVersion) {
|
|
87
|
+
const npmOk = compareVersions(npmVersion, REQUIRED_NPM) >= 0;
|
|
88
|
+
console.log(` ${checkMark(npmOk)} Version: v${npmVersion} (required: >= v${REQUIRED_NPM})`);
|
|
89
|
+
if (!npmOk) {
|
|
90
|
+
console.log(` ⚠️ ERROR: npm version too old! Please upgrade.`);
|
|
91
|
+
console.log(` 📥 Run: npm install -g npm@latest`);
|
|
92
|
+
hasErrors = true;
|
|
93
|
+
}
|
|
94
|
+
const npmPath = exec('where npm') || exec('which npm');
|
|
95
|
+
console.log(` Path: ${npmPath ? npmPath.split('\n')[0] : 'NOT FOUND'}`);
|
|
96
|
+
} else {
|
|
97
|
+
console.log(' ✗ npm: NOT INSTALLED');
|
|
98
|
+
console.log(' ⚠️ ERROR: npm is required!');
|
|
99
|
+
hasErrors = true;
|
|
100
|
+
}
|
|
101
|
+
console.log('');
|
|
102
|
+
|
|
103
|
+
// 4. npx Check
|
|
104
|
+
console.log('── npx ─────────────────────────────────────────────────────────────');
|
|
105
|
+
const npxVersion = exec('npx --version');
|
|
106
|
+
if (npxVersion) {
|
|
107
|
+
console.log(` ✓ Version: v${npxVersion}`);
|
|
108
|
+
const npxPath = exec('where npx') || exec('which npx');
|
|
109
|
+
console.log(` Path: ${npxPath ? npxPath.split('\n')[0] : 'NOT FOUND'}`);
|
|
110
|
+
} else {
|
|
111
|
+
console.log(' ✗ npx: NOT FOUND');
|
|
112
|
+
console.log(' ⚠️ ERROR: npx is required! Usually comes with npm.');
|
|
113
|
+
hasErrors = true;
|
|
114
|
+
}
|
|
115
|
+
console.log('');
|
|
116
|
+
|
|
117
|
+
// 5. Git Check
|
|
118
|
+
console.log('── Git ─────────────────────────────────────────────────────────────');
|
|
119
|
+
const gitVersion = exec('git --version');
|
|
120
|
+
if (gitVersion) {
|
|
121
|
+
console.log(` ✓ Version: ${gitVersion.replace('git version ', 'v')}`);
|
|
122
|
+
} else {
|
|
123
|
+
console.log(' ✗ Git: NOT INSTALLED');
|
|
124
|
+
console.log(' ⚠️ WARNING: Git is recommended for full functionality.');
|
|
125
|
+
console.log(' 📥 Download: https://git-scm.com/');
|
|
126
|
+
hasWarnings = true;
|
|
127
|
+
}
|
|
128
|
+
console.log('');
|
|
129
|
+
|
|
130
|
+
// 6. npm Configuration
|
|
131
|
+
console.log('── npm Configuration ───────────────────────────────────────────────');
|
|
132
|
+
const npmPrefix = exec('npm config get prefix');
|
|
133
|
+
const npmCache = exec('npm config get cache');
|
|
134
|
+
const npmRegistry = exec('npm config get registry');
|
|
135
|
+
console.log(` Prefix: ${npmPrefix || 'NOT SET'}`);
|
|
136
|
+
console.log(` Cache: ${npmCache || 'NOT SET'}`);
|
|
137
|
+
console.log(` Registry: ${npmRegistry || 'NOT SET'}`);
|
|
138
|
+
|
|
139
|
+
// Check if prefix is in PATH
|
|
140
|
+
if (npmPrefix) {
|
|
141
|
+
const pathEnv = process.env.PATH || process.env.Path || '';
|
|
142
|
+
const inPath = pathEnv.toLowerCase().includes(npmPrefix.toLowerCase());
|
|
143
|
+
console.log(` ${checkMark(inPath)} In PATH: ${inPath ? 'Yes' : 'NO - This may cause issues!'}`);
|
|
144
|
+
if (!inPath) {
|
|
145
|
+
console.log(` ⚠️ WARNING: npm prefix is not in PATH!`);
|
|
146
|
+
console.log(` 📝 Add this to your PATH: ${npmPrefix}`);
|
|
147
|
+
hasWarnings = true;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
console.log('');
|
|
151
|
+
|
|
152
|
+
// 7. Network Check
|
|
153
|
+
console.log('── Network Access ──────────────────────────────────────────────────');
|
|
154
|
+
const registryCheck = exec('npm ping 2>&1');
|
|
155
|
+
if (registryCheck && registryCheck.includes('PONG')) {
|
|
156
|
+
console.log(' ✓ npm registry is accessible');
|
|
157
|
+
} else {
|
|
158
|
+
// Try curl/wget
|
|
159
|
+
const curlCheck = exec('curl -s -o /dev/null -w "%{http_code}" https://registry.npmjs.org/ 2>&1');
|
|
160
|
+
if (curlCheck === '200') {
|
|
161
|
+
console.log(' ✓ npm registry is accessible (via curl)');
|
|
162
|
+
} else {
|
|
163
|
+
console.log(' ⚠️ Cannot verify npm registry access');
|
|
164
|
+
console.log(` Registry check result: ${registryCheck || 'no response'}`);
|
|
165
|
+
hasWarnings = true;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
console.log('');
|
|
169
|
+
|
|
170
|
+
// 8. Package Availability Check
|
|
171
|
+
console.log('── Package Availability ────────────────────────────────────────────');
|
|
172
|
+
const pkgInfo = exec('npm view aios-core version 2>&1');
|
|
173
|
+
if (pkgInfo && !pkgInfo.includes('E404') && !pkgInfo.includes('error')) {
|
|
174
|
+
console.log(` ✓ aios-core v${pkgInfo} is available on npm`);
|
|
175
|
+
} else {
|
|
176
|
+
console.log(' ⚠️ Cannot verify aios-core package availability');
|
|
177
|
+
console.log(` Result: ${pkgInfo || 'no response'}`);
|
|
178
|
+
hasWarnings = true;
|
|
179
|
+
}
|
|
180
|
+
console.log('');
|
|
181
|
+
|
|
182
|
+
// 9. Permission Check (Windows/Unix)
|
|
183
|
+
console.log('── Permissions ─────────────────────────────────────────────────────');
|
|
184
|
+
if (os.platform() === 'win32') {
|
|
185
|
+
// Check PowerShell execution policy
|
|
186
|
+
const psPolicy = exec('powershell -Command "Get-ExecutionPolicy"');
|
|
187
|
+
if (psPolicy) {
|
|
188
|
+
const policyOk = ['Unrestricted', 'RemoteSigned', 'Bypass'].includes(psPolicy);
|
|
189
|
+
console.log(` ${checkMark(policyOk)} PowerShell Execution Policy: ${psPolicy}`);
|
|
190
|
+
if (!policyOk) {
|
|
191
|
+
console.log(' ⚠️ WARNING: Restricted policy may block scripts.');
|
|
192
|
+
console.log(' 📝 Run: Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser');
|
|
193
|
+
hasWarnings = true;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
} else {
|
|
197
|
+
// Check npm global folder permissions
|
|
198
|
+
if (npmPrefix && fs.existsSync(npmPrefix)) {
|
|
199
|
+
try {
|
|
200
|
+
fs.accessSync(npmPrefix, fs.constants.W_OK);
|
|
201
|
+
console.log(' ✓ npm prefix is writable');
|
|
202
|
+
} catch {
|
|
203
|
+
console.log(' ✗ npm prefix is NOT writable');
|
|
204
|
+
console.log(' ⚠️ WARNING: May need sudo or fix permissions');
|
|
205
|
+
hasWarnings = true;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
console.log('');
|
|
210
|
+
|
|
211
|
+
// 10. Test npx execution
|
|
212
|
+
console.log('── npx Test ────────────────────────────────────────────────────────');
|
|
213
|
+
console.log(' Testing: npx aios-core@latest --version');
|
|
214
|
+
const npxTest = exec('npx aios-core@latest --version 2>&1');
|
|
215
|
+
if (npxTest && npxTest.match(/\d+\.\d+\.\d+/)) {
|
|
216
|
+
console.log(` ✓ SUCCESS: ${npxTest}`);
|
|
217
|
+
} else {
|
|
218
|
+
console.log(` ✗ FAILED: ${npxTest || 'no output'}`);
|
|
219
|
+
hasErrors = true;
|
|
220
|
+
}
|
|
221
|
+
console.log('');
|
|
222
|
+
|
|
223
|
+
// Summary
|
|
224
|
+
console.log('══════════════════════════════════════════════════════════════════');
|
|
225
|
+
if (hasErrors) {
|
|
226
|
+
console.log('❌ RESULT: Installation requirements NOT met');
|
|
227
|
+
console.log('');
|
|
228
|
+
console.log('COMMON FIXES:');
|
|
229
|
+
console.log(' 1. Update Node.js: https://nodejs.org/ (download LTS version)');
|
|
230
|
+
console.log(' 2. Update npm: npm install -g npm@latest');
|
|
231
|
+
console.log(' 3. Clear npm cache: npm cache clean --force');
|
|
232
|
+
console.log(' 4. Check firewall/proxy settings');
|
|
233
|
+
console.log('');
|
|
234
|
+
} else if (hasWarnings) {
|
|
235
|
+
console.log('⚠️ RESULT: May work but some issues detected');
|
|
236
|
+
console.log(' Review warnings above for optimal setup.');
|
|
237
|
+
console.log('');
|
|
238
|
+
} else {
|
|
239
|
+
console.log('✅ RESULT: All requirements met!');
|
|
240
|
+
console.log('');
|
|
241
|
+
console.log('You can install AIOS-Core with:');
|
|
242
|
+
console.log(' npx aios-core@latest');
|
|
243
|
+
console.log('');
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
// Output machine-readable summary
|
|
247
|
+
const summary = {
|
|
248
|
+
timestamp: new Date().toISOString(),
|
|
249
|
+
platform: os.platform(),
|
|
250
|
+
arch: os.arch(),
|
|
251
|
+
node: nodeVersion,
|
|
252
|
+
npm: npmVersion,
|
|
253
|
+
npx: npxVersion,
|
|
254
|
+
git: gitVersion,
|
|
255
|
+
npmPrefix,
|
|
256
|
+
npmCache,
|
|
257
|
+
npmRegistry,
|
|
258
|
+
hasErrors,
|
|
259
|
+
hasWarnings,
|
|
260
|
+
npxTestResult: npxTest
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
const summaryFile = path.join(os.tmpdir(), 'aios-diagnostic-result.json');
|
|
264
|
+
fs.writeFileSync(summaryFile, JSON.stringify(summary, null, 2));
|
|
265
|
+
console.log(`📋 Full diagnostic saved to: ${summaryFile}`);
|
|
266
|
+
console.log('');
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# Diagnóstico de problema com npx aios-core
|
|
2
|
+
# Execute este script no PC com problema
|
|
3
|
+
|
|
4
|
+
Write-Host ""
|
|
5
|
+
Write-Host "========================================" -ForegroundColor Cyan
|
|
6
|
+
Write-Host " Diagnóstico NPX aios-core" -ForegroundColor Cyan
|
|
7
|
+
Write-Host "========================================" -ForegroundColor Cyan
|
|
8
|
+
Write-Host ""
|
|
9
|
+
|
|
10
|
+
# 1. Verificar versões
|
|
11
|
+
Write-Host "[1] Versões instaladas:" -ForegroundColor Yellow
|
|
12
|
+
Write-Host " Node.js: $(node --version)"
|
|
13
|
+
Write-Host " npm: $(npm --version)"
|
|
14
|
+
Write-Host " npx: $(npx --version)"
|
|
15
|
+
Write-Host ""
|
|
16
|
+
|
|
17
|
+
# 2. Verificar se Node funciona corretamente
|
|
18
|
+
Write-Host "[2] Testando Node.js básico:" -ForegroundColor Yellow
|
|
19
|
+
$nodeTest = node -e "console.log('OK: Node funciona')" 2>&1
|
|
20
|
+
Write-Host " $nodeTest"
|
|
21
|
+
Write-Host ""
|
|
22
|
+
|
|
23
|
+
# 3. Verificar cache npx
|
|
24
|
+
Write-Host "[3] Limpando cache npx..." -ForegroundColor Yellow
|
|
25
|
+
npm cache clean --force 2>&1 | Out-Null
|
|
26
|
+
Write-Host " Cache limpo"
|
|
27
|
+
Write-Host ""
|
|
28
|
+
|
|
29
|
+
# 4. Tentar baixar e executar manualmente
|
|
30
|
+
Write-Host "[4] Baixando aios-core manualmente..." -ForegroundColor Yellow
|
|
31
|
+
$tempDir = "$env:TEMP\aios-test-$(Get-Random)"
|
|
32
|
+
New-Item -ItemType Directory -Path $tempDir -Force | Out-Null
|
|
33
|
+
Set-Location $tempDir
|
|
34
|
+
|
|
35
|
+
Write-Host " Diretório: $tempDir"
|
|
36
|
+
npm pack aios-core@2.2.0 2>&1 | Out-Null
|
|
37
|
+
|
|
38
|
+
if (Test-Path "aios-core-2.2.0.tgz") {
|
|
39
|
+
Write-Host " Download: OK" -ForegroundColor Green
|
|
40
|
+
|
|
41
|
+
# Extrair
|
|
42
|
+
tar -xzf aios-core-2.2.0.tgz 2>&1 | Out-Null
|
|
43
|
+
|
|
44
|
+
if (Test-Path "package/bin/aios.js") {
|
|
45
|
+
Write-Host " Extração: OK" -ForegroundColor Green
|
|
46
|
+
|
|
47
|
+
# Tentar executar
|
|
48
|
+
Write-Host ""
|
|
49
|
+
Write-Host "[5] Executando bin/aios.js --version:" -ForegroundColor Yellow
|
|
50
|
+
try {
|
|
51
|
+
$result = node package/bin/aios.js --version 2>&1
|
|
52
|
+
if ($result -match "^\d+\.\d+\.\d+$") {
|
|
53
|
+
Write-Host " Resultado: $result" -ForegroundColor Green
|
|
54
|
+
} else {
|
|
55
|
+
Write-Host " Resultado inesperado: $result" -ForegroundColor Red
|
|
56
|
+
}
|
|
57
|
+
} catch {
|
|
58
|
+
Write-Host " ERRO: $($_.Exception.Message)" -ForegroundColor Red
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
# Tentar executar o wizard
|
|
62
|
+
Write-Host ""
|
|
63
|
+
Write-Host "[6] Testando wizard (Ctrl+C para cancelar):" -ForegroundColor Yellow
|
|
64
|
+
Write-Host " Executando: node package/bin/aios.js --help"
|
|
65
|
+
node package/bin/aios.js --help 2>&1
|
|
66
|
+
|
|
67
|
+
} else {
|
|
68
|
+
Write-Host " Extração: FALHOU - bin/aios.js não encontrado" -ForegroundColor Red
|
|
69
|
+
Write-Host " Conteúdo do package:"
|
|
70
|
+
Get-ChildItem package -Recurse | Select-Object -First 20
|
|
71
|
+
}
|
|
72
|
+
} else {
|
|
73
|
+
Write-Host " Download: FALHOU" -ForegroundColor Red
|
|
74
|
+
Write-Host " Verifique sua conexão com a internet"
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
# Limpar
|
|
78
|
+
Set-Location $env:USERPROFILE
|
|
79
|
+
Remove-Item -Recurse -Force $tempDir -ErrorAction SilentlyContinue
|
|
80
|
+
|
|
81
|
+
Write-Host ""
|
|
82
|
+
Write-Host "========================================" -ForegroundColor Cyan
|
|
83
|
+
Write-Host " Diagnóstico Completo" -ForegroundColor Cyan
|
|
84
|
+
Write-Host "========================================" -ForegroundColor Cyan
|
|
85
|
+
Write-Host ""
|
|
86
|
+
|
|
87
|
+
# Recomendação
|
|
88
|
+
Write-Host "RECOMENDAÇÃO:" -ForegroundColor Yellow
|
|
89
|
+
Write-Host "Node v24 é uma versão EXPERIMENTAL e pode ter problemas."
|
|
90
|
+
Write-Host ""
|
|
91
|
+
Write-Host "Solução recomendada:" -ForegroundColor Green
|
|
92
|
+
Write-Host "1. Baixe Node.js LTS (v22 ou v20) de: https://nodejs.org/"
|
|
93
|
+
Write-Host "2. Desinstale Node v24"
|
|
94
|
+
Write-Host "3. Instale a versão LTS"
|
|
95
|
+
Write-Host "4. Tente novamente: npx aios-core@latest"
|
|
96
|
+
Write-Host ""
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
@echo off
|
|
2
|
+
echo.
|
|
3
|
+
echo ========================================
|
|
4
|
+
echo AIOS-Core Quick Diagnostic (CMD)
|
|
5
|
+
echo ========================================
|
|
6
|
+
echo.
|
|
7
|
+
|
|
8
|
+
echo Checking Node.js...
|
|
9
|
+
node --version 2>nul
|
|
10
|
+
if %errorlevel% neq 0 (
|
|
11
|
+
echo ERROR: Node.js NOT INSTALLED!
|
|
12
|
+
echo Download: https://nodejs.org/
|
|
13
|
+
) else (
|
|
14
|
+
echo Node.js: OK
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
echo.
|
|
18
|
+
echo Checking npm...
|
|
19
|
+
npm --version 2>nul
|
|
20
|
+
if %errorlevel% neq 0 (
|
|
21
|
+
echo ERROR: npm NOT INSTALLED!
|
|
22
|
+
) else (
|
|
23
|
+
echo npm: OK
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
echo.
|
|
27
|
+
echo Checking npx...
|
|
28
|
+
npx --version 2>nul
|
|
29
|
+
if %errorlevel% neq 0 (
|
|
30
|
+
echo ERROR: npx NOT FOUND!
|
|
31
|
+
) else (
|
|
32
|
+
echo npx: OK
|
|
33
|
+
)
|
|
34
|
+
|
|
35
|
+
echo.
|
|
36
|
+
echo Checking Git...
|
|
37
|
+
git --version 2>nul
|
|
38
|
+
if %errorlevel% neq 0 (
|
|
39
|
+
echo WARNING: Git not installed (optional)
|
|
40
|
+
echo Download: https://git-scm.com/
|
|
41
|
+
) else (
|
|
42
|
+
echo Git: OK
|
|
43
|
+
)
|
|
44
|
+
|
|
45
|
+
echo.
|
|
46
|
+
echo Checking npm prefix...
|
|
47
|
+
for /f "tokens=*" %%i in ('npm config get prefix 2^>nul') do set NPM_PREFIX=%%i
|
|
48
|
+
echo npm prefix: %NPM_PREFIX%
|
|
49
|
+
|
|
50
|
+
echo.
|
|
51
|
+
echo Checking aios-core availability on npm...
|
|
52
|
+
npm view aios-core version 2>nul
|
|
53
|
+
if %errorlevel% neq 0 (
|
|
54
|
+
echo ERROR: Cannot access npm registry!
|
|
55
|
+
echo Check your internet/firewall settings
|
|
56
|
+
) else (
|
|
57
|
+
echo aios-core: Available
|
|
58
|
+
)
|
|
59
|
+
|
|
60
|
+
echo.
|
|
61
|
+
echo ========================================
|
|
62
|
+
echo Testing npx aios-core@latest
|
|
63
|
+
echo ========================================
|
|
64
|
+
echo.
|
|
65
|
+
echo Running: npx aios-core@latest --version
|
|
66
|
+
echo (This may take a moment on first run...)
|
|
67
|
+
echo.
|
|
68
|
+
npx aios-core@latest --version
|
|
69
|
+
if %errorlevel% neq 0 (
|
|
70
|
+
echo.
|
|
71
|
+
echo ERROR: npx aios-core failed!
|
|
72
|
+
echo.
|
|
73
|
+
echo Common fixes:
|
|
74
|
+
echo 1. Update Node.js to v18+: https://nodejs.org/
|
|
75
|
+
echo 2. Update npm: npm install -g npm@latest
|
|
76
|
+
echo 3. Clear cache: npm cache clean --force
|
|
77
|
+
echo 4. Check firewall/proxy settings
|
|
78
|
+
) else (
|
|
79
|
+
echo.
|
|
80
|
+
echo SUCCESS! You can now run:
|
|
81
|
+
echo npx aios-core@latest
|
|
82
|
+
)
|
|
83
|
+
|
|
84
|
+
echo.
|
|
85
|
+
pause
|