xrefkit 0.7.16__tar.gz → 0.7.17__tar.gz
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.
- {xrefkit-0.7.16/xrefkit.egg-info → xrefkit-0.7.17}/PKG-INFO +1 -1
- {xrefkit-0.7.16 → xrefkit-0.7.17}/pyproject.toml +2 -2
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_plan_observation.py +1 -1
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/__init__.py +1 -1
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/dashboard.py +47 -1
- xrefkit-0.7.17/xrefkit/dashboard_pm.py +32 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/plan_observation.py +10 -8
- xrefkit-0.7.17/xrefkit/pm_progress_view.html +346 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17/xrefkit.egg-info}/PKG-INFO +1 -1
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit.egg-info/SOURCES.txt +2 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/LICENSE +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/README.md +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/setup.cfg +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_artifact_selected_family.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_attention_pet.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_attention_pet_client_protocol.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_attention_pet_codex_session.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_attention_pet_fit.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_azure_connection.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_azure_import.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_azure_recovery.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_azure_update_candidate.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_azure_writer.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_boundary_analysis.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_brownfield_csharp_structure_definitions.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_brownfield_file_editing_protocol.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_business_intake_conversation_definitions.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_business_intake_definition.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_calibration_lint.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_catalog_preparation_definition.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_check_skill_knowledge_xids.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_ci_workflow_invariants.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_cli.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_code_constraint_definition.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_collect_analyzer_sarif.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_compact_skill_logs.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_constraint_derivation_family_definition.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_constraint_derivation_selected_family.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_contribution_adoption_bytes.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_contribution_returns.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_convert_to_xrefkit_skill.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_cs_scope_probe.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_csharp_commonality.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_csharp_naming_profile.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_ctx.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_cutover_readiness.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_dashboard.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_database_batch_definition_migration.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_decision_checklist.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_decision_handoff.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_decision_trace.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_design_business_intake_selected_family.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_design_planning_definition_migration.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_dotnet_definition_candidate.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_editorial_family_definition.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_editorial_intake_definition.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_editorial_selected_family.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_embedded_startup_pack.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_engineering_decision.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_environment_isolation.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_error_policy_audit.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_error_policy_locator.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_execution_binding.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_existing_skill_definition_batch.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_final_skilldefinition_batch.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_flow_selected_family.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_fm_multiroot.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_gate.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_gateway.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_gateway_mcp.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_gateway_skill_adapter.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_gateway_work_items.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_goal_desired_state.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_governance_entry.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_governance_host.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_host_precheck.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_human_evaluation.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_implementation_flow_definition.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_implementation_review_selected_family.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_inbound_uploads.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_instruction_workflow.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_knowledge_relations_validator.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_language_review_definition.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_legacy_guidance.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_legacy_migration.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_legacy_resources.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_mcp_package_routing.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_mcp_setup.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_mcp_skills_extension.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_mcp_skills_transport.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_mcp_subagent_startup.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_mcp_subagent_startup_integration.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_ontology_assessment_validator.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_os_family_definition.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_os_knowledge_family_definition.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_os_selected_family.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_ownership.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_package_knowledge_resolution.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_package_skill_run.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_packaged_native_governance.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_packmeta.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_plan_markdown.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_principle_discovery.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_project_management_materialization.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_project_management_offline_progress.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_project_quality_baseline.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_public_skill.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_qa_report_definition.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_quality_issue_dashboard.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_quality_issues.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_reporting_profiles.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_reporting_quality.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_repository_skill_adoption.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_repository_startup_pack.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_resource_provider.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_runtime_contracts.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_sarif_to_locator.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_security_definition_migration.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_site_release_metadata.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_skill_definition.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_skill_definition_governance.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_skill_definition_mcp.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_skill_definition_runtime.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_skill_edits.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_skill_knowledge_audit.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_skill_maturity_return.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_skill_release_compatibility.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_skill_runtime_audit.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_skillmeta.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_skills_sync.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_source_analysis_fragments.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_structure_catalog.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_subagent_startup.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_subagent_startup_boundaries.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_unknown_resolution.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_verify_runtime_wheel.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_wbs.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_work_management.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_work_packages.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_workflow_family_definition.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_xref.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_xrefkit_instance.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_xrefkit_tools.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_xrefkit_v2_discovery.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_xrefkit_v2_models.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/tests/test_xrefkit_v2_pipeline.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/__main__.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/attention_pet/__init__.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/attention_pet/__main__.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/attention_pet/client.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/attention_pet/client_protocol.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/attention_pet/codex_session.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/attention_pet/evaluator.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/attention_pet/model.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/attention_pet/presentation.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/attention_pet/profiles.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/attention_pet/scenarios.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/attention_pet/server.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/attention_pet/store.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/azure_connection.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/azure_import.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/azure_recovery.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/azure_update_candidate.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/azure_writer.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/boundary_analysis.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/catalog_cli.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/cli.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/contracts.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/ctx.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/decision_checklist.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/decision_handoff.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/decision_trace.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/discovery.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/engineering_decision.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/execution_binding.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/execution_binding_cli.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/gate.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/gateway.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/goalstate.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/governance_entry.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/governance_entry_cli.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/governance_host.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/hashing.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/host_execution.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/host_precheck.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/import_skill.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/instance.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/loaders.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/mcp/__init__.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/mcp/audit.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/mcp/bootstrap.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/mcp/catalog.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/mcp/cli.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/mcp/client_cache.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/mcp/client_flow.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/mcp/context_registry.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/mcp/context_token.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/mcp/contracts.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/mcp/contribution_adoption.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/mcp/contribution_returns.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/mcp/dist.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/mcp/gateway.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/mcp/governed_overlays.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/mcp/inbound_uploads.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/mcp/knowledge_edits.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/mcp/legacy_guidance.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/mcp/legacy_migration.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/mcp/legacy_resources.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/mcp/ownership.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/mcp/repository.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/mcp/schemas.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/mcp/server.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/mcp/setup.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/mcp/skill_edits.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/mcp/skill_maturity.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/mcp/skills_extension.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/mcp/skills_transport.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/mcp/startup_contract_pack.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/mcp/subagent_startup.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/mcp/update_gate_intake.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/mcp_tools.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/models/__init__.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/models/common.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/models/effective_bundle.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/models/human_evaluation.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/models/local_manifest.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/models/package_manifest.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/models/run_log.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/models/server_config.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/models/skill_definition.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/operations_cli.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/ownership.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/packmeta.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/plan_markdown.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/principle_discovery.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/public_skill.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/quality_issues.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/registry.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/reporting.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/reporting_profiles.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/repository_skills.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/resolver.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/resource_provider.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/resources/attention_pet/client-state.schema.json +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/resources/attention_pet/pet.css +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/resources/attention_pet/pet.html +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/resources/attention_pet/pet.js +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/resources/base/contracts.json +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/resources/base/current.json +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/resources/base/generations/7a682a5272907354/contracts.json +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/resources/base/generations/7a682a5272907354/model_body.md +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/resources/base/generations/9929294385ccb7b0/contracts.json +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/resources/base/generations/9929294385ccb7b0/model_body.md +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/resources/base/model_body.md +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/resources/base/startup_sources/000_agent_entry.md +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/resources/base/startup_sources/011_startup_xref_routing.md +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/resources/base/startup_sources/015_shared_memory_operations.md +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/resources/base/startup_sources/016_uncertainty_protocol.md +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/resources/base/startup_sources/017_base_and_xref_layering.md +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/resources/base/startup_sources/053_context_direction_security_guard.md +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/resources/base/startup_sources/yomiyasu_LICENSE.txt +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/resources/engineering-decision-checklist.json +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/resources/migration/docs/guides/062_legacy_flow_skill_migration_guide.md +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/resources/migration/knowledge/operations/130_legacy_flow_skill_migration_rules.md +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/resources/migration/knowledge/organization/160_context_direction_guard_rules.md +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/resources/migration/skills/os/legacy_flow_skill_migration/SKILL.v1.md +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/resources/migration/skills/os/legacy_flow_skill_migration/references/legacy_flow_skill_migration_template.md +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/resources/migration/skills/repository_adoption.json +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/resources/migration/tools/migrate_legacy_flow_skill.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/runlog.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/skill_definition.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/skill_definition_catalog.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/skill_definition_governance.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/skill_knowledge_audit.html +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/skill_knowledge_audit.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/skillmeta.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/skillrun.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/skills_sync.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/structure_catalog.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/subagent_startup.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/tools/__init__.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/tools/__main__.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/unknown_resolution.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/v2_cli.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/wbs.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/work_management.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/work_management_view.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/workspace.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit/xref.py +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit.egg-info/dependency_links.txt +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit.egg-info/entry_points.txt +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit.egg-info/requires.txt +0 -0
- {xrefkit-0.7.16 → xrefkit-0.7.17}/xrefkit.egg-info/top_level.txt +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "xrefkit"
|
|
7
|
-
version = "0.7.
|
|
7
|
+
version = "0.7.17"
|
|
8
8
|
description = "Portable XID, Skill, Knowledge, workflow, and MCP runtime for XRefKit"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.11"
|
|
@@ -27,7 +27,7 @@ where = ["."]
|
|
|
27
27
|
include = ["xrefkit*"]
|
|
28
28
|
|
|
29
29
|
[tool.setuptools.package-data]
|
|
30
|
-
xrefkit = ["resources/**/*", "skill_knowledge_audit.html"]
|
|
30
|
+
xrefkit = ["resources/**/*", "skill_knowledge_audit.html", "pm_progress_view.html"]
|
|
31
31
|
|
|
32
32
|
[tool.pytest.ini_options]
|
|
33
33
|
testpaths = ["tests"]
|
|
@@ -158,7 +158,7 @@ class PlanObservationTests(unittest.TestCase):
|
|
|
158
158
|
self.assertEqual([], rows[1]["issues"])
|
|
159
159
|
|
|
160
160
|
def test_empty_directory_and_empty_steps_are_human_readable(self):
|
|
161
|
-
self.assertIn("
|
|
161
|
+
self.assertIn("この作業領域に個別の計画ファイルはありません", plan_panel(self.root, load_plans(self.root, [])))
|
|
162
162
|
self.plan["steps"] = []
|
|
163
163
|
self.write()
|
|
164
164
|
self.assertIn("工程がありません", plan_panel(self.root, load_plans(self.root, [])))
|
|
@@ -24,6 +24,7 @@ from xrefkit.quality_issues import (
|
|
|
24
24
|
decide_quality_issue, quality_decision_claims,
|
|
25
25
|
)
|
|
26
26
|
from xrefkit.plan_observation import artifact_path, load_plans, plan_panel
|
|
27
|
+
from xrefkit.dashboard_pm import pm_project_roots, progress_view
|
|
27
28
|
from xrefkit.work_management import confined_directory, load_workspaces
|
|
28
29
|
from xrefkit.skillrun import (
|
|
29
30
|
ACCEPTED_CLOSE_STATUSES,
|
|
@@ -1834,6 +1835,8 @@ def _html_page(payload: dict[str, object], *, console_area: str = "quality", csr
|
|
|
1834
1835
|
<p id="plan-return" hidden><a href="#">計画の工程へ戻る</a></p>
|
|
1835
1836
|
{audit_warning}
|
|
1836
1837
|
<section id="plans" class="panel">
|
|
1838
|
+
<pm-progress-board></pm-progress-board>
|
|
1839
|
+
<h2>計画Skillの計画ファイル</h2>
|
|
1837
1840
|
<p class="category-note">計画成果物 → 工程の詳細 → 実行モニタ。工程状態・プロセス進行・品質・承認は別の記録です。この画面は実行や再試行を起動しません。</p>
|
|
1838
1841
|
<button id="refresh-plans" class="refresh-button" type="button">計画を更新</button>
|
|
1839
1842
|
<label>作業領域 <select id="workspace-select">{workspace_options}</select></label>
|
|
@@ -1937,7 +1940,9 @@ def _html_page(payload: dict[str, object], *, console_area: str = "quality", csr
|
|
|
1937
1940
|
const issue = document.getElementById("navigation-issue");
|
|
1938
1941
|
let problems = [];
|
|
1939
1942
|
document.getElementById("workspace-select").value = selectedWorkspace || "";
|
|
1940
|
-
document.querySelectorAll(".plan-card
|
|
1943
|
+
const individualPlans = Array.from(document.querySelectorAll("#plans .plan-card, #plans .plan-error"));
|
|
1944
|
+
individualPlans.forEach(card => card.hidden = selectedWorkspace !== null && card.dataset.workspaceId !== selectedWorkspace);
|
|
1945
|
+
document.getElementById("individual-plan-empty").hidden = individualPlans.some(card => !card.hidden);
|
|
1941
1946
|
if (selectedWorkspace !== null && !Array.from(document.querySelectorAll("#workspace-select option")).some(option => option.value === selectedWorkspace)) problems.push("指定された作業領域が利用できません(未登録・競合)。");
|
|
1942
1947
|
if (requestedRunId !== null) {{
|
|
1943
1948
|
const paths = new Set(Array.from(document.querySelectorAll(".filterable-run")).filter(run => run.dataset.runId === requestedRunId && (selectedWorkspace === null || run.dataset.workspaceId === selectedWorkspace)).map(run => run.dataset.runPath));
|
|
@@ -2057,6 +2062,8 @@ def _html_page(payload: dict[str, object], *, console_area: str = "quality", csr
|
|
|
2057
2062
|
const response = await fetch(`/?t=${{Date.now()}}`, {{ cache: "no-store" }});
|
|
2058
2063
|
if (!response.ok) throw new Error(`Dashboard refresh failed: ${{response.status}}`);
|
|
2059
2064
|
const next = new DOMParser().parseFromString(await response.text(), "text/html");
|
|
2065
|
+
const pmBoard = document.querySelector("pm-progress-board");
|
|
2066
|
+
if (pmBoard) next.querySelector("pm-progress-board")?.replaceWith(pmBoard);
|
|
2060
2067
|
document.querySelector("header").replaceWith(next.querySelector("header"));
|
|
2061
2068
|
document.querySelector("main").replaceWith(next.querySelector("main"));
|
|
2062
2069
|
bindDashboard();
|
|
@@ -2068,6 +2075,7 @@ def _html_page(payload: dict[str, object], *, console_area: str = "quality", csr
|
|
|
2068
2075
|
}}
|
|
2069
2076
|
bindDashboard();
|
|
2070
2077
|
</script>
|
|
2078
|
+
{progress_view()}
|
|
2071
2079
|
</body>
|
|
2072
2080
|
</html>"""
|
|
2073
2081
|
|
|
@@ -2559,6 +2567,41 @@ class DashboardHandler(BaseHTTPRequestHandler):
|
|
|
2559
2567
|
except (OSError, RuntimeError):
|
|
2560
2568
|
_json_response(self, {"error": "quality decision storage unavailable"}, 503)
|
|
2561
2569
|
|
|
2570
|
+
def _pm_progress(self, route: str, query: dict[str, list[str]]) -> None:
|
|
2571
|
+
try:
|
|
2572
|
+
roots = pm_project_roots(self.server.root)
|
|
2573
|
+
if route == "/api/pm-projects":
|
|
2574
|
+
_json_response(self, {"projects": list(roots)})
|
|
2575
|
+
return
|
|
2576
|
+
keys = query.get("project", [])
|
|
2577
|
+
root = roots.get(keys[0]) if len(keys) == 1 else None
|
|
2578
|
+
if root is None:
|
|
2579
|
+
_json_response(self, {"error": "指定されたPMプロジェクトは閲覧範囲にありません。"}, 404)
|
|
2580
|
+
return
|
|
2581
|
+
from xrefkit_skills_project_management.progress_screen import project_snapshot, read_run_log
|
|
2582
|
+
|
|
2583
|
+
if route == "/api/pm-progress":
|
|
2584
|
+
_json_response(self, project_snapshot(root))
|
|
2585
|
+
return
|
|
2586
|
+
plans, dispatches = query.get("plan_hash", []), query.get("dispatch_id", [])
|
|
2587
|
+
run_ids = query.get("run_id", [])
|
|
2588
|
+
if len(plans) != 1 or len(dispatches) != 1 or len(run_ids) != 1 or not run_ids[0]:
|
|
2589
|
+
raise ValueError("missing run identity")
|
|
2590
|
+
body = read_run_log(root, plans[0], dispatches[0], run_ids[0]).encode("utf-8")
|
|
2591
|
+
except ImportError:
|
|
2592
|
+
_json_response(self, {"error": "PMの進捗表示に対応したProject Managementパッケージが必要です。"}, 503)
|
|
2593
|
+
return
|
|
2594
|
+
except (OSError, ValueError, TypeError, KeyError, RuntimeError):
|
|
2595
|
+
_json_response(self, {"error": "対応するPM記録を読み取れません。"}, 409)
|
|
2596
|
+
return
|
|
2597
|
+
self.send_response(200)
|
|
2598
|
+
self.send_header("Content-Type", "text/plain; charset=utf-8")
|
|
2599
|
+
self.send_header("X-Content-Type-Options", "nosniff")
|
|
2600
|
+
self.send_header("Cache-Control", "no-store")
|
|
2601
|
+
self.send_header("Content-Length", str(len(body)))
|
|
2602
|
+
self.end_headers()
|
|
2603
|
+
self.wfile.write(body)
|
|
2604
|
+
|
|
2562
2605
|
def do_GET(self) -> None:
|
|
2563
2606
|
parsed = urlparse(self.path)
|
|
2564
2607
|
# Prevent a foreign Host from reading the local approval browser token.
|
|
@@ -2610,6 +2653,9 @@ class DashboardHandler(BaseHTTPRequestHandler):
|
|
|
2610
2653
|
except (OSError, RuntimeError):
|
|
2611
2654
|
_json_response(self, {"error": "record storage or verification unavailable"}, 503)
|
|
2612
2655
|
return
|
|
2656
|
+
if parsed.path in {"/api/pm-projects", "/api/pm-progress", "/api/pm-run"}:
|
|
2657
|
+
self._pm_progress(parsed.path, parse_qs(parsed.query))
|
|
2658
|
+
return
|
|
2613
2659
|
if parsed.path == "/artifact":
|
|
2614
2660
|
values = parse_qs(parsed.query).get("path", [])
|
|
2615
2661
|
path = artifact_path(self.server.root, values[0]) if len(values) == 1 else None
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"""Discover PM projects inside the dashboard repository and registered workspaces."""
|
|
2
|
+
from pathlib import Path
|
|
3
|
+
|
|
4
|
+
from .work_management import confined_directory, load_workspaces
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
def pm_project_roots(root: Path) -> dict[str, Path]:
|
|
8
|
+
root = root.resolve()
|
|
9
|
+
workspaces = {root}
|
|
10
|
+
for row in load_workspaces(root):
|
|
11
|
+
if row["workspace"] and not row["issues"]:
|
|
12
|
+
workspace = confined_directory(root, row["workspace"]["workspace_root"])
|
|
13
|
+
if workspace is not None:
|
|
14
|
+
workspaces.add(workspace)
|
|
15
|
+
|
|
16
|
+
projects = {}
|
|
17
|
+
for workspace in workspaces:
|
|
18
|
+
candidates = [workspace]
|
|
19
|
+
work = confined_directory(workspace, "work")
|
|
20
|
+
if work is not None:
|
|
21
|
+
candidates.extend(work.iterdir())
|
|
22
|
+
for candidate in candidates:
|
|
23
|
+
location = candidate.resolve()
|
|
24
|
+
history = location / "process-history.json"
|
|
25
|
+
if (location.is_relative_to(workspace) and history.is_file()
|
|
26
|
+
and history.resolve().is_relative_to(location)):
|
|
27
|
+
projects[location.relative_to(root).as_posix()] = location
|
|
28
|
+
return dict(sorted(projects.items()))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def progress_view() -> str:
|
|
32
|
+
return Path(__file__).with_name("pm_progress_view.html").read_text(encoding="utf-8")
|
|
@@ -195,19 +195,19 @@ def _read_plan(path: Path) -> object:
|
|
|
195
195
|
def load_plans(root: Path, runs: list[dict], *, plans_dir: Path | None = None, workspace_id: str | None = None) -> list[dict]:
|
|
196
196
|
"""Keep independent malformed intake visible without crashing the dashboard."""
|
|
197
197
|
directory = plans_dir if plans_dir is not None else root.resolve() / "work" / "plans"
|
|
198
|
-
if not directory.exists():
|
|
199
|
-
return []
|
|
200
198
|
rows: list[dict] = []
|
|
201
199
|
by_run: dict[str, list[dict]] = {}
|
|
202
200
|
for run in runs:
|
|
203
201
|
if run.get("run_id"):
|
|
204
202
|
by_run.setdefault(run["run_id"], []).append(run)
|
|
205
203
|
try:
|
|
206
|
-
paths = sorted(directory.
|
|
204
|
+
paths = sorted(p for p in directory.iterdir() if p.match("*.json"))
|
|
205
|
+
except FileNotFoundError:
|
|
206
|
+
return []
|
|
207
207
|
except OSError as exc:
|
|
208
|
-
return [{"file": "
|
|
208
|
+
return [{"file": str(directory.relative_to(root.resolve())), "workspace_id": workspace_id, "issues": [f"計画一覧を読めません: {exc}"], "plan": None}]
|
|
209
209
|
for path in paths[:MAX_PLAN_FILES]:
|
|
210
|
-
row: dict = {"file": str(path.relative_to(root.resolve())), "issues": [], "plan": None}
|
|
210
|
+
row: dict = {"file": str(path.relative_to(root.resolve())), "workspace_id": workspace_id, "issues": [], "plan": None}
|
|
211
211
|
try:
|
|
212
212
|
if artifact_path(root, row["file"]) is None:
|
|
213
213
|
raise ValueError("計画ファイルがリポジトリ内の通常ファイルではありません")
|
|
@@ -320,14 +320,16 @@ def _dependency_graph(steps: list[dict]) -> str:
|
|
|
320
320
|
|
|
321
321
|
|
|
322
322
|
def plan_panel(root: Path, rows: list[dict]) -> str:
|
|
323
|
+
empty = '<section id="individual-plan-empty" class="empty"{}>この作業領域に個別の計画ファイルはありません。</section>'
|
|
323
324
|
if not rows:
|
|
324
|
-
return
|
|
325
|
+
return empty.format("")
|
|
325
326
|
cards: list[str] = []
|
|
326
327
|
for row in rows:
|
|
327
328
|
errors = "".join(f"<li>{_display(issue)}</li>" for issue in row["issues"])
|
|
328
329
|
plan = row["plan"]
|
|
329
330
|
if plan is None:
|
|
330
|
-
|
|
331
|
+
scope = html.escape(row.get("workspace_id") or "", quote=True)
|
|
332
|
+
cards.append(f'<article class="box plan-error" data-workspace-id="{scope}"><h3>{_display(row["file"])}</h3><p>計画表示不可</p><ul>{errors}</ul></article>')
|
|
331
333
|
continue
|
|
332
334
|
if plan["schema_version"] == 2:
|
|
333
335
|
from xrefkit.work_management_view import plan_v2_card
|
|
@@ -368,7 +370,7 @@ def plan_panel(root: Path, rows: list[dict]) -> str:
|
|
|
368
370
|
<p>承認状態(記録値): {_display(plan.get("approval_status"))} | 承認根拠: {artifact(plan.get("approval_evidence"))}</p>
|
|
369
371
|
<ul>{errors}</ul><h4>工程と依存関係</h4><p>「工程 ← 依存先」を表示します。工程を選ぶと詳細とモニタリンクが開きます。</p>
|
|
370
372
|
{_dependency_graph(plan["steps"])}<ul class="plan-dependencies">{"".join(dependencies) or "<li>工程がありません</li>"}</ul>{"".join(details)}</article>''')
|
|
371
|
-
return "".join(cards)
|
|
373
|
+
return "".join(cards) + empty.format(" hidden")
|
|
372
374
|
|
|
373
375
|
|
|
374
376
|
def main(argv: list[str] | None = None) -> int:
|
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
<template id="pm-board-template">
|
|
2
|
+
<style>
|
|
3
|
+
:host{display:block;min-width:0;margin:0 0 24px;color:#18383c;font:14px/1.5 "Yu Gothic UI",Meiryo,sans-serif}*{box-sizing:border-box}h2,h3,p,dl,dd{margin:0}h2{font-size:25px}h3{font-size:18px}button,select{font:inherit;color:inherit}button,a,select,summary{touch-action:manipulation}button:focus-visible,a:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #1869c4;outline-offset:3px}
|
|
4
|
+
header,.bar,.keys,.current,.tools{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.tools{justify-content:flex-start}.clock{font-size:12px;color:#4a616b;text-align:right}.frame,article{padding:16px;background:white;border:1px solid #cbd8d8;border-radius:9px}.frame{margin-top:12px}.keys,.current{justify-content:flex-start}.keys{font-size:12px;margin:12px 0}.key:before{content:"";display:inline-block;width:11px;height:11px;border:1px solid var(--edge);border-radius:3px;vertical-align:-1px;background:var(--fill);margin-right:4px}
|
|
5
|
+
[data-state]{--fill:#edf0f3;--edge:#99a5b1;--ink:#40505d;--chip:#dbe1e7}[data-state=done]{--fill:#dbf2de;--edge:#39814b;--ink:#1b602d;--chip:#c1e7c7}[data-state=running]{--fill:#dceaff;--edge:#356fc0;--ink:#174e98;--chip:#c0d9fc}[data-state=waiting]{--fill:#fff4db;--edge:#b68831;--ink:#724c08;--chip:#ffe6ad}[data-state=blocked]{--fill:#fff0ee;--edge:#c56761;--ink:#942a26;--chip:#fbd6d1}
|
|
6
|
+
.scroll{overflow:auto;padding:5px}.map{position:relative;display:grid;gap:19px;align-items:stretch}.stage{position:relative;display:flex;flex-direction:column;gap:10px;justify-content:center;min-width:0}.node{border:1px solid var(--edge);background:var(--fill);color:var(--ink);border-radius:7px;padding:8px;text-align:left;cursor:pointer;width:100%;overflow-wrap:anywhere;line-height:1.35}.node b{display:block;font-size:13px}.node.gate{border-style:dashed}.node[aria-pressed=true]{outline:2px solid #273b44;outline-offset:2px}.badge{display:inline-block;background:var(--chip);color:var(--ink);border-radius:5px;font-size:11px;padding:2px 5px;margin:4px 0 0}svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
|
|
7
|
+
.lower{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:12px;margin-top:12px}small,dt,.muted{color:#536970;font-size:12px}.current{margin:3px 0 10px}.notice{color:#883a18}.notice:not(:empty){padding:8px;background:#fff5e8}.obs{background:#f1f6f5;padding:8px 10px;border-left:3px solid #548780;margin:8px 0}dl{display:grid;grid-template-columns:auto 1fr;gap:4px 10px}summary,a{color:#06695d}details{margin-top:10px}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}select{max-width:100%;border:1px solid #9aaeb1;border-radius:5px;padding:4px;background:white}.ledger{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid #dfe6e7;padding:6px 0}.ledger b{white-space:nowrap}.ok{color:#216548}.wait{color:#785c20}article,.tools,.frame,dd{min-width:0;overflow-wrap:anywhere}[hidden]{display:none}
|
|
8
|
+
@media(max-width:800px){.map{grid-template-columns:1fr!important;gap:18px;min-width:0!important}.stage{flex-direction:row;align-items:center}.stage>.node{flex:1;min-width:0}.lower{grid-template-columns:minmax(0,1fr)}.clock{text-align:left}.frame,article{padding:12px}}
|
|
9
|
+
.project-intro{margin:0 0 18px;padding:0 0 15px;border-bottom:1px solid #cbd8d8}.project-intro p{max-width:78em;white-space:pre-line;margin-top:4px}
|
|
10
|
+
h4{margin:16px 0 5px;font-size:15px}.node[data-state=done]{--fill:#f1f8f1;--edge:#a4bea7;--chip:#daeadd}.node[data-state=running],.node[data-state=blocked],.node.gate[data-state=waiting]{border-width:2px}.node[data-state=running]{box-shadow:inset 3px 0 #356fc0}.node .muted{display:block;margin-top:5px}.spotlight{margin:10px 0;color:#244952}.history{margin:0;padding-left:22px}.history li{padding:3px 0}.runref{overflow-wrap:anywhere;margin-bottom:4px}.lower dl{grid-template-columns:minmax(85px,30%) minmax(0,1fr)}.lower dt,.lower dd{padding:2px 0;white-space:pre-line}
|
|
11
|
+
.lower summary{cursor:pointer;font-weight:600;padding:6px 0}.lower details{border-top:1px solid #dfe6e7;margin-top:6px}.lower summary small{font-weight:400}#section-tools button{background:white;border:1px solid #9aaeb1;border-radius:5px;padding:3px 8px;cursor:pointer}
|
|
12
|
+
</style>
|
|
13
|
+
<section class="project-intro" id="project-intro" hidden><h2>プロジェクト概要</h2><p id="summary"></p></section>
|
|
14
|
+
<header><div><small>Project Management</small><h2>作業進捗</h2></div><div class="clock">画面の最終取得 <b id="clock">—</b><br>自動更新 15秒</div></header>
|
|
15
|
+
<div class="tools"><label>プロジェクト <select id="project"></select></label><span class="muted" id="version">PM計画 未取得</span></div><p class="notice" id="warning" role="status"></p>
|
|
16
|
+
<section class="frame"><div class="bar"><h3>計画全体</h3><small id="count"></small></div>
|
|
17
|
+
<p class="spotlight" id="spotlight"></p><div class="keys"><span class="key" data-state="done">完了</span><span class="key" data-state="running">実行中</span><span class="key" data-state="planned">未実行</span><span class="key" data-state="waiting">受領・判断待ち</span><span class="key" data-state="blocked">停止</span></div>
|
|
18
|
+
<div class="scroll"><div class="map" id="map" aria-label="工程の流れ"></div></div><small>矢印はステージ境界の順序・分岐・合流。各工程の開始条件は詳細に表示。破線枠は確認点。</small></section>
|
|
19
|
+
<div class="lower"><article><div class="bar"><small>選択した工程</small><div id="section-tools" hidden><button type="button" id="expand">すべて展開</button> <button type="button" id="collapse">すべて折りたたむ</button></div></div>
|
|
20
|
+
<div id="selection"></div><div id="detail" hidden>
|
|
21
|
+
<details open><summary>工程の目的<small> PM計画</small></summary><div id="purpose"></div></details>
|
|
22
|
+
<details open><summary>現在の作業<small> 作業項目の申告</small></summary><div id="current-work"></div></details>
|
|
23
|
+
<details><summary>記録時刻<small> 画面観測・実行ログ</small></summary><div id="times"></div></details>
|
|
24
|
+
<details open><summary>直近の記録(最大5件・古い順)</summary><div id="history"></div></details>
|
|
25
|
+
<details><summary>日付のみのフェーズ記録(記録順)</summary><div id="phases"></div></details>
|
|
26
|
+
<details><summary>実行と再試験<small> PM実行・受領</small></summary><div id="runs"></div></details>
|
|
27
|
+
<details><summary>開始条件<small> PM計画・受領</small></summary><div id="conditions"></div></details>
|
|
28
|
+
<details><summary>成果物・状態の根拠</summary><div id="products"></div></details>
|
|
29
|
+
<details id="proof"><summary>状態の根拠を見る</summary><pre id="identity"></pre><a id="log" target="_blank" rel="noopener">この実行のログを開く</a></details></div></article><article><details id="successors" hidden><summary id="targetLabel">合流先・後続工程</summary><div id="next"></div></details></article></div>
|
|
30
|
+
</template>
|
|
31
|
+
<script>
|
|
32
|
+
(() => {
|
|
33
|
+
const el = (tag, value, cls) => {
|
|
34
|
+
const element = document.createElement(tag);
|
|
35
|
+
if (value != null) element.textContent = value;
|
|
36
|
+
if (cls) element.className = cls;
|
|
37
|
+
return element;
|
|
38
|
+
};
|
|
39
|
+
function facts(container, values) {
|
|
40
|
+
const dl = el("dl");
|
|
41
|
+
for (const [label,value] of values) dl.append(el("dt",label),el("dd",value));
|
|
42
|
+
container.append(dl);
|
|
43
|
+
}
|
|
44
|
+
function logUrl(project, plan, run) {
|
|
45
|
+
return "/api/pm-run?" + new URLSearchParams({project,plan_hash:plan,dispatch_id:run.dispatch_id,run_id:run.run_id});
|
|
46
|
+
}
|
|
47
|
+
function eventTime(value) { return value ? dateText(value) : "時刻未記録"; }
|
|
48
|
+
function reportNote(n,at) {
|
|
49
|
+
if (n.state !== "running") return "";
|
|
50
|
+
if (!n.last_report_at) return "作業項目の報告時刻は未記録";
|
|
51
|
+
if (Date.parse(at) - Date.parse(n.last_report_at) < 15000) return "";
|
|
52
|
+
return "直近15秒に新しい作業報告なし";
|
|
53
|
+
}
|
|
54
|
+
function taskObservation(section,heading,n,data,project) {
|
|
55
|
+
const current = n.current_items || [];
|
|
56
|
+
const running = n.state === "running";
|
|
57
|
+
const interval = at => running && at ? "(取得時点で " + elapsedText(at,data.fetched_at) + " 経過)" : "";
|
|
58
|
+
facts(section("current-work"),[
|
|
59
|
+
["担当Skill",n.skill],["作業項目(担当側の申告)",current.map(item=>[item.item_id,item.text || "本文未報告"].filter(Boolean).join(" ")).join(" / ") || "作業項目未報告"]
|
|
60
|
+
]);
|
|
61
|
+
if (n.dispatch_id && !n.log_available) heading.append(el("p","根拠ログ未取得/照合不能 ・ Run状況未確認","notice"));
|
|
62
|
+
if (n.observation_issue) heading.append(el("p",n.observation_issue,"notice"));
|
|
63
|
+
const note = reportNote(n,data.fetched_at);
|
|
64
|
+
if (note) heading.append(el("p",note,"obs"));
|
|
65
|
+
facts(section("times"),[
|
|
66
|
+
["PM履歴の読取完了",eventTime(data.pm_observed_at)],
|
|
67
|
+
["Run開封",eventTime(n.run_opened_at) + interval(n.run_opened_at)],
|
|
68
|
+
["作業項目の最終報告記録",eventTime(n.last_report_at) + interval(n.last_report_at)],
|
|
69
|
+
["ログファイル最終更新",eventTime(n.updated_at)]
|
|
70
|
+
]);
|
|
71
|
+
const history = (n.operation_history || []).slice(-5);
|
|
72
|
+
if (history.length) {
|
|
73
|
+
const list = el("ol",null,"history");
|
|
74
|
+
for (const entry of history) {
|
|
75
|
+
const row = el("li");
|
|
76
|
+
row.title = entry.event_id || "";
|
|
77
|
+
row.append(el("small",eventTime(entry.at) + " " + entry.source + " · " + entry.kind),el("div",entry.text || [entry.subject_ref,entry.status].filter(Boolean).join(" ")));
|
|
78
|
+
if (n.log_available && n.run_id) {
|
|
79
|
+
const link=el("a","根拠ログ");
|
|
80
|
+
link.href=logUrl(project,data.plan_hash,n);
|
|
81
|
+
link.dataset.eventProof=entry.event_id;
|
|
82
|
+
link.target="_blank"; link.rel="noopener"; link.title=entry.event_id;
|
|
83
|
+
link.setAttribute("aria-label",entry.kind+" の根拠ログ · "+entry.event_id);
|
|
84
|
+
row.append(link);
|
|
85
|
+
}
|
|
86
|
+
list.append(row);
|
|
87
|
+
}
|
|
88
|
+
section("history").append(list);
|
|
89
|
+
} else section("history").append(el("p","時刻付きの記録なし","muted"));
|
|
90
|
+
if (n.phase_history?.length) {
|
|
91
|
+
const list=el("ul",null,"history");
|
|
92
|
+
for (const entry of n.phase_history) list.append(el("li",[entry.date || "日付不明",entry.text,entry.source].filter(Boolean).join(" ")));
|
|
93
|
+
section("phases").append(list);
|
|
94
|
+
}
|
|
95
|
+
const runs=n.runs || [], related=n.related_runs || [];
|
|
96
|
+
facts(section("runs"),[
|
|
97
|
+
["この計画版・タスクのPM配信回数",n.dispatch_count == null ? "未記録" : n.dispatch_count + "回"],
|
|
98
|
+
["照合できたPM実行",runs.length + "件"],
|
|
99
|
+
["補助Runとの関連記録",related.length ? related.length + "件" : "未記録"],
|
|
100
|
+
["理由・対象版が記録された再試験",related.some(r=>r.reason && r.version) ? related.filter(r=>r.reason && r.version).length + "件" : "未記録"],
|
|
101
|
+
["直近の記録結果",n.last_result || history.filter(e=>e.kind==="check.result_recorded").at(-1)?.text || "未記録"],
|
|
102
|
+
["テストコマンド実行数・失敗数","未記録"]
|
|
103
|
+
]);
|
|
104
|
+
for (const r of [...runs,...related]) {
|
|
105
|
+
const link = el("a",r.run_id);
|
|
106
|
+
link.href=logUrl(project,data.plan_hash,r); link.target="_blank"; link.rel="noopener";
|
|
107
|
+
link.dataset.runProof=r.run_id;
|
|
108
|
+
const row=el("p",null,"runref");row.append(link);
|
|
109
|
+
if (related.includes(r)) {
|
|
110
|
+
row.append(el("div","対象版 " + (r.version || "未記録") + " / 理由 " + (r.reason || "未記録") + " / 結果 " + (r.result || "未記録")));
|
|
111
|
+
if (r.report_excerpt) row.append(el("div","PM受領済み報告の抜粋 " + r.report_excerpt));
|
|
112
|
+
if (r.report_status || r.report_ref) row.append(el("small","報告全体の判定・出典 " + [r.report_status,r.report_ref].filter(Boolean).join(" / ")));
|
|
113
|
+
} else {
|
|
114
|
+
row.append(el("span"," PM実行記録 " + (r.status || "未記録") + (r.reason ? " / " + r.reason : "")));
|
|
115
|
+
}
|
|
116
|
+
section("runs").append(row);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
function conditions(container,n) {
|
|
120
|
+
const branches = n.prior_stage || [];
|
|
121
|
+
const confirmation = n.prior_confirmations || [];
|
|
122
|
+
facts(container,[
|
|
123
|
+
["計画上の前工程",combined(n.previous_tasks)],
|
|
124
|
+
["日程上の前提",n.task ? combined(n.dependencies) : "対象外(確認点)"],
|
|
125
|
+
["必要な入力とPM受領",(n.inputs || []).map(id=>id + "(" + (n.received_inputs.includes(id) ? "受領済み" : "未受領") + ")").join("、") || "指定なし"],
|
|
126
|
+
["前ステージの対象枝",branches.length ? branches.filter(b=>b.done).length + "/" + branches.length + "件完了 " + branches.map(b=>b.title+"("+(b.done?"完了":"未完了")+")").join("、") : "なし"],
|
|
127
|
+
["先行確認",confirmation.map(c=>c.title+"("+(c.confirmed?"確認済み":"確認待ち")+")").join("、") || "なし"],
|
|
128
|
+
["判断者・確認者",n.task ? "対象外(通常工程)" : combined(n.reviewers)],
|
|
129
|
+
["判断基準",n.task ? "対象外(通常工程)" : (n.criteria || []).join("\n") || "未記録"]
|
|
130
|
+
]);
|
|
131
|
+
}
|
|
132
|
+
const keyOf = n => JSON.stringify(n.task ? [n.detail_plan,n.task] : [n.id]);
|
|
133
|
+
const dateText = value => value ? new Date(value).toLocaleString("ja-JP", {hour12:false}) : "未確認";
|
|
134
|
+
function elapsedText(updated, observed) {
|
|
135
|
+
const seconds = Math.max(0,Math.floor((Date.parse(observed) - Date.parse(updated))/1000));
|
|
136
|
+
return Math.floor(seconds/60) + "分" + seconds%60 + "秒";
|
|
137
|
+
}
|
|
138
|
+
const combined = values => (values || []).join("、") || "なし";
|
|
139
|
+
async function get(path, params, signal) {
|
|
140
|
+
const response = await fetch(path + "?" + new URLSearchParams(params), {cache:"no-store",signal});
|
|
141
|
+
const data = await response.json();
|
|
142
|
+
if (!response.ok) throw new Error(data.error || "取得失敗");
|
|
143
|
+
return data;
|
|
144
|
+
}
|
|
145
|
+
class ProgressBoard extends HTMLElement {
|
|
146
|
+
constructor() {
|
|
147
|
+
super();
|
|
148
|
+
this.attachShadow({mode:"open"}).append(document.getElementById("pm-board-template").content.cloneNode(true));
|
|
149
|
+
this.$ = id => this.shadowRoot.getElementById(id);
|
|
150
|
+
for (const [id,open] of [["expand",true],["collapse",false]]) {
|
|
151
|
+
this.$(id).onclick = () => {
|
|
152
|
+
for (const panel of this.shadowRoot.querySelectorAll(".lower details")) panel.open = open;
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
this.project = new URLSearchParams(location.search).get("pm_project") || "";
|
|
156
|
+
this.$("project").onchange = () => {
|
|
157
|
+
this.project = this.$("project").value;
|
|
158
|
+
navigation.searchParams.set("pm_project",this.project);
|
|
159
|
+
updateNavigation();
|
|
160
|
+
this.selection = null;
|
|
161
|
+
this.snapshot = null;
|
|
162
|
+
this.clear();
|
|
163
|
+
this.refresh();
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
connectedCallback() {
|
|
167
|
+
const activate = () => {
|
|
168
|
+
const visible = document.body.dataset.panel === "plans";
|
|
169
|
+
if (visible === this.active) return;
|
|
170
|
+
this.active = visible;
|
|
171
|
+
if (visible) this.refresh(); else this.stop();
|
|
172
|
+
};
|
|
173
|
+
this.watch = new MutationObserver(activate);
|
|
174
|
+
this.watch.observe(document.body,{attributes:true,attributeFilter:["data-panel"]});
|
|
175
|
+
this.resize = new ResizeObserver(() => this.wires());
|
|
176
|
+
this.resize.observe(this.$("map"));
|
|
177
|
+
activate();
|
|
178
|
+
}
|
|
179
|
+
disconnectedCallback() {
|
|
180
|
+
this.stop(); this.watch.disconnect(); this.resize.disconnect(); this.active = false;
|
|
181
|
+
}
|
|
182
|
+
stop() {
|
|
183
|
+
clearTimeout(this.timer);
|
|
184
|
+
this.controller?.abort();
|
|
185
|
+
}
|
|
186
|
+
clear() {
|
|
187
|
+
this.$("project-intro").hidden = true;
|
|
188
|
+
this.$("summary").textContent = "";
|
|
189
|
+
for (const id of ["map","selection","next","count","identity","version","warning","spotlight"]) this.$(id).replaceChildren();
|
|
190
|
+
for (const id of ["section-tools","detail","successors"]) this.$(id).hidden = true;
|
|
191
|
+
this.$("version").textContent = "PM計画 未取得";
|
|
192
|
+
this.$("clock").textContent = "—";
|
|
193
|
+
}
|
|
194
|
+
async refresh() {
|
|
195
|
+
this.stop();
|
|
196
|
+
const ctl = this.controller = new AbortController();
|
|
197
|
+
try {
|
|
198
|
+
const {projects} = await get("/api/pm-projects",{},ctl.signal);
|
|
199
|
+
if (ctl.signal.aborted) return;
|
|
200
|
+
this.project ||= projects[0] || "";
|
|
201
|
+
const select = this.$("project");
|
|
202
|
+
const choices = [...projects];
|
|
203
|
+
if (this.project && !choices.includes(this.project)) choices.unshift(this.project);
|
|
204
|
+
if (JSON.stringify(choices) !== this.choices) {
|
|
205
|
+
select.replaceChildren(...choices.map(path => new Option(path,path)));
|
|
206
|
+
this.choices = JSON.stringify(choices);
|
|
207
|
+
}
|
|
208
|
+
select.value = this.project;
|
|
209
|
+
if (!this.project) { this.clear(); this.$("warning").textContent = "閲覧範囲にPMプロジェクトがありません。"; return; }
|
|
210
|
+
const data = await get("/api/pm-progress",{project:this.project},ctl.signal);
|
|
211
|
+
if (ctl.signal.aborted) return;
|
|
212
|
+
this.$("warning").textContent = "";
|
|
213
|
+
this.snapshot = data;
|
|
214
|
+
this.render();
|
|
215
|
+
} catch (error) {
|
|
216
|
+
if (!ctl.signal.aborted) this.$("warning").textContent = "取得失敗 " + error.message +
|
|
217
|
+
(this.snapshot ? " 最後に取得した状態を表示しています。" : "");
|
|
218
|
+
} finally {
|
|
219
|
+
if (!ctl.signal.aborted && this.active) this.timer = setTimeout(() => this.refresh(),15000);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
render() {
|
|
223
|
+
const data = this.snapshot, map = this.$("map");
|
|
224
|
+
this.$("summary").textContent = data.project_summary || "";
|
|
225
|
+
this.$("project-intro").hidden = !data.project_summary;
|
|
226
|
+
const gates = i => data.milestones.filter(n => n.after_stage === i);
|
|
227
|
+
const columns = [gates(-1)];
|
|
228
|
+
data.stages.forEach((stage,i) => columns.push(stage,gates(i)));
|
|
229
|
+
this.columns = columns.filter(col => col.length);
|
|
230
|
+
this.nodes = this.columns.flat();
|
|
231
|
+
if (!this.selection && this.nodes.length) {
|
|
232
|
+
this.select(this.nodes.find(n => !n.task && n.state==="waiting") ||
|
|
233
|
+
this.nodes.find(n => n.state==="blocked") ||
|
|
234
|
+
this.nodes.find(n => ["running","waiting","unknown"].includes(n.state)) ||
|
|
235
|
+
this.nodes.find(n => n.state !== "done" && n.state !== "excluded") || this.nodes[0]);
|
|
236
|
+
}
|
|
237
|
+
const focused = this.shadowRoot.activeElement?.dataset.node;
|
|
238
|
+
const focusedRun = this.shadowRoot.activeElement?.dataset.runProof;
|
|
239
|
+
const focusedEvent = this.shadowRoot.activeElement?.dataset.eventProof;
|
|
240
|
+
const active = this.nodes.filter(n=>["running","waiting","blocked"].includes(n.state));
|
|
241
|
+
this.$("spotlight").textContent = active.length ? active.map(n=>n.label+" "+n.title+
|
|
242
|
+
(!n.task && n.reviewers?.length ? "("+combined(n.reviewers)+")":"")).join(" / ") : "現在、実行中・受領待ち・要判断・停止の工程はありません。";
|
|
243
|
+
const fragments = this.columns.map(col => {
|
|
244
|
+
const stage = el("div",null,"stage");
|
|
245
|
+
col.forEach(n => {
|
|
246
|
+
const b = el("button",null,"node" + (n.task ? "" : " gate"));
|
|
247
|
+
b.dataset.node = keyOf(n); b.dataset.state = n.state;
|
|
248
|
+
b.append(el("b",n.title),el("span",n.label,"badge"));
|
|
249
|
+
const note = reportNote(n,data.fetched_at);
|
|
250
|
+
if (note) b.append(el("small",note,"muted"));
|
|
251
|
+
b.onclick = () => { this.select(n); this.details(); };
|
|
252
|
+
stage.append(b);
|
|
253
|
+
});
|
|
254
|
+
return stage;
|
|
255
|
+
});
|
|
256
|
+
const svg = document.createElementNS("http://www.w3.org/2000/svg","svg");
|
|
257
|
+
svg.setAttribute("aria-hidden","true");
|
|
258
|
+
map.style.gridTemplateColumns = "repeat(" + this.columns.length + ", minmax(0,1fr))";
|
|
259
|
+
map.style.minWidth = (this.columns.length * 104) + "px";
|
|
260
|
+
map.replaceChildren(svg,...fragments);
|
|
261
|
+
this.$("clock").textContent = dateText(data.fetched_at);
|
|
262
|
+
this.$("version").textContent = (data.approved ? "承認済み計画 " : "計画案 ") + data.plan_hash.slice(0,10);
|
|
263
|
+
this.$("count").textContent = data.stages.flat().length + "タスク・" + data.milestones.length + "確認点";
|
|
264
|
+
this.details();
|
|
265
|
+
if (focused) Array.from(map.querySelectorAll("button")).find(b=>b.dataset.node===focused)?.focus({preventScroll:true});
|
|
266
|
+
if (focusedEvent) Array.from(this.$("detail").querySelectorAll("[data-event-proof]")).find(a=>a.dataset.eventProof===focusedEvent)?.focus({preventScroll:true});
|
|
267
|
+
if (focusedRun) Array.from(this.$("detail").querySelectorAll("[data-run-proof]")).find(a=>a.dataset.runProof===focusedRun)?.focus({preventScroll:true});
|
|
268
|
+
this.wires();
|
|
269
|
+
}
|
|
270
|
+
select(n) {
|
|
271
|
+
this.selection = {key:keyOf(n),plan:this.snapshot.plan_hash,dispatch:n.dispatch_id,run:n.run_id};
|
|
272
|
+
}
|
|
273
|
+
wires() {
|
|
274
|
+
const map = this.$("map"), svg = map.querySelector("svg");
|
|
275
|
+
if (!svg || !map.clientWidth) return;
|
|
276
|
+
const origin = map.getBoundingClientRect(), cols = Array.from(map.querySelectorAll(".stage"));
|
|
277
|
+
const vertical = matchMedia("(max-width:800px)").matches;
|
|
278
|
+
svg.innerHTML = '<defs><marker id="pm-arrow" viewBox="0 0 6 6" refX="5" refY="3" markerWidth="5" markerHeight="5" orient="auto"><path d="M0 0 L6 3 L0 6z" fill="#77918f"/></marker></defs>';
|
|
279
|
+
for (let i=1;i<cols.length;i++) {
|
|
280
|
+
for (const from of cols[i-1].children) for (const to of cols[i].children) {
|
|
281
|
+
const a=from.getBoundingClientRect(), b=to.getBoundingClientRect();
|
|
282
|
+
const x1=(vertical ? a.left+a.width/2 : a.right)-origin.left;
|
|
283
|
+
const y1=(vertical ? a.bottom : a.top+a.height/2)-origin.top;
|
|
284
|
+
const x2=(vertical ? b.left+b.width/2 : b.left)-origin.left;
|
|
285
|
+
const y2=(vertical ? b.top : b.top+b.height/2)-origin.top;
|
|
286
|
+
const path=document.createElementNS(svg.namespaceURI,"path");
|
|
287
|
+
path.setAttribute("d","M"+x1+" "+y1+" L"+x2+" "+y2);
|
|
288
|
+
path.setAttribute("stroke","#77918f"); path.setAttribute("marker-end","url(#pm-arrow)");
|
|
289
|
+
svg.append(path);
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
details() {
|
|
294
|
+
const data=this.snapshot, s=this.selection;
|
|
295
|
+
let n=this.nodes.find(item=>s && keyOf(item)===s.key);
|
|
296
|
+
if (n && (data.plan_hash!==s.plan || (s.dispatch && n.dispatch_id!==s.dispatch) || (s.run && n.run_id!==s.run))) n=null;
|
|
297
|
+
const headingArea=this.$("selection"), next=this.$("next");
|
|
298
|
+
headingArea.replaceChildren(); next.replaceChildren();
|
|
299
|
+
for (const id of ["section-tools","detail","successors"]) this.$(id).hidden=!n;
|
|
300
|
+
for (const b of this.$("map").querySelectorAll("button")) b.setAttribute("aria-pressed",String(!!n && keyOf(n)===b.dataset.node));
|
|
301
|
+
if (!n) { headingArea.textContent = s ? "選択した版・工程・実行は現在の記録と一致しません。工程を選び直してください。" : "工程がありません。"; return; }
|
|
302
|
+
this.select(n);
|
|
303
|
+
const heading=el("div",null,"current"), badge=el("b",n.label,"badge");
|
|
304
|
+
badge.dataset.state=n.state; heading.append(el("h3",n.title),badge); headingArea.append(heading);
|
|
305
|
+
for (const body of this.$("detail").querySelectorAll("details > div")) body.replaceChildren();
|
|
306
|
+
for (const id of ["current-work","times","history","phases","runs"]) {
|
|
307
|
+
this.$(id).parentElement.hidden = !n.task || (id==="phases" && !n.phase_history?.length);
|
|
308
|
+
}
|
|
309
|
+
facts(this.$("purpose"),[["目的",n.goal || "未記録"]]);
|
|
310
|
+
if (n.task) taskObservation(this.$,headingArea,n,data,this.project);
|
|
311
|
+
else headingArea.append(el("p","判断と確認条件はPM計画・受領記録に基づきます。","muted"));
|
|
312
|
+
conditions(this.$("conditions"),n);
|
|
313
|
+
facts(this.$("products"),[
|
|
314
|
+
["引き渡す予定の成果物",n.task ? combined(n.outputs) : "対象外(確認点)"],
|
|
315
|
+
["PM実行・受領",n.pm_status || n.label],["Runゲート",n.task ? n.run_phase || "未記録" : "対象外(確認点)"],
|
|
316
|
+
["状態の理由",combined(n.reasons)]
|
|
317
|
+
]);
|
|
318
|
+
this.$("identity").textContent = ["計画版 "+data.plan_hash,"詳細計画 "+(n.detail_plan || "—"),"工程 "+(n.task || n.id),"配信 "+(n.dispatch_id || "未配信"),"Run "+(n.run_id || "未確認")].join("\n");
|
|
319
|
+
const log=this.$("log"); log.hidden=!(n.log_available && n.run_id); log.removeAttribute("href");
|
|
320
|
+
if(!log.hidden) log.href="/api/pm-run?"+new URLSearchParams({project:this.project,plan_hash:data.plan_hash,dispatch_id:n.dispatch_id,run_id:n.run_id});
|
|
321
|
+
const col=this.columns.findIndex(batch=>batch.includes(n));
|
|
322
|
+
const targets=this.columns[col+1] || [];
|
|
323
|
+
this.$("targetLabel").textContent=targets.length ? "合流先・後続工程" : "最終確認点の入力";
|
|
324
|
+
for (const target of targets.length ? targets : [n]) {
|
|
325
|
+
next.append(el("h3",target.title),el("p","必要な入力の受領 "+target.received_inputs.length+"/"+target.inputs.length+"件","muted"));
|
|
326
|
+
for (const id of target.inputs) {
|
|
327
|
+
const row=el("div",null,"ledger"), ok=target.received_inputs.includes(id);
|
|
328
|
+
row.append(el("span",id),el("b",ok?"受領済み":"未受領",ok?"ok":"wait")); next.append(row);
|
|
329
|
+
}
|
|
330
|
+
for (const reason of target.reasons || []) next.append(el("p",reason,"muted"));
|
|
331
|
+
}
|
|
332
|
+
if (targets.length && this.columns[col].length>1) {
|
|
333
|
+
const branches=this.columns[col].filter(item=>item.state!=="excluded");
|
|
334
|
+
const parallelProducts = new Set(branches.flatMap(branch=>branch.outputs || []));
|
|
335
|
+
for (const target of targets) {
|
|
336
|
+
const needed = target.inputs.filter(product=>parallelProducts.has(product));
|
|
337
|
+
if (needed.length) next.append(el("p","並列工程からの成果物 " + needed.filter(product=>target.received_inputs.includes(product)).length +
|
|
338
|
+
"/" + needed.length + "件受領","muted"));
|
|
339
|
+
}
|
|
340
|
+
next.append(el("p","先行ステージ "+branches.filter(item=>item.state==="done").length+"/"+branches.length+"件完了","obs"));
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
customElements.define("pm-progress-board",ProgressBoard);
|
|
345
|
+
})();
|
|
346
|
+
</script>
|
|
@@ -148,6 +148,7 @@ xrefkit/cli.py
|
|
|
148
148
|
xrefkit/contracts.py
|
|
149
149
|
xrefkit/ctx.py
|
|
150
150
|
xrefkit/dashboard.py
|
|
151
|
+
xrefkit/dashboard_pm.py
|
|
151
152
|
xrefkit/decision_checklist.py
|
|
152
153
|
xrefkit/decision_handoff.py
|
|
153
154
|
xrefkit/decision_trace.py
|
|
@@ -173,6 +174,7 @@ xrefkit/ownership.py
|
|
|
173
174
|
xrefkit/packmeta.py
|
|
174
175
|
xrefkit/plan_markdown.py
|
|
175
176
|
xrefkit/plan_observation.py
|
|
177
|
+
xrefkit/pm_progress_view.html
|
|
176
178
|
xrefkit/principle_discovery.py
|
|
177
179
|
xrefkit/public_skill.py
|
|
178
180
|
xrefkit/quality_issues.py
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|