xrefkit 0.7.15__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.15/xrefkit.egg-info → xrefkit-0.7.17}/PKG-INFO +1 -1
- {xrefkit-0.7.15 → xrefkit-0.7.17}/pyproject.toml +2 -2
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_plan_observation.py +1 -1
- xrefkit-0.7.17/tests/test_public_skill.py +93 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/__init__.py +1 -1
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/dashboard.py +47 -1
- xrefkit-0.7.17/xrefkit/dashboard_pm.py +32 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/operations_cli.py +1 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/plan_observation.py +10 -8
- xrefkit-0.7.17/xrefkit/pm_progress_view.html +346 -0
- xrefkit-0.7.17/xrefkit/public_skill.py +183 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/skill_definition_governance.py +7 -1
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/skillrun.py +21 -7
- {xrefkit-0.7.15 → xrefkit-0.7.17/xrefkit.egg-info}/PKG-INFO +1 -1
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit.egg-info/SOURCES.txt +4 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/LICENSE +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/README.md +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/setup.cfg +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_artifact_selected_family.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_attention_pet.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_attention_pet_client_protocol.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_attention_pet_codex_session.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_attention_pet_fit.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_azure_connection.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_azure_import.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_azure_recovery.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_azure_update_candidate.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_azure_writer.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_boundary_analysis.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_brownfield_csharp_structure_definitions.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_brownfield_file_editing_protocol.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_business_intake_conversation_definitions.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_business_intake_definition.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_calibration_lint.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_catalog_preparation_definition.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_check_skill_knowledge_xids.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_ci_workflow_invariants.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_cli.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_code_constraint_definition.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_collect_analyzer_sarif.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_compact_skill_logs.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_constraint_derivation_family_definition.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_constraint_derivation_selected_family.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_contribution_adoption_bytes.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_contribution_returns.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_convert_to_xrefkit_skill.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_cs_scope_probe.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_csharp_commonality.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_csharp_naming_profile.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_ctx.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_cutover_readiness.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_dashboard.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_database_batch_definition_migration.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_decision_checklist.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_decision_handoff.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_decision_trace.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_design_business_intake_selected_family.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_design_planning_definition_migration.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_dotnet_definition_candidate.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_editorial_family_definition.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_editorial_intake_definition.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_editorial_selected_family.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_embedded_startup_pack.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_engineering_decision.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_environment_isolation.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_error_policy_audit.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_error_policy_locator.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_execution_binding.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_existing_skill_definition_batch.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_final_skilldefinition_batch.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_flow_selected_family.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_fm_multiroot.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_gate.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_gateway.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_gateway_mcp.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_gateway_skill_adapter.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_gateway_work_items.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_goal_desired_state.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_governance_entry.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_governance_host.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_host_precheck.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_human_evaluation.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_implementation_flow_definition.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_implementation_review_selected_family.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_inbound_uploads.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_instruction_workflow.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_knowledge_relations_validator.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_language_review_definition.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_legacy_guidance.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_legacy_migration.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_legacy_resources.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_mcp_package_routing.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_mcp_setup.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_mcp_skills_extension.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_mcp_skills_transport.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_mcp_subagent_startup.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_mcp_subagent_startup_integration.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_ontology_assessment_validator.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_os_family_definition.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_os_knowledge_family_definition.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_os_selected_family.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_ownership.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_package_knowledge_resolution.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_package_skill_run.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_packaged_native_governance.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_packmeta.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_plan_markdown.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_principle_discovery.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_project_management_materialization.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_project_management_offline_progress.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_project_quality_baseline.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_qa_report_definition.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_quality_issue_dashboard.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_quality_issues.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_reporting_profiles.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_reporting_quality.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_repository_skill_adoption.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_repository_startup_pack.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_resource_provider.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_runtime_contracts.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_sarif_to_locator.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_security_definition_migration.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_site_release_metadata.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_skill_definition.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_skill_definition_governance.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_skill_definition_mcp.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_skill_definition_runtime.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_skill_edits.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_skill_knowledge_audit.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_skill_maturity_return.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_skill_release_compatibility.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_skill_runtime_audit.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_skillmeta.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_skills_sync.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_source_analysis_fragments.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_structure_catalog.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_subagent_startup.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_subagent_startup_boundaries.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_unknown_resolution.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_verify_runtime_wheel.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_wbs.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_work_management.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_work_packages.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_workflow_family_definition.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_xref.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_xrefkit_instance.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_xrefkit_tools.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_xrefkit_v2_discovery.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_xrefkit_v2_models.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/tests/test_xrefkit_v2_pipeline.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/__main__.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/attention_pet/__init__.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/attention_pet/__main__.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/attention_pet/client.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/attention_pet/client_protocol.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/attention_pet/codex_session.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/attention_pet/evaluator.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/attention_pet/model.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/attention_pet/presentation.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/attention_pet/profiles.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/attention_pet/scenarios.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/attention_pet/server.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/attention_pet/store.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/azure_connection.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/azure_import.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/azure_recovery.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/azure_update_candidate.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/azure_writer.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/boundary_analysis.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/catalog_cli.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/cli.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/contracts.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/ctx.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/decision_checklist.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/decision_handoff.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/decision_trace.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/discovery.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/engineering_decision.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/execution_binding.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/execution_binding_cli.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/gate.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/gateway.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/goalstate.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/governance_entry.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/governance_entry_cli.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/governance_host.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/hashing.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/host_execution.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/host_precheck.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/import_skill.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/instance.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/loaders.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/mcp/__init__.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/mcp/audit.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/mcp/bootstrap.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/mcp/catalog.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/mcp/cli.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/mcp/client_cache.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/mcp/client_flow.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/mcp/context_registry.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/mcp/context_token.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/mcp/contracts.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/mcp/contribution_adoption.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/mcp/contribution_returns.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/mcp/dist.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/mcp/gateway.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/mcp/governed_overlays.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/mcp/inbound_uploads.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/mcp/knowledge_edits.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/mcp/legacy_guidance.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/mcp/legacy_migration.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/mcp/legacy_resources.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/mcp/ownership.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/mcp/repository.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/mcp/schemas.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/mcp/server.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/mcp/setup.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/mcp/skill_edits.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/mcp/skill_maturity.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/mcp/skills_extension.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/mcp/skills_transport.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/mcp/startup_contract_pack.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/mcp/subagent_startup.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/mcp/update_gate_intake.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/mcp_tools.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/models/__init__.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/models/common.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/models/effective_bundle.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/models/human_evaluation.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/models/local_manifest.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/models/package_manifest.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/models/run_log.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/models/server_config.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/models/skill_definition.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/ownership.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/packmeta.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/plan_markdown.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/principle_discovery.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/quality_issues.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/registry.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/reporting.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/reporting_profiles.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/repository_skills.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/resolver.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/resource_provider.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/resources/attention_pet/client-state.schema.json +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/resources/attention_pet/pet.css +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/resources/attention_pet/pet.html +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/resources/attention_pet/pet.js +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/resources/base/contracts.json +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/resources/base/current.json +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/resources/base/generations/7a682a5272907354/contracts.json +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/resources/base/generations/7a682a5272907354/model_body.md +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/resources/base/generations/9929294385ccb7b0/contracts.json +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/resources/base/generations/9929294385ccb7b0/model_body.md +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/resources/base/model_body.md +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/resources/base/startup_sources/000_agent_entry.md +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/resources/base/startup_sources/011_startup_xref_routing.md +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/resources/base/startup_sources/015_shared_memory_operations.md +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/resources/base/startup_sources/016_uncertainty_protocol.md +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/resources/base/startup_sources/017_base_and_xref_layering.md +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/resources/base/startup_sources/053_context_direction_security_guard.md +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/resources/base/startup_sources/yomiyasu_LICENSE.txt +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/resources/engineering-decision-checklist.json +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/resources/migration/docs/guides/062_legacy_flow_skill_migration_guide.md +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/resources/migration/knowledge/operations/130_legacy_flow_skill_migration_rules.md +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/resources/migration/knowledge/organization/160_context_direction_guard_rules.md +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/resources/migration/skills/os/legacy_flow_skill_migration/SKILL.v1.md +0 -0
- {xrefkit-0.7.15 → 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.15 → xrefkit-0.7.17}/xrefkit/resources/migration/skills/repository_adoption.json +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/resources/migration/tools/migrate_legacy_flow_skill.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/runlog.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/skill_definition.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/skill_definition_catalog.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/skill_knowledge_audit.html +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/skill_knowledge_audit.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/skillmeta.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/skills_sync.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/structure_catalog.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/subagent_startup.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/tools/__init__.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/tools/__main__.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/unknown_resolution.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/v2_cli.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/wbs.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/work_management.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/work_management_view.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/workspace.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit/xref.py +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit.egg-info/dependency_links.txt +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit.egg-info/entry_points.txt +0 -0
- {xrefkit-0.7.15 → xrefkit-0.7.17}/xrefkit.egg-info/requires.txt +0 -0
- {xrefkit-0.7.15 → 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, [])))
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"""Public binding checks exercise registry bytes, installed bytes, and the run receipt separately."""
|
|
2
|
+
from hashlib import sha256
|
|
3
|
+
from io import BytesIO
|
|
4
|
+
import json
|
|
5
|
+
from pathlib import Path
|
|
6
|
+
from types import SimpleNamespace
|
|
7
|
+
from zipfile import ZipFile
|
|
8
|
+
|
|
9
|
+
import pytest
|
|
10
|
+
|
|
11
|
+
from test_skill_definition import metadata, text_for
|
|
12
|
+
from test_skill_definition_governance import _record
|
|
13
|
+
from xrefkit import public_skill
|
|
14
|
+
from xrefkit.cli import main
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
@pytest.fixture
|
|
18
|
+
def release(tmp_path, monkeypatch, metadata):
|
|
19
|
+
skill = "design_flow"
|
|
20
|
+
prefix = "xrefkit_skills_brownfield"
|
|
21
|
+
installed = tmp_path / "site"
|
|
22
|
+
metadata["skill_id"] = skill
|
|
23
|
+
source = tmp_path / "definition.md"
|
|
24
|
+
source.write_bytes(text_for(metadata).encode())
|
|
25
|
+
provided = dict(id=skill, xid=metadata["xid"], path=f"skills/{skill}/SKILL.v1.md",
|
|
26
|
+
governance_path=f"governance/skills/{skill}.json")
|
|
27
|
+
manifest = dict(package_id="xrefkit.skills.brownfield", package_type="skill_package", version="0.4.0",
|
|
28
|
+
contract={}, requires=dict(xrefkit_core=">=2.0.0 <3.0.0"), provides=dict(skills=[provided]))
|
|
29
|
+
contents = {
|
|
30
|
+
f"{prefix}/package_manifest.yaml": json.dumps(manifest).encode(),
|
|
31
|
+
f"{prefix}/{provided['path']}": source.read_bytes(),
|
|
32
|
+
f"{prefix}/{provided['governance_path']}": json.dumps(_record(source, metadata)).encode(),
|
|
33
|
+
}
|
|
34
|
+
contents["test.dist-info/entry_points.txt"] = b"[xrefkit.skill_packages]\nbrownfield = test:package_root\n"
|
|
35
|
+
wheel = BytesIO()
|
|
36
|
+
with ZipFile(wheel, "w") as archive:
|
|
37
|
+
for name, data in contents.items():
|
|
38
|
+
archive.writestr(name, data)
|
|
39
|
+
file = installed / name
|
|
40
|
+
file.parent.mkdir(parents=True, exist_ok=True)
|
|
41
|
+
file.write_bytes(data)
|
|
42
|
+
payload = wheel.getvalue()
|
|
43
|
+
filename = "xrefkit_skills_brownfield-0.4.0-py3-none-any.whl"
|
|
44
|
+
url = "https://files.pythonhosted.org/" + filename
|
|
45
|
+
index = dict(info=dict(name="xrefkit-skills-brownfield", version="0.4.0"),
|
|
46
|
+
urls=[dict(packagetype="bdist_wheel", filename=filename, url=url,
|
|
47
|
+
digests=dict(sha256=sha256(payload).hexdigest()))])
|
|
48
|
+
monkeypatch.setattr(public_skill, "_download", lambda addr, host, limit:
|
|
49
|
+
payload if addr == url else json.dumps(index).encode())
|
|
50
|
+
dist = SimpleNamespace(files=[Path(name) for name in contents], version="0.4.0",
|
|
51
|
+
entry_points=[SimpleNamespace(group="xrefkit.skill_packages")],
|
|
52
|
+
locate_file=lambda member: installed / member)
|
|
53
|
+
monkeypatch.setattr(public_skill.metadata, "distribution", lambda distribution: dist)
|
|
54
|
+
lock = public_skill.resolve_public_skill("xrefkit-skills-brownfield", "0.4.0", skill)
|
|
55
|
+
return lock, installed / prefix, dist
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
def test_run_uses_pinned_distribution_even_with_same_named_local_skill(release, tmp_path, capsys):
|
|
59
|
+
lock, package, _ = release
|
|
60
|
+
root = tmp_path / "project"
|
|
61
|
+
overlay = root / "skills/design_flow/SKILL.v1.md"
|
|
62
|
+
overlay.parent.mkdir(parents=True)
|
|
63
|
+
overlay.write_text("unrelated local Skill", encoding="utf-8")
|
|
64
|
+
(root / "approved.json").write_text(json.dumps(lock), encoding="utf-8")
|
|
65
|
+
result = main(["skill", "run", "--root", str(root), "--public-skill-lock", "approved.json",
|
|
66
|
+
"--task", "review design", "--capability", "design", "--tuning", "review",
|
|
67
|
+
"--responsibility", "design", "--execution-mode", "subagent_required", "--json"])
|
|
68
|
+
assert result == 0
|
|
69
|
+
receipt = json.loads(capsys.readouterr().out)
|
|
70
|
+
assert Path(receipt["skill_doc"]) == package / "skills/design_flow/SKILL.v1.md"
|
|
71
|
+
log = Path(receipt["run_log"]).read_text(encoding="utf-8")
|
|
72
|
+
for key, value in lock.items():
|
|
73
|
+
assert f"- public_skill_{key}: `{value}`" in log
|
|
74
|
+
assert f"- definition_sha256: `{lock['definition_sha256']}`" in log
|
|
75
|
+
assert f"- definition_governance_sha256: `{lock['governance_sha256']}`" in log
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
@pytest.mark.parametrize("member", ["governance/skills/design_flow.json", "skills/design_flow/SKILL.v1.md"])
|
|
79
|
+
def test_modified_installed_content_blocks_run(release, member):
|
|
80
|
+
lock, package, _ = release
|
|
81
|
+
with (package / member).open("ab") as f:
|
|
82
|
+
f.write(b" ")
|
|
83
|
+
with pytest.raises(ValueError, match="expected .*actual"):
|
|
84
|
+
public_skill.verify_public_skill(lock)
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
def test_installed_version_and_approved_wheel_are_enforced(release):
|
|
88
|
+
lock, _, dist = release
|
|
89
|
+
with pytest.raises(ValueError, match="wheel_sha256: expected .*actual"):
|
|
90
|
+
public_skill.verify_public_skill(dict(lock, wheel_sha256="0" * 64))
|
|
91
|
+
dist.version = "0.4.1"
|
|
92
|
+
with pytest.raises(ValueError, match="expected '0.4.0', actual '0.4.1'"):
|
|
93
|
+
public_skill.verify_public_skill(lock)
|
|
@@ -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")
|
|
@@ -419,6 +419,7 @@ def _build_parser() -> argparse.ArgumentParser:
|
|
|
419
419
|
p_skill_run_source = p_skill_run.add_mutually_exclusive_group(required=True)
|
|
420
420
|
p_skill_run_source.add_argument("--meta", help="Relative path to the legacy Skill meta.md to run")
|
|
421
421
|
p_skill_run_source.add_argument("--definition", help="Explicit SkillDefinition document to run without a legacy meta source")
|
|
422
|
+
p_skill_run_source.add_argument("--public-skill-lock", help="Approved JSON lock for an installed public stable Skill")
|
|
422
423
|
p_skill_run_source.add_argument("--package-skill", help="Explicit installed Skill Package reference (package_id::skill_id)")
|
|
423
424
|
p_skill_run.add_argument(
|
|
424
425
|
"--governance",
|
|
@@ -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:
|