@proflandrigan/shards 1.1.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/README.md +475 -0
- package/package.json +37 -0
- package/src/agents/academic.md +276 -0
- package/src/agents/ai-engineer.md +377 -0
- package/src/agents/analytics-engineer.md +364 -0
- package/src/agents/applied-ml-scientist.md +410 -0
- package/src/agents/backend-engineer.md +255 -0
- package/src/agents/bi-engineer.md +333 -0
- package/src/agents/data-analyst.md +343 -0
- package/src/agents/data-engineer.md +260 -0
- package/src/agents/data-modeller.md +386 -0
- package/src/agents/data-scientist.md +366 -0
- package/src/agents/deep-learning-engineer.md +389 -0
- package/src/agents/ml-engineer.md +424 -0
- package/src/agents/mlops-engineer.md +339 -0
- package/src/agents/researcher.md +187 -0
- package/src/agents/specific_instructions/academic/critical_review.md +263 -0
- package/src/agents/specific_instructions/academic/report.md +113 -0
- package/src/agents/specific_instructions/ai_engineer/advise.md +162 -0
- package/src/agents/specific_instructions/ai_engineer/bi_engineer_handoff.md +86 -0
- package/src/agents/specific_instructions/ai_engineer/experiment.md +471 -0
- package/src/agents/specific_instructions/ai_engineer/experiment_ui_mode.md +44 -0
- package/src/agents/specific_instructions/ai_engineer/phases/index.md +45 -0
- package/src/agents/specific_instructions/ai_engineer/phases/phase-1.md +55 -0
- package/src/agents/specific_instructions/ai_engineer/phases/phase-2.md +86 -0
- package/src/agents/specific_instructions/ai_engineer/phases/phase-3.md +96 -0
- package/src/agents/specific_instructions/ai_engineer/phases/phase-4.md +138 -0
- package/src/agents/specific_instructions/ai_engineer/phases/phase-5.md +157 -0
- package/src/agents/specific_instructions/ai_engineer/phases/phase-6.md +196 -0
- package/src/agents/specific_instructions/ai_engineer/phases/phase-7.md +313 -0
- package/src/agents/specific_instructions/ai_engineer/phases.md +1011 -0
- package/src/agents/specific_instructions/ai_engineer/prompt_lab.md +161 -0
- package/src/agents/specific_instructions/ai_engineer/prompt_lab_ui_mode.md +28 -0
- package/src/agents/specific_instructions/ai_engineer/research.md +393 -0
- package/src/agents/specific_instructions/ai_engineer/research_ui_mode.md +66 -0
- package/src/agents/specific_instructions/ai_engineer/review.md +159 -0
- package/src/agents/specific_instructions/ai_engineer/validation_checklist.md +182 -0
- package/src/agents/specific_instructions/analytics_engineer/advise.md +155 -0
- package/src/agents/specific_instructions/analytics_engineer/bi_engineer_handoff.md +91 -0
- package/src/agents/specific_instructions/analytics_engineer/data_analyst_handoff.md +84 -0
- package/src/agents/specific_instructions/analytics_engineer/deep_phases.md +818 -0
- package/src/agents/specific_instructions/analytics_engineer/phases_deep/index.md +24 -0
- package/src/agents/specific_instructions/analytics_engineer/phases_deep/phase-1.md +77 -0
- package/src/agents/specific_instructions/analytics_engineer/phases_deep/phase-2.md +106 -0
- package/src/agents/specific_instructions/analytics_engineer/phases_deep/phase-3.md +93 -0
- package/src/agents/specific_instructions/analytics_engineer/phases_deep/phase-4.md +79 -0
- package/src/agents/specific_instructions/analytics_engineer/phases_deep/phase-5.md +61 -0
- package/src/agents/specific_instructions/analytics_engineer/phases_deep/phase-6.md +45 -0
- package/src/agents/specific_instructions/analytics_engineer/phases_deep/phase-7.md +235 -0
- package/src/agents/specific_instructions/analytics_engineer/phases_deep/phase-8.md +221 -0
- package/src/agents/specific_instructions/analytics_engineer/phases_quick/index.md +19 -0
- package/src/agents/specific_instructions/analytics_engineer/phases_quick/phase-1.md +47 -0
- package/src/agents/specific_instructions/analytics_engineer/phases_quick/phase-2.md +78 -0
- package/src/agents/specific_instructions/analytics_engineer/quick_phases.md +112 -0
- package/src/agents/specific_instructions/analytics_engineer/review.md +167 -0
- package/src/agents/specific_instructions/analytics_engineer/service_mode.md +369 -0
- package/src/agents/specific_instructions/analytics_engineer/ui_mode.md +45 -0
- package/src/agents/specific_instructions/analytics_engineer/update.md +162 -0
- package/src/agents/specific_instructions/analytics_engineer/validation_checklist.md +121 -0
- package/src/agents/specific_instructions/applied_ml_scientist/advise.md +143 -0
- package/src/agents/specific_instructions/applied_ml_scientist/phases/index.md +21 -0
- package/src/agents/specific_instructions/applied_ml_scientist/phases/phase-1.md +51 -0
- package/src/agents/specific_instructions/applied_ml_scientist/phases/phase-2.md +66 -0
- package/src/agents/specific_instructions/applied_ml_scientist/phases/phase-3.md +113 -0
- package/src/agents/specific_instructions/applied_ml_scientist/phases/phase-4.md +104 -0
- package/src/agents/specific_instructions/applied_ml_scientist/phases/phase-5.md +156 -0
- package/src/agents/specific_instructions/applied_ml_scientist/phases.md +428 -0
- package/src/agents/specific_instructions/applied_ml_scientist/research.md +379 -0
- package/src/agents/specific_instructions/applied_ml_scientist/review.md +142 -0
- package/src/agents/specific_instructions/applied_ml_scientist/validation_checklist.md +136 -0
- package/src/agents/specific_instructions/backend_engineer/clean.md +149 -0
- package/src/agents/specific_instructions/backend_engineer/review.md +91 -0
- package/src/agents/specific_instructions/backend_engineer/review_checklist.md +54 -0
- package/src/agents/specific_instructions/backend_engineer/service_mode.md +67 -0
- package/src/agents/specific_instructions/bi_engineer/advise.md +137 -0
- package/src/agents/specific_instructions/bi_engineer/data_analyst_handoff.md +77 -0
- package/src/agents/specific_instructions/bi_engineer/incoming_handoff.md +45 -0
- package/src/agents/specific_instructions/bi_engineer/phases/index.md +20 -0
- package/src/agents/specific_instructions/bi_engineer/phases/phase-1.md +164 -0
- package/src/agents/specific_instructions/bi_engineer/phases/phase-2.md +92 -0
- package/src/agents/specific_instructions/bi_engineer/phases/phase-3.md +121 -0
- package/src/agents/specific_instructions/bi_engineer/phases/phase-4.md +106 -0
- package/src/agents/specific_instructions/bi_engineer/phases.md +451 -0
- package/src/agents/specific_instructions/bi_engineer/review.md +166 -0
- package/src/agents/specific_instructions/bi_engineer/update.md +147 -0
- package/src/agents/specific_instructions/bi_engineer/validation_checklist.md +124 -0
- package/src/agents/specific_instructions/data_analyst/advise.md +138 -0
- package/src/agents/specific_instructions/data_analyst/explain.md +221 -0
- package/src/agents/specific_instructions/data_analyst/incoming_handoff.md +40 -0
- package/src/agents/specific_instructions/data_analyst/phases/index.md +20 -0
- package/src/agents/specific_instructions/data_analyst/phases/phase-1.md +159 -0
- package/src/agents/specific_instructions/data_analyst/phases/phase-2.md +112 -0
- package/src/agents/specific_instructions/data_analyst/phases/phase-3.md +265 -0
- package/src/agents/specific_instructions/data_analyst/phases/phase-4.md +100 -0
- package/src/agents/specific_instructions/data_analyst/phases.md +501 -0
- package/src/agents/specific_instructions/data_analyst/review.md +138 -0
- package/src/agents/specific_instructions/data_analyst/ui_mode.md +26 -0
- package/src/agents/specific_instructions/data_analyst/update.md +144 -0
- package/src/agents/specific_instructions/data_analyst/validation_checklist.md +95 -0
- package/src/agents/specific_instructions/data_engineer/advise.md +137 -0
- package/src/agents/specific_instructions/data_engineer/phases.md +466 -0
- package/src/agents/specific_instructions/data_engineer/phases_deep/index.md +23 -0
- package/src/agents/specific_instructions/data_engineer/phases_deep/phase-1.md +49 -0
- package/src/agents/specific_instructions/data_engineer/phases_deep/phase-2.md +93 -0
- package/src/agents/specific_instructions/data_engineer/phases_deep/phase-3.md +55 -0
- package/src/agents/specific_instructions/data_engineer/phases_deep/phase-4.md +48 -0
- package/src/agents/specific_instructions/data_engineer/phases_deep/phase-5.md +40 -0
- package/src/agents/specific_instructions/data_engineer/phases_deep/phase-6.md +102 -0
- package/src/agents/specific_instructions/data_engineer/phases_deep/phase-7.md +87 -0
- package/src/agents/specific_instructions/data_engineer/phases_quick/index.md +19 -0
- package/src/agents/specific_instructions/data_engineer/phases_quick/phase-1.md +45 -0
- package/src/agents/specific_instructions/data_engineer/phases_quick/phase-2.md +54 -0
- package/src/agents/specific_instructions/data_engineer/review.md +135 -0
- package/src/agents/specific_instructions/data_engineer/validation_checklist.md +136 -0
- package/src/agents/specific_instructions/data_modeller/advise.md +137 -0
- package/src/agents/specific_instructions/data_modeller/phases.md +581 -0
- package/src/agents/specific_instructions/data_modeller/phases_deep/index.md +23 -0
- package/src/agents/specific_instructions/data_modeller/phases_deep/phase-1.md +52 -0
- package/src/agents/specific_instructions/data_modeller/phases_deep/phase-2.md +113 -0
- package/src/agents/specific_instructions/data_modeller/phases_deep/phase-3.md +47 -0
- package/src/agents/specific_instructions/data_modeller/phases_deep/phase-4.md +51 -0
- package/src/agents/specific_instructions/data_modeller/phases_deep/phase-5.md +45 -0
- package/src/agents/specific_instructions/data_modeller/phases_deep/phase-6.md +105 -0
- package/src/agents/specific_instructions/data_modeller/phases_deep/phase-7.md +136 -0
- package/src/agents/specific_instructions/data_modeller/phases_quick/index.md +19 -0
- package/src/agents/specific_instructions/data_modeller/phases_quick/phase-1.md +47 -0
- package/src/agents/specific_instructions/data_modeller/phases_quick/phase-2.md +65 -0
- package/src/agents/specific_instructions/data_modeller/review.md +141 -0
- package/src/agents/specific_instructions/data_modeller/service_mode.md +218 -0
- package/src/agents/specific_instructions/data_modeller/validation_checklist.md +125 -0
- package/src/agents/specific_instructions/data_scientist/advise.md +158 -0
- package/src/agents/specific_instructions/data_scientist/bi_engineer_handoff.md +63 -0
- package/src/agents/specific_instructions/data_scientist/experiment.md +482 -0
- package/src/agents/specific_instructions/data_scientist/experiment_ui_mode.md +44 -0
- package/src/agents/specific_instructions/data_scientist/explain.md +247 -0
- package/src/agents/specific_instructions/data_scientist/greenfield_data.md +35 -0
- package/src/agents/specific_instructions/data_scientist/ml_engineer_handoff.md +52 -0
- package/src/agents/specific_instructions/data_scientist/notebook_walkthrough.md +76 -0
- package/src/agents/specific_instructions/data_scientist/phases/index.md +24 -0
- package/src/agents/specific_instructions/data_scientist/phases/phase-1.md +45 -0
- package/src/agents/specific_instructions/data_scientist/phases/phase-2.md +67 -0
- package/src/agents/specific_instructions/data_scientist/phases/phase-3.md +89 -0
- package/src/agents/specific_instructions/data_scientist/phases/phase-4.md +143 -0
- package/src/agents/specific_instructions/data_scientist/phases/phase-5.md +71 -0
- package/src/agents/specific_instructions/data_scientist/phases/phase-6.md +239 -0
- package/src/agents/specific_instructions/data_scientist/phases/phase-7.md +207 -0
- package/src/agents/specific_instructions/data_scientist/phases.md +651 -0
- package/src/agents/specific_instructions/data_scientist/research.md +345 -0
- package/src/agents/specific_instructions/data_scientist/research_ui_mode.md +52 -0
- package/src/agents/specific_instructions/data_scientist/review.md +136 -0
- package/src/agents/specific_instructions/data_scientist/service_mode.md +247 -0
- package/src/agents/specific_instructions/data_scientist/validation_checklist.md +183 -0
- package/src/agents/specific_instructions/deep_learning_engineer/advise.md +145 -0
- package/src/agents/specific_instructions/deep_learning_engineer/phases/index.md +21 -0
- package/src/agents/specific_instructions/deep_learning_engineer/phases/phase-1.md +74 -0
- package/src/agents/specific_instructions/deep_learning_engineer/phases/phase-2.md +98 -0
- package/src/agents/specific_instructions/deep_learning_engineer/phases/phase-3.md +76 -0
- package/src/agents/specific_instructions/deep_learning_engineer/phases/phase-4.md +128 -0
- package/src/agents/specific_instructions/deep_learning_engineer/phases/phase-5.md +292 -0
- package/src/agents/specific_instructions/deep_learning_engineer/phases.md +567 -0
- package/src/agents/specific_instructions/deep_learning_engineer/research.md +389 -0
- package/src/agents/specific_instructions/deep_learning_engineer/review.md +155 -0
- package/src/agents/specific_instructions/deep_learning_engineer/validation_checklist.md +147 -0
- package/src/agents/specific_instructions/ml_engineer/advise.md +174 -0
- package/src/agents/specific_instructions/ml_engineer/bi_engineer_handoff.md +71 -0
- package/src/agents/specific_instructions/ml_engineer/experiment.md +474 -0
- package/src/agents/specific_instructions/ml_engineer/experiment_ui_mode.md +44 -0
- package/src/agents/specific_instructions/ml_engineer/notebook_walkthrough.md +75 -0
- package/src/agents/specific_instructions/ml_engineer/phases/index.md +25 -0
- package/src/agents/specific_instructions/ml_engineer/phases/phase-1.md +49 -0
- package/src/agents/specific_instructions/ml_engineer/phases/phase-2.md +75 -0
- package/src/agents/specific_instructions/ml_engineer/phases/phase-3.md +124 -0
- package/src/agents/specific_instructions/ml_engineer/phases/phase-4.md +279 -0
- package/src/agents/specific_instructions/ml_engineer/phases/phase-5.md +160 -0
- package/src/agents/specific_instructions/ml_engineer/phases/phase-6-5.md +170 -0
- package/src/agents/specific_instructions/ml_engineer/phases/phase-6.md +295 -0
- package/src/agents/specific_instructions/ml_engineer/phases/phase-7.md +337 -0
- package/src/agents/specific_instructions/ml_engineer/phases.md +1068 -0
- package/src/agents/specific_instructions/ml_engineer/research.md +437 -0
- package/src/agents/specific_instructions/ml_engineer/research_ui_mode.md +71 -0
- package/src/agents/specific_instructions/ml_engineer/review.md +187 -0
- package/src/agents/specific_instructions/ml_engineer/service_mode.md +273 -0
- package/src/agents/specific_instructions/ml_engineer/validation_checklist.md +185 -0
- package/src/agents/specific_instructions/mlops_engineer/advise.md +139 -0
- package/src/agents/specific_instructions/mlops_engineer/phases/index.md +23 -0
- package/src/agents/specific_instructions/mlops_engineer/phases/phase-1.md +52 -0
- package/src/agents/specific_instructions/mlops_engineer/phases/phase-2.md +86 -0
- package/src/agents/specific_instructions/mlops_engineer/phases/phase-3.md +105 -0
- package/src/agents/specific_instructions/mlops_engineer/phases/phase-4.md +128 -0
- package/src/agents/specific_instructions/mlops_engineer/phases/phase-5.md +106 -0
- package/src/agents/specific_instructions/mlops_engineer/phases/phase-6.md +128 -0
- package/src/agents/specific_instructions/mlops_engineer/phases/phase-7.md +144 -0
- package/src/agents/specific_instructions/mlops_engineer/phases.md +671 -0
- package/src/agents/specific_instructions/mlops_engineer/review.md +164 -0
- package/src/agents/specific_instructions/mlops_engineer/service_mode.md +81 -0
- package/src/agents/specific_instructions/mlops_engineer/validation_checklist.md +151 -0
- package/src/agents/specific_instructions/researcher/critical_review.md +292 -0
- package/src/agents/specific_instructions/researcher/review_checklist.md +67 -0
- package/src/agents/specific_instructions/researcher/service_mode.md +224 -0
- package/src/agents/specific_instructions/shared/auto_verify_mode.md +141 -0
- package/src/agents/specific_instructions/shared/autonomous_research.md +1289 -0
- package/src/agents/specific_instructions/shared/behavioral_rules.md +36 -0
- package/src/agents/specific_instructions/shared/diverge_protocol.md +387 -0
- package/src/agents/specific_instructions/shared/engineering_guidelines.md +136 -0
- package/src/agents/specific_instructions/shared/experiment_versioning.md +184 -0
- package/src/agents/specific_instructions/shared/goal_mode.md +187 -0
- package/src/agents/specific_instructions/shared/incremental_testing.md +139 -0
- package/src/agents/specific_instructions/shared/intent_discovery.md +223 -0
- package/src/agents/specific_instructions/shared/join_path_protocol.md +168 -0
- package/src/agents/specific_instructions/shared/knowledge_checkpoint.md +83 -0
- package/src/agents/specific_instructions/shared/knowledge_harvest.md +220 -0
- package/src/agents/specific_instructions/shared/knowledge_retrieval.md +100 -0
- package/src/agents/specific_instructions/shared/notebook_walkthrough_protocol.md +367 -0
- package/src/agents/specific_instructions/shared/reviewer_verdict_protocol.md +74 -0
- package/src/agents/specific_instructions/shared/swarm_protocol.md +97 -0
- package/src/agents/specific_instructions/shared/validation_protocol.md +139 -0
- package/src/agents/specific_instructions/syn/arbiter.md +140 -0
- package/src/agents/specific_instructions/syn/brainstorm.md +550 -0
- package/src/agents/specific_instructions/syn/code_review.md +232 -0
- package/src/agents/specific_instructions/syn/diff.md +239 -0
- package/src/agents/specific_instructions/syn/final_review.md +65 -0
- package/src/agents/specific_instructions/syn/fixer.md +240 -0
- package/src/agents/specific_instructions/syn/free_form.md +130 -0
- package/src/agents/specific_instructions/syn/knowledge.md +468 -0
- package/src/agents/specific_instructions/syn/notebook_walkthrough.md +78 -0
- package/src/agents/specific_instructions/syn/panel_review.md +634 -0
- package/src/agents/specific_instructions/syn/pm.md +453 -0
- package/src/agents/specific_instructions/syn/pr_review.md +255 -0
- package/src/agents/specific_instructions/syn/slides.md +417 -0
- package/src/agents/syn.md +729 -0
- package/src/commands/academic.md +41 -0
- package/src/commands/ai-engineer.md +45 -0
- package/src/commands/analytics-engineer.md +48 -0
- package/src/commands/applied-ml-scientist.md +45 -0
- package/src/commands/backend-engineer.md +35 -0
- package/src/commands/bi-engineer.md +40 -0
- package/src/commands/brainstorm.md +24 -0
- package/src/commands/data-analyst.md +38 -0
- package/src/commands/data-engineer.md +37 -0
- package/src/commands/data-modeller.md +38 -0
- package/src/commands/data-scientist.md +38 -0
- package/src/commands/deep-learning-engineer.md +47 -0
- package/src/commands/end.md +49 -0
- package/src/commands/knowledge.md +24 -0
- package/src/commands/ml-engineer.md +42 -0
- package/src/commands/mlops-engineer.md +47 -0
- package/src/commands/notebook-walkthrough.md +58 -0
- package/src/commands/researcher.md +40 -0
- package/src/commands/resume.md +57 -0
- package/src/commands/review-pr.md +26 -0
- package/src/commands/shards-guide.md +41 -0
- package/src/commands/shards-ui.md +32 -0
- package/src/commands/shards.md +41 -0
- package/src/docs/01-getting-started/concepts.md +109 -0
- package/src/docs/01-getting-started/first-session.md +79 -0
- package/src/docs/01-getting-started/install.md +61 -0
- package/src/docs/02-agents/academic.md +71 -0
- package/src/docs/02-agents/ai-engineer.md +78 -0
- package/src/docs/02-agents/analytics-engineer.md +58 -0
- package/src/docs/02-agents/applied-ml-scientist.md +59 -0
- package/src/docs/02-agents/backend-engineer.md +58 -0
- package/src/docs/02-agents/bi-engineer.md +65 -0
- package/src/docs/02-agents/data-analyst.md +67 -0
- package/src/docs/02-agents/data-engineer.md +57 -0
- package/src/docs/02-agents/data-modeller.md +51 -0
- package/src/docs/02-agents/data-scientist.md +78 -0
- package/src/docs/02-agents/deep-learning-engineer.md +64 -0
- package/src/docs/02-agents/ml-engineer.md +80 -0
- package/src/docs/02-agents/mlops-engineer.md +59 -0
- package/src/docs/02-agents/overview.md +62 -0
- package/src/docs/02-agents/researcher.md +73 -0
- package/src/docs/02-agents/syn.md +88 -0
- package/src/docs/03-protocols/auto-verify.md +82 -0
- package/src/docs/03-protocols/autonomous-research.md +59 -0
- package/src/docs/03-protocols/behavioral-rules.md +35 -0
- package/src/docs/03-protocols/diverge.md +50 -0
- package/src/docs/03-protocols/engineering-guidelines.md +56 -0
- package/src/docs/03-protocols/experiment-versioning.md +38 -0
- package/src/docs/03-protocols/gate-pattern.md +65 -0
- package/src/docs/03-protocols/incremental-testing.md +68 -0
- package/src/docs/03-protocols/join-path.md +46 -0
- package/src/docs/03-protocols/knowledge-ledger.md +70 -0
- package/src/docs/03-protocols/reviewer-verdicts.md +39 -0
- package/src/docs/03-protocols/swarm.md +40 -0
- package/src/docs/03-protocols/validation.md +174 -0
- package/src/docs/04-ui/activity-bar.md +70 -0
- package/src/docs/04-ui/chat-pane.md +80 -0
- package/src/docs/04-ui/code-intel.md +62 -0
- package/src/docs/04-ui/file-editing.md +61 -0
- package/src/docs/04-ui/git.md +54 -0
- package/src/docs/04-ui/keybindings.md +79 -0
- package/src/docs/04-ui/knowledge-map.md +76 -0
- package/src/docs/04-ui/overview.md +93 -0
- package/src/docs/04-ui/panels.md +49 -0
- package/src/docs/04-ui/pinboard-selection.md +66 -0
- package/src/docs/04-ui/quick-open-palette.md +56 -0
- package/src/docs/04-ui/sessions.md +81 -0
- package/src/docs/04-ui/settings-permissions.md +56 -0
- package/src/docs/05-commands/reference.md +59 -0
- package/src/docs/06-outputs/directory-map.md +116 -0
- package/src/docs/07-workflows/ai-eval-first.md +57 -0
- package/src/docs/07-workflows/deep-study-to-production.md +76 -0
- package/src/docs/07-workflows/diverge-exploration.md +77 -0
- package/src/docs/07-workflows/quick-analysis.md +45 -0
- package/src/docs/08-integrations/claude-code-auto-mode.md +191 -0
- package/src/docs/08-integrations/google-slides.md +175 -0
- package/src/docs/README.md +30 -0
- package/src/docs/manifest.json +108 -0
- package/src/templates/analysis-template.md +20 -0
- package/src/templates/branch-report.md +46 -0
- package/src/templates/diff-report.md +88 -0
- package/src/templates/knowledge-index.md +7 -0
- package/src/templates/model-card-schema.json +186 -0
- package/src/templates/model-card-schema.md +88 -0
- package/src/templates/model-card.md +124 -0
- package/src/templates/project-plan.md +47 -0
- package/src/templates/project-specs.md +81 -0
- package/src/templates/report-template.md +43 -0
- package/src/templates/study-template.md +25 -0
- package/src/ui/cc-readonly.js +181 -0
- package/src/ui/chat-session.js +466 -0
- package/src/ui/css/base.css +136 -0
- package/src/ui/css/brainstorm.css +525 -0
- package/src/ui/css/chat.css +1405 -0
- package/src/ui/css/editor.css +546 -0
- package/src/ui/css/eval-dashboard.css +157 -0
- package/src/ui/css/experiment.css +237 -0
- package/src/ui/css/guide.css +186 -0
- package/src/ui/css/knowledge-map.css +383 -0
- package/src/ui/css/layout.css +431 -0
- package/src/ui/css/model-card.css +161 -0
- package/src/ui/css/notebook-walkthrough.css +271 -0
- package/src/ui/css/pr-review.css +403 -0
- package/src/ui/css/prompt-lab.css +325 -0
- package/src/ui/css/sessions.css +258 -0
- package/src/ui/css/sidebar.css +661 -0
- package/src/ui/css/terminal.css +113 -0
- package/src/ui/css/theme-light.css +542 -0
- package/src/ui/index.html +389 -0
- package/src/ui/js/agents.js +32 -0
- package/src/ui/js/bookmarks.js +230 -0
- package/src/ui/js/chat.js +1776 -0
- package/src/ui/js/code-intel.js +328 -0
- package/src/ui/js/command-palette.js +142 -0
- package/src/ui/js/events.js +591 -0
- package/src/ui/js/explorer.js +317 -0
- package/src/ui/js/file-view.js +477 -0
- package/src/ui/js/git.js +536 -0
- package/src/ui/js/guide.js +198 -0
- package/src/ui/js/hud.js +75 -0
- package/src/ui/js/init.js +351 -0
- package/src/ui/js/knowledge-map.js +906 -0
- package/src/ui/js/markdown.js +114 -0
- package/src/ui/js/monaco.js +164 -0
- package/src/ui/js/notebook-walkthrough.js +272 -0
- package/src/ui/js/notebook.js +448 -0
- package/src/ui/js/panels.js +2681 -0
- package/src/ui/js/pinboard.js +186 -0
- package/src/ui/js/quick-open.js +164 -0
- package/src/ui/js/selection-context.js +131 -0
- package/src/ui/js/sessions.js +256 -0
- package/src/ui/js/settings.js +476 -0
- package/src/ui/js/split-view.js +82 -0
- package/src/ui/js/state.js +343 -0
- package/src/ui/js/table.js +161 -0
- package/src/ui/js/tabs.js +284 -0
- package/src/ui/js/tabular.js +125 -0
- package/src/ui/js/terminal.js +354 -0
- package/src/ui/js/timeline.js +137 -0
- package/src/ui/js/utils.js +293 -0
- package/src/ui/notebook-kernel.py +790 -0
- package/src/ui/open-browser.js +55 -0
- package/src/ui/permission-pattern.js +42 -0
- package/src/ui/relay.js +513 -0
- package/src/ui/server.js +3072 -0
- package/src/ui/session-index.js +225 -0
- package/src/ui/shards_icon.png +0 -0
- package/src/ui/spawn-server.js +41 -0
- package/src/ui/symbol-index.js +813 -0
- package/src/ui/ui-push.js +177 -0
- package/tools/gate-hook/VALIDATION_SPEC.md +273 -0
- package/tools/gate-hook/__tests__/auto-verify.test.js +343 -0
- package/tools/gate-hook/auto-allowlist.js +179 -0
- package/tools/gate-hook/auto-state.js +68 -0
- package/tools/gate-hook/classify.js +21 -0
- package/tools/gate-hook/log.js +57 -0
- package/tools/gate-hook/parser.js +205 -0
- package/tools/gate-hook/sql-guard.js +230 -0
- package/tools/gate-hook/state.js +170 -0
- package/tools/gate-hook/sweep.js +139 -0
- package/tools/gate-hook/transcript.js +45 -0
- package/tools/gate-hook/validation.js +321 -0
- package/tools/gate-hook.js +475 -0
- package/tools/install.js +914 -0
- package/tools/shards-gates.js +311 -0
- package/tools/shards-sessions.js +261 -0
- package/tools/shards-ui.js +377 -0
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
|
|
5
|
+
const { spawn, execSync } = require('child_process');
|
|
6
|
+
const fs = require('fs');
|
|
7
|
+
const path = require('path');
|
|
8
|
+
const http = require('http');
|
|
9
|
+
|
|
10
|
+
// ─── Constants ───────────────────────────────────────────────────────────────
|
|
11
|
+
|
|
12
|
+
const PROJECT_DIR = process.cwd();
|
|
13
|
+
const SHARDS_DIR = path.join(PROJECT_DIR, '.shards');
|
|
14
|
+
const PID_FILE = path.join(SHARDS_DIR, 'ui.pid');
|
|
15
|
+
const PORT_FILE = path.join(SHARDS_DIR, 'ui.port');
|
|
16
|
+
|
|
17
|
+
// UI source files live next to install.js in the package
|
|
18
|
+
const PACKAGE_ROOT = path.resolve(__dirname, '..');
|
|
19
|
+
const UI_SRC = path.join(PACKAGE_ROOT, 'src', 'ui');
|
|
20
|
+
|
|
21
|
+
// Installed UI files in project
|
|
22
|
+
const UI_DEST = path.join(SHARDS_DIR, 'ui');
|
|
23
|
+
|
|
24
|
+
// ─── Helpers ─────────────────────────────────────────────────────────────────
|
|
25
|
+
|
|
26
|
+
function copyDir(src, dest) {
|
|
27
|
+
if (!fs.existsSync(src)) return;
|
|
28
|
+
fs.mkdirSync(dest, { recursive: true });
|
|
29
|
+
for (const entry of fs.readdirSync(src, { withFileTypes: true })) {
|
|
30
|
+
const srcPath = path.join(src, entry.name);
|
|
31
|
+
const destPath = path.join(dest, entry.name);
|
|
32
|
+
if (entry.isDirectory()) {
|
|
33
|
+
copyDir(srcPath, destPath);
|
|
34
|
+
} else {
|
|
35
|
+
fs.copyFileSync(srcPath, destPath);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function isServerRunning() {
|
|
41
|
+
if (!fs.existsSync(PID_FILE)) return false;
|
|
42
|
+
try {
|
|
43
|
+
const pid = parseInt(fs.readFileSync(PID_FILE, 'utf8').trim(), 10);
|
|
44
|
+
if (pid && pid > 0) {
|
|
45
|
+
process.kill(pid, 0); // throws if process doesn't exist
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
} catch {
|
|
49
|
+
// Process not running — clean up stale files
|
|
50
|
+
try { fs.unlinkSync(PID_FILE); } catch {}
|
|
51
|
+
try { fs.unlinkSync(PORT_FILE); } catch {}
|
|
52
|
+
}
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
function getPort() {
|
|
57
|
+
try {
|
|
58
|
+
const raw = fs.readFileSync(PORT_FILE, 'utf8').trim();
|
|
59
|
+
// Support both JSON format (new) and plain number (old)
|
|
60
|
+
try {
|
|
61
|
+
const info = JSON.parse(raw);
|
|
62
|
+
return info.port;
|
|
63
|
+
} catch {
|
|
64
|
+
return parseInt(raw, 10);
|
|
65
|
+
}
|
|
66
|
+
} catch {
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
function openBrowser(url) {
|
|
72
|
+
const platform = process.platform;
|
|
73
|
+
let command;
|
|
74
|
+
if (platform === 'darwin') {
|
|
75
|
+
command = `open "${url}"`;
|
|
76
|
+
} else if (platform === 'win32') {
|
|
77
|
+
command = `start "" "${url}"`;
|
|
78
|
+
} else {
|
|
79
|
+
command = `xdg-open "${url}"`;
|
|
80
|
+
}
|
|
81
|
+
try {
|
|
82
|
+
execSync(command, { stdio: 'ignore' });
|
|
83
|
+
} catch {
|
|
84
|
+
console.log(` Could not auto-open browser. Visit: ${url}`);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
function waitForServer(maxAttempts, cb) {
|
|
89
|
+
let attempts = 0;
|
|
90
|
+
function check() {
|
|
91
|
+
const port = getPort();
|
|
92
|
+
if (port) {
|
|
93
|
+
const req = http.request({ hostname: '127.0.0.1', port, path: '/', method: 'HEAD' }, (res) => {
|
|
94
|
+
cb(port);
|
|
95
|
+
});
|
|
96
|
+
req.on('error', () => {
|
|
97
|
+
attempts++;
|
|
98
|
+
if (attempts < maxAttempts) setTimeout(check, 300);
|
|
99
|
+
else cb(port); // try anyway
|
|
100
|
+
});
|
|
101
|
+
req.end();
|
|
102
|
+
} else {
|
|
103
|
+
attempts++;
|
|
104
|
+
if (attempts < maxAttempts) setTimeout(check, 300);
|
|
105
|
+
else { console.error(' Server did not start in time.'); process.exit(1); }
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
check();
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// ─── Subcommands ─────────────────────────────────────────────────────────────
|
|
112
|
+
|
|
113
|
+
function cmdStop() {
|
|
114
|
+
if (!fs.existsSync(PID_FILE)) {
|
|
115
|
+
console.log(' Shards UI is not running.');
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
try {
|
|
119
|
+
const pid = parseInt(fs.readFileSync(PID_FILE, 'utf8').trim(), 10);
|
|
120
|
+
process.kill(pid, 'SIGTERM');
|
|
121
|
+
console.log(` Stopped Shards UI server (PID ${pid}).`);
|
|
122
|
+
} catch {
|
|
123
|
+
console.log(' Server process not found (already stopped).');
|
|
124
|
+
}
|
|
125
|
+
try { fs.unlinkSync(PID_FILE); } catch {}
|
|
126
|
+
try { fs.unlinkSync(PORT_FILE); } catch {}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
function cmdStatus() {
|
|
130
|
+
if (isServerRunning()) {
|
|
131
|
+
const port = getPort();
|
|
132
|
+
const pid = fs.readFileSync(PID_FILE, 'utf8').trim();
|
|
133
|
+
console.log(` Shards UI is running (PID ${pid}, port ${port}).`);
|
|
134
|
+
} else {
|
|
135
|
+
console.log(' Shards UI is not running.');
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
function cmdStart() {
|
|
140
|
+
console.log(`
|
|
141
|
+
SHARDS UI
|
|
142
|
+
─────────────────────────────`);
|
|
143
|
+
|
|
144
|
+
// 1. Ensure .shards/ exists
|
|
145
|
+
fs.mkdirSync(SHARDS_DIR, { recursive: true });
|
|
146
|
+
|
|
147
|
+
// 2. Copy UI source files to .shards/ui/
|
|
148
|
+
console.log(' Installing UI files...');
|
|
149
|
+
copyDir(UI_SRC, UI_DEST);
|
|
150
|
+
|
|
151
|
+
// 3. Set up Claude Code hooks for relay
|
|
152
|
+
setupHooks();
|
|
153
|
+
|
|
154
|
+
// 4. Check if server is already running
|
|
155
|
+
if (isServerRunning()) {
|
|
156
|
+
const port = getPort();
|
|
157
|
+
const url = `http://localhost:${port}`;
|
|
158
|
+
console.log(` Server already running at ${url}`);
|
|
159
|
+
openBrowser(url);
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
// 5. Spawn server in background (redirect output to log file for diagnostics)
|
|
164
|
+
console.log(' Starting server...');
|
|
165
|
+
const serverScript = path.join(UI_DEST, 'server.js');
|
|
166
|
+
const serverLogPath = path.join(SHARDS_DIR, 'server.log');
|
|
167
|
+
const serverLogFd = fs.openSync(serverLogPath, 'a');
|
|
168
|
+
const child = spawn(process.execPath, [serverScript], {
|
|
169
|
+
detached: true,
|
|
170
|
+
stdio: ['ignore', serverLogFd, serverLogFd],
|
|
171
|
+
cwd: PROJECT_DIR,
|
|
172
|
+
});
|
|
173
|
+
child.unref();
|
|
174
|
+
fs.closeSync(serverLogFd);
|
|
175
|
+
|
|
176
|
+
// 6. Wait for server to be ready then open browser
|
|
177
|
+
waitForServer(20, (port) => {
|
|
178
|
+
const url = `http://localhost:${port}`;
|
|
179
|
+
console.log(` Server running at ${url}`);
|
|
180
|
+
openBrowser(url);
|
|
181
|
+
console.log(`
|
|
182
|
+
Usage:
|
|
183
|
+
shards-ui Start UI and open browser
|
|
184
|
+
shards-ui stop Stop the UI server
|
|
185
|
+
shards-ui status Check if server is running
|
|
186
|
+
`);
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
// ─── Permission presets ──────────────────────────────────────────────────────
|
|
191
|
+
|
|
192
|
+
const PERMISSION_PRESETS = {
|
|
193
|
+
permissive: [
|
|
194
|
+
'Bash(find:*)', 'Bash(grep:*)', 'Bash(rg:*)', 'Bash(ls:*)',
|
|
195
|
+
'Bash(cat:*)', 'Bash(head:*)', 'Bash(tail:*)', 'Bash(wc:*)',
|
|
196
|
+
'Bash(git log:*)', 'Bash(git status:*)', 'Bash(git diff:*)',
|
|
197
|
+
'Bash(git branch:*)', 'Bash(git show:*)',
|
|
198
|
+
'Bash(echo:*)', 'Bash(pwd:*)', 'Bash(which:*)', 'Bash(env:*)',
|
|
199
|
+
'Bash(python:*)', 'Bash(python3:*)', 'Bash(node:*)',
|
|
200
|
+
'Bash(npm:*)', 'Bash(pip:*)', 'Bash(pip3:*)',
|
|
201
|
+
],
|
|
202
|
+
readonly: [
|
|
203
|
+
'Bash(find:*)', 'Bash(grep:*)', 'Bash(rg:*)', 'Bash(ls:*)',
|
|
204
|
+
'Bash(cat:*)', 'Bash(head:*)', 'Bash(tail:*)', 'Bash(wc:*)',
|
|
205
|
+
'Bash(git log:*)', 'Bash(git status:*)', 'Bash(git diff:*)',
|
|
206
|
+
'Bash(git branch:*)', 'Bash(git show:*)',
|
|
207
|
+
'Bash(echo:*)', 'Bash(pwd:*)', 'Bash(which:*)',
|
|
208
|
+
],
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
function parseCliPermissions() {
|
|
212
|
+
const args = process.argv.slice(3); // skip node, script, subcommand
|
|
213
|
+
const allow = [];
|
|
214
|
+
|
|
215
|
+
for (let i = 0; i < args.length; i++) {
|
|
216
|
+
if (args[i] === '--permissions' && args[i + 1]) {
|
|
217
|
+
const preset = args[i + 1].toLowerCase();
|
|
218
|
+
if (PERMISSION_PRESETS[preset]) {
|
|
219
|
+
allow.push(...PERMISSION_PRESETS[preset]);
|
|
220
|
+
} else {
|
|
221
|
+
console.error(` Unknown preset: ${args[i + 1]}. Available: ${Object.keys(PERMISSION_PRESETS).join(', ')}`);
|
|
222
|
+
process.exit(1);
|
|
223
|
+
}
|
|
224
|
+
i++;
|
|
225
|
+
} else if (args[i] === '--allow' && args[i + 1]) {
|
|
226
|
+
const patterns = args[i + 1].split(',').map(p => p.trim()).filter(Boolean);
|
|
227
|
+
for (const p of patterns) {
|
|
228
|
+
// If it looks like a raw command (no parens), wrap it in Bash(...)
|
|
229
|
+
allow.push(p.includes('(') ? p : `Bash(${p}:*)`);
|
|
230
|
+
}
|
|
231
|
+
i++;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
return allow;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
// ─── Claude Code hooks setup ─────────────────────────────────────────────────
|
|
239
|
+
|
|
240
|
+
function setupHooks() {
|
|
241
|
+
const claudeDir = path.join(PROJECT_DIR, '.claude');
|
|
242
|
+
fs.mkdirSync(claudeDir, { recursive: true });
|
|
243
|
+
|
|
244
|
+
const settingsPath = path.join(claudeDir, 'settings.json');
|
|
245
|
+
let settings = {};
|
|
246
|
+
if (fs.existsSync(settingsPath)) {
|
|
247
|
+
try {
|
|
248
|
+
settings = JSON.parse(fs.readFileSync(settingsPath, 'utf8'));
|
|
249
|
+
} catch {}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
const relayScript = path.join(UI_DEST, 'relay.js');
|
|
253
|
+
|
|
254
|
+
// PreToolUse hook timeout in seconds. Default Claude Code hook timeout is
|
|
255
|
+
// 600s; extend to 1800s (30 min) so users have a realistic window to
|
|
256
|
+
// respond to a permission card before CC falls back to internal rules.
|
|
257
|
+
const PRETOOL_HOOK_TIMEOUT_SEC = 1800;
|
|
258
|
+
|
|
259
|
+
// Claude Code hooks format: {"matcher": "<tool_name_or_empty>", "hooks": [{"type": "command", "command": "..."}]}
|
|
260
|
+
const requiredHooks = {
|
|
261
|
+
UserPromptSubmit: { matcher: '', hooks: [{ type: 'command', command: `node ${relayScript} user-prompt` }] },
|
|
262
|
+
Stop: { matcher: '', hooks: [{ type: 'command', command: `node ${relayScript} stop` }] },
|
|
263
|
+
PostToolUse: { matcher: '', hooks: [{ type: 'command', command: `node ${relayScript} post-tool-use` }] },
|
|
264
|
+
PreToolUse: {
|
|
265
|
+
matcher: 'Bash',
|
|
266
|
+
hooks: [{ type: 'command', command: `node ${relayScript} pre-tool-use`, timeout: PRETOOL_HOOK_TIMEOUT_SEC }],
|
|
267
|
+
},
|
|
268
|
+
};
|
|
269
|
+
|
|
270
|
+
if (!settings.hooks) settings.hooks = {};
|
|
271
|
+
|
|
272
|
+
let updated = false;
|
|
273
|
+
|
|
274
|
+
for (const [hookName, hookDef] of Object.entries(requiredHooks)) {
|
|
275
|
+
if (!settings.hooks[hookName]) {
|
|
276
|
+
settings.hooks[hookName] = [];
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
let found = false;
|
|
280
|
+
for (const entry of settings.hooks[hookName]) {
|
|
281
|
+
if (!entry.hooks) continue;
|
|
282
|
+
for (const h of entry.hooks) {
|
|
283
|
+
if (h.command && h.command.includes('relay.js')) {
|
|
284
|
+
found = true;
|
|
285
|
+
// Patch PreToolUse timeout on existing installs that predate this fix
|
|
286
|
+
if (hookName === 'PreToolUse' && h.timeout !== PRETOOL_HOOK_TIMEOUT_SEC) {
|
|
287
|
+
h.timeout = PRETOOL_HOOK_TIMEOUT_SEC;
|
|
288
|
+
updated = true;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
if (!found) {
|
|
294
|
+
settings.hooks[hookName].push(hookDef);
|
|
295
|
+
updated = true;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
// Add Bash permission for ui-push.js so agents can push panels without approval prompts
|
|
300
|
+
if (!settings.permissions) settings.permissions = {};
|
|
301
|
+
if (!settings.permissions.allow) settings.permissions.allow = [];
|
|
302
|
+
|
|
303
|
+
const uiPushPermission = 'Bash(node .shards/ui/ui-push.js:*)';
|
|
304
|
+
if (!settings.permissions.allow.includes(uiPushPermission)) {
|
|
305
|
+
settings.permissions.allow.push(uiPushPermission);
|
|
306
|
+
updated = true;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
const relayPreToolPermission = 'Bash(node .shards/ui/relay.js pre-tool-use*)';
|
|
310
|
+
if (!settings.permissions.allow.includes(relayPreToolPermission)) {
|
|
311
|
+
settings.permissions.allow.push(relayPreToolPermission);
|
|
312
|
+
updated = true;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
// Apply CLI --allow / --permissions flags
|
|
316
|
+
const cliPermissions = parseCliPermissions();
|
|
317
|
+
for (const perm of cliPermissions) {
|
|
318
|
+
if (!settings.permissions.allow.includes(perm)) {
|
|
319
|
+
settings.permissions.allow.push(perm);
|
|
320
|
+
updated = true;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
if (cliPermissions.length > 0) {
|
|
324
|
+
console.log(` Added ${cliPermissions.length} permission rule(s) from CLI flags.`);
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
if (updated) {
|
|
328
|
+
fs.writeFileSync(settingsPath, JSON.stringify(settings, null, 2));
|
|
329
|
+
console.log(' Configured Claude Code hooks for UI relay.');
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
// ─── CLI Entry ───────────────────────────────────────────────────────────────
|
|
334
|
+
|
|
335
|
+
const subcommand = process.argv[2] || 'start';
|
|
336
|
+
|
|
337
|
+
switch (subcommand) {
|
|
338
|
+
case 'start':
|
|
339
|
+
cmdStart();
|
|
340
|
+
break;
|
|
341
|
+
case 'stop':
|
|
342
|
+
cmdStop();
|
|
343
|
+
break;
|
|
344
|
+
case 'status':
|
|
345
|
+
cmdStatus();
|
|
346
|
+
break;
|
|
347
|
+
case 'help':
|
|
348
|
+
case '--help':
|
|
349
|
+
case '-h':
|
|
350
|
+
console.log(`
|
|
351
|
+
Shards UI — Real-time web dashboard for Shards agent sessions
|
|
352
|
+
|
|
353
|
+
Usage:
|
|
354
|
+
shards-ui Start the UI server and open browser
|
|
355
|
+
shards-ui stop Stop the running UI server
|
|
356
|
+
shards-ui status Check if the UI server is running
|
|
357
|
+
shards-ui help Show this help message
|
|
358
|
+
|
|
359
|
+
Permission flags (used with start):
|
|
360
|
+
--permissions <preset> Apply a permission preset
|
|
361
|
+
--allow <pattern>[,<pattern>,...] Allow specific tool patterns
|
|
362
|
+
|
|
363
|
+
Presets:
|
|
364
|
+
permissive Read-only shell tools + git + python/node/npm/pip
|
|
365
|
+
readonly Read-only shell tools + git only
|
|
366
|
+
|
|
367
|
+
Examples:
|
|
368
|
+
shards-ui start --permissions permissive
|
|
369
|
+
shards-ui start --allow "find,grep,ls"
|
|
370
|
+
shards-ui start --allow "Bash(python3:*),Bash(pytest:*)"
|
|
371
|
+
`);
|
|
372
|
+
break;
|
|
373
|
+
default:
|
|
374
|
+
console.log(` Unknown command: ${subcommand}`);
|
|
375
|
+
console.log(' Run "shards-ui help" for usage.');
|
|
376
|
+
process.exit(1);
|
|
377
|
+
}
|