xrefkit 0.7.14__tar.gz → 0.7.15__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.
Files changed (289) hide show
  1. {xrefkit-0.7.14/xrefkit.egg-info → xrefkit-0.7.15}/PKG-INFO +11 -1
  2. {xrefkit-0.7.14 → xrefkit-0.7.15}/README.md +10 -0
  3. {xrefkit-0.7.14 → xrefkit-0.7.15}/pyproject.toml +2 -2
  4. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_ci_workflow_invariants.py +4 -1
  5. xrefkit-0.7.15/tests/test_skill_knowledge_audit.py +146 -0
  6. xrefkit-0.7.15/tests/test_verify_runtime_wheel.py +51 -0
  7. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/__init__.py +1 -1
  8. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/cli.py +5 -0
  9. xrefkit-0.7.15/xrefkit/skill_knowledge_audit.html +231 -0
  10. xrefkit-0.7.15/xrefkit/skill_knowledge_audit.py +292 -0
  11. {xrefkit-0.7.14 → xrefkit-0.7.15/xrefkit.egg-info}/PKG-INFO +11 -1
  12. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit.egg-info/SOURCES.txt +4 -0
  13. {xrefkit-0.7.14 → xrefkit-0.7.15}/LICENSE +0 -0
  14. {xrefkit-0.7.14 → xrefkit-0.7.15}/setup.cfg +0 -0
  15. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_artifact_selected_family.py +0 -0
  16. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_attention_pet.py +0 -0
  17. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_attention_pet_client_protocol.py +0 -0
  18. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_attention_pet_codex_session.py +0 -0
  19. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_attention_pet_fit.py +0 -0
  20. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_azure_connection.py +0 -0
  21. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_azure_import.py +0 -0
  22. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_azure_recovery.py +0 -0
  23. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_azure_update_candidate.py +0 -0
  24. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_azure_writer.py +0 -0
  25. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_boundary_analysis.py +0 -0
  26. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_brownfield_csharp_structure_definitions.py +0 -0
  27. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_brownfield_file_editing_protocol.py +0 -0
  28. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_business_intake_conversation_definitions.py +0 -0
  29. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_business_intake_definition.py +0 -0
  30. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_calibration_lint.py +0 -0
  31. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_catalog_preparation_definition.py +0 -0
  32. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_check_skill_knowledge_xids.py +0 -0
  33. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_cli.py +0 -0
  34. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_code_constraint_definition.py +0 -0
  35. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_collect_analyzer_sarif.py +0 -0
  36. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_compact_skill_logs.py +0 -0
  37. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_constraint_derivation_family_definition.py +0 -0
  38. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_constraint_derivation_selected_family.py +0 -0
  39. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_contribution_adoption_bytes.py +0 -0
  40. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_contribution_returns.py +0 -0
  41. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_convert_to_xrefkit_skill.py +0 -0
  42. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_cs_scope_probe.py +0 -0
  43. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_csharp_commonality.py +0 -0
  44. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_csharp_naming_profile.py +0 -0
  45. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_ctx.py +0 -0
  46. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_cutover_readiness.py +0 -0
  47. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_dashboard.py +0 -0
  48. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_database_batch_definition_migration.py +0 -0
  49. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_decision_checklist.py +0 -0
  50. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_decision_handoff.py +0 -0
  51. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_decision_trace.py +0 -0
  52. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_design_business_intake_selected_family.py +0 -0
  53. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_design_planning_definition_migration.py +0 -0
  54. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_dotnet_definition_candidate.py +0 -0
  55. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_editorial_family_definition.py +0 -0
  56. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_editorial_intake_definition.py +0 -0
  57. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_editorial_selected_family.py +0 -0
  58. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_embedded_startup_pack.py +0 -0
  59. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_engineering_decision.py +0 -0
  60. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_environment_isolation.py +0 -0
  61. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_error_policy_audit.py +0 -0
  62. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_error_policy_locator.py +0 -0
  63. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_execution_binding.py +0 -0
  64. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_existing_skill_definition_batch.py +0 -0
  65. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_final_skilldefinition_batch.py +0 -0
  66. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_flow_selected_family.py +0 -0
  67. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_fm_multiroot.py +0 -0
  68. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_gate.py +0 -0
  69. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_gateway.py +0 -0
  70. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_gateway_mcp.py +0 -0
  71. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_gateway_skill_adapter.py +0 -0
  72. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_gateway_work_items.py +0 -0
  73. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_goal_desired_state.py +0 -0
  74. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_governance_entry.py +0 -0
  75. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_governance_host.py +0 -0
  76. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_host_precheck.py +0 -0
  77. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_human_evaluation.py +0 -0
  78. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_implementation_flow_definition.py +0 -0
  79. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_implementation_review_selected_family.py +0 -0
  80. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_inbound_uploads.py +0 -0
  81. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_instruction_workflow.py +0 -0
  82. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_knowledge_relations_validator.py +0 -0
  83. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_language_review_definition.py +0 -0
  84. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_legacy_guidance.py +0 -0
  85. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_legacy_migration.py +0 -0
  86. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_legacy_resources.py +0 -0
  87. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_mcp_package_routing.py +0 -0
  88. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_mcp_setup.py +0 -0
  89. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_mcp_skills_extension.py +0 -0
  90. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_mcp_skills_transport.py +0 -0
  91. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_mcp_subagent_startup.py +0 -0
  92. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_mcp_subagent_startup_integration.py +0 -0
  93. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_ontology_assessment_validator.py +0 -0
  94. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_os_family_definition.py +0 -0
  95. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_os_knowledge_family_definition.py +0 -0
  96. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_os_selected_family.py +0 -0
  97. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_ownership.py +0 -0
  98. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_package_knowledge_resolution.py +0 -0
  99. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_package_skill_run.py +0 -0
  100. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_packaged_native_governance.py +0 -0
  101. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_packmeta.py +0 -0
  102. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_plan_markdown.py +0 -0
  103. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_plan_observation.py +0 -0
  104. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_principle_discovery.py +0 -0
  105. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_project_management_materialization.py +0 -0
  106. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_project_management_offline_progress.py +0 -0
  107. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_project_quality_baseline.py +0 -0
  108. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_qa_report_definition.py +0 -0
  109. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_quality_issue_dashboard.py +0 -0
  110. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_quality_issues.py +0 -0
  111. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_reporting_profiles.py +0 -0
  112. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_reporting_quality.py +0 -0
  113. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_repository_skill_adoption.py +0 -0
  114. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_repository_startup_pack.py +0 -0
  115. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_resource_provider.py +0 -0
  116. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_runtime_contracts.py +0 -0
  117. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_sarif_to_locator.py +0 -0
  118. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_security_definition_migration.py +0 -0
  119. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_site_release_metadata.py +0 -0
  120. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_skill_definition.py +0 -0
  121. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_skill_definition_governance.py +0 -0
  122. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_skill_definition_mcp.py +0 -0
  123. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_skill_definition_runtime.py +0 -0
  124. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_skill_edits.py +0 -0
  125. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_skill_maturity_return.py +0 -0
  126. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_skill_release_compatibility.py +0 -0
  127. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_skill_runtime_audit.py +0 -0
  128. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_skillmeta.py +0 -0
  129. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_skills_sync.py +0 -0
  130. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_source_analysis_fragments.py +0 -0
  131. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_structure_catalog.py +0 -0
  132. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_subagent_startup.py +0 -0
  133. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_subagent_startup_boundaries.py +0 -0
  134. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_unknown_resolution.py +0 -0
  135. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_wbs.py +0 -0
  136. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_work_management.py +0 -0
  137. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_work_packages.py +0 -0
  138. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_workflow_family_definition.py +0 -0
  139. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_xref.py +0 -0
  140. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_xrefkit_instance.py +0 -0
  141. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_xrefkit_tools.py +0 -0
  142. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_xrefkit_v2_discovery.py +0 -0
  143. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_xrefkit_v2_models.py +0 -0
  144. {xrefkit-0.7.14 → xrefkit-0.7.15}/tests/test_xrefkit_v2_pipeline.py +0 -0
  145. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/__main__.py +0 -0
  146. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/attention_pet/__init__.py +0 -0
  147. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/attention_pet/__main__.py +0 -0
  148. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/attention_pet/client.py +0 -0
  149. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/attention_pet/client_protocol.py +0 -0
  150. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/attention_pet/codex_session.py +0 -0
  151. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/attention_pet/evaluator.py +0 -0
  152. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/attention_pet/model.py +0 -0
  153. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/attention_pet/presentation.py +0 -0
  154. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/attention_pet/profiles.py +0 -0
  155. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/attention_pet/scenarios.py +0 -0
  156. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/attention_pet/server.py +0 -0
  157. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/attention_pet/store.py +0 -0
  158. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/azure_connection.py +0 -0
  159. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/azure_import.py +0 -0
  160. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/azure_recovery.py +0 -0
  161. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/azure_update_candidate.py +0 -0
  162. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/azure_writer.py +0 -0
  163. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/boundary_analysis.py +0 -0
  164. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/catalog_cli.py +0 -0
  165. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/contracts.py +0 -0
  166. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/ctx.py +0 -0
  167. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/dashboard.py +0 -0
  168. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/decision_checklist.py +0 -0
  169. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/decision_handoff.py +0 -0
  170. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/decision_trace.py +0 -0
  171. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/discovery.py +0 -0
  172. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/engineering_decision.py +0 -0
  173. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/execution_binding.py +0 -0
  174. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/execution_binding_cli.py +0 -0
  175. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/gate.py +0 -0
  176. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/gateway.py +0 -0
  177. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/goalstate.py +0 -0
  178. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/governance_entry.py +0 -0
  179. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/governance_entry_cli.py +0 -0
  180. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/governance_host.py +0 -0
  181. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/hashing.py +0 -0
  182. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/host_execution.py +0 -0
  183. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/host_precheck.py +0 -0
  184. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/import_skill.py +0 -0
  185. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/instance.py +0 -0
  186. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/loaders.py +0 -0
  187. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/mcp/__init__.py +0 -0
  188. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/mcp/audit.py +0 -0
  189. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/mcp/bootstrap.py +0 -0
  190. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/mcp/catalog.py +0 -0
  191. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/mcp/cli.py +0 -0
  192. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/mcp/client_cache.py +0 -0
  193. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/mcp/client_flow.py +0 -0
  194. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/mcp/context_registry.py +0 -0
  195. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/mcp/context_token.py +0 -0
  196. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/mcp/contracts.py +0 -0
  197. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/mcp/contribution_adoption.py +0 -0
  198. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/mcp/contribution_returns.py +0 -0
  199. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/mcp/dist.py +0 -0
  200. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/mcp/gateway.py +0 -0
  201. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/mcp/governed_overlays.py +0 -0
  202. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/mcp/inbound_uploads.py +0 -0
  203. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/mcp/knowledge_edits.py +0 -0
  204. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/mcp/legacy_guidance.py +0 -0
  205. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/mcp/legacy_migration.py +0 -0
  206. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/mcp/legacy_resources.py +0 -0
  207. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/mcp/ownership.py +0 -0
  208. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/mcp/repository.py +0 -0
  209. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/mcp/schemas.py +0 -0
  210. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/mcp/server.py +0 -0
  211. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/mcp/setup.py +0 -0
  212. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/mcp/skill_edits.py +0 -0
  213. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/mcp/skill_maturity.py +0 -0
  214. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/mcp/skills_extension.py +0 -0
  215. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/mcp/skills_transport.py +0 -0
  216. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/mcp/startup_contract_pack.py +0 -0
  217. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/mcp/subagent_startup.py +0 -0
  218. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/mcp/update_gate_intake.py +0 -0
  219. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/mcp_tools.py +0 -0
  220. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/models/__init__.py +0 -0
  221. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/models/common.py +0 -0
  222. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/models/effective_bundle.py +0 -0
  223. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/models/human_evaluation.py +0 -0
  224. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/models/local_manifest.py +0 -0
  225. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/models/package_manifest.py +0 -0
  226. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/models/run_log.py +0 -0
  227. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/models/server_config.py +0 -0
  228. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/models/skill_definition.py +0 -0
  229. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/operations_cli.py +0 -0
  230. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/ownership.py +0 -0
  231. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/packmeta.py +0 -0
  232. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/plan_markdown.py +0 -0
  233. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/plan_observation.py +0 -0
  234. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/principle_discovery.py +0 -0
  235. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/quality_issues.py +0 -0
  236. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/registry.py +0 -0
  237. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/reporting.py +0 -0
  238. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/reporting_profiles.py +0 -0
  239. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/repository_skills.py +0 -0
  240. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/resolver.py +0 -0
  241. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/resource_provider.py +0 -0
  242. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/resources/attention_pet/client-state.schema.json +0 -0
  243. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/resources/attention_pet/pet.css +0 -0
  244. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/resources/attention_pet/pet.html +0 -0
  245. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/resources/attention_pet/pet.js +0 -0
  246. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/resources/base/contracts.json +0 -0
  247. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/resources/base/current.json +0 -0
  248. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/resources/base/generations/7a682a5272907354/contracts.json +0 -0
  249. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/resources/base/generations/7a682a5272907354/model_body.md +0 -0
  250. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/resources/base/generations/9929294385ccb7b0/contracts.json +0 -0
  251. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/resources/base/generations/9929294385ccb7b0/model_body.md +0 -0
  252. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/resources/base/model_body.md +0 -0
  253. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/resources/base/startup_sources/000_agent_entry.md +0 -0
  254. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/resources/base/startup_sources/011_startup_xref_routing.md +0 -0
  255. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/resources/base/startup_sources/015_shared_memory_operations.md +0 -0
  256. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/resources/base/startup_sources/016_uncertainty_protocol.md +0 -0
  257. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/resources/base/startup_sources/017_base_and_xref_layering.md +0 -0
  258. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/resources/base/startup_sources/053_context_direction_security_guard.md +0 -0
  259. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/resources/base/startup_sources/yomiyasu_LICENSE.txt +0 -0
  260. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/resources/engineering-decision-checklist.json +0 -0
  261. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/resources/migration/docs/guides/062_legacy_flow_skill_migration_guide.md +0 -0
  262. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/resources/migration/knowledge/operations/130_legacy_flow_skill_migration_rules.md +0 -0
  263. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/resources/migration/knowledge/organization/160_context_direction_guard_rules.md +0 -0
  264. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/resources/migration/skills/os/legacy_flow_skill_migration/SKILL.v1.md +0 -0
  265. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/resources/migration/skills/os/legacy_flow_skill_migration/references/legacy_flow_skill_migration_template.md +0 -0
  266. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/resources/migration/skills/repository_adoption.json +0 -0
  267. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/resources/migration/tools/migrate_legacy_flow_skill.py +0 -0
  268. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/runlog.py +0 -0
  269. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/skill_definition.py +0 -0
  270. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/skill_definition_catalog.py +0 -0
  271. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/skill_definition_governance.py +0 -0
  272. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/skillmeta.py +0 -0
  273. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/skillrun.py +0 -0
  274. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/skills_sync.py +0 -0
  275. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/structure_catalog.py +0 -0
  276. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/subagent_startup.py +0 -0
  277. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/tools/__init__.py +0 -0
  278. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/tools/__main__.py +0 -0
  279. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/unknown_resolution.py +0 -0
  280. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/v2_cli.py +0 -0
  281. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/wbs.py +0 -0
  282. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/work_management.py +0 -0
  283. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/work_management_view.py +0 -0
  284. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/workspace.py +0 -0
  285. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit/xref.py +0 -0
  286. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit.egg-info/dependency_links.txt +0 -0
  287. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit.egg-info/entry_points.txt +0 -0
  288. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit.egg-info/requires.txt +0 -0
  289. {xrefkit-0.7.14 → xrefkit-0.7.15}/xrefkit.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xrefkit
3
- Version: 0.7.14
3
+ Version: 0.7.15
4
4
  Summary: Portable XID, Skill, Knowledge, workflow, and MCP runtime for XRefKit
5
5
  Author: synthaicode
6
6
  License: MIT License
@@ -50,6 +50,16 @@ can understand and check.
50
50
 
51
51
  ![Five sources of cognitive load and XRefKit's supporting mechanisms, with reports connecting conclusion, evidence, limits, and next action.](human-docs/en/assets/why_xrefkit_needed/whatis_xrefkit.png)
52
52
 
53
+ ## Inspect Skill and Knowledge links
54
+
55
+ From the repository you want to inspect, run:
56
+
57
+ ```shell
58
+ xrefkit skill-knowledge-audit
59
+ ```
60
+
61
+ Open `work/skill-knowledge-audit.html` to browse by Pack, Skill or Knowledge and inspect broken XIDs. Use `--root` to select another repository, `--html` to choose the report location, and `--json` to export the audit data.
62
+
53
63
  ## Why faster AI output can still mean more work for you
54
64
 
55
65
  Generating a result leaves another task: understanding enough of it to decide
@@ -11,6 +11,16 @@ can understand and check.
11
11
 
12
12
  ![Five sources of cognitive load and XRefKit's supporting mechanisms, with reports connecting conclusion, evidence, limits, and next action.](human-docs/en/assets/why_xrefkit_needed/whatis_xrefkit.png)
13
13
 
14
+ ## Inspect Skill and Knowledge links
15
+
16
+ From the repository you want to inspect, run:
17
+
18
+ ```shell
19
+ xrefkit skill-knowledge-audit
20
+ ```
21
+
22
+ Open `work/skill-knowledge-audit.html` to browse by Pack, Skill or Knowledge and inspect broken XIDs. Use `--root` to select another repository, `--html` to choose the report location, and `--json` to export the audit data.
23
+
14
24
  ## Why faster AI output can still mean more work for you
15
25
 
16
26
  Generating a result leaves another task: understanding enough of it to decide
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "xrefkit"
7
- version = "0.7.14"
7
+ version = "0.7.15"
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/**/*"]
30
+ xrefkit = ["resources/**/*", "skill_knowledge_audit.html"]
31
31
 
32
32
  [tool.pytest.ini_options]
33
33
  testpaths = ["tests"]
@@ -23,13 +23,16 @@ PACKAGES = {
23
23
  @pytest.mark.parametrize("filename", [
24
24
  "python-package.yml",
25
25
  "python-skill-project-management-package.yml",
26
+ "python-skill-brownfield-package.yml",
27
+ "python-skill-csharp-package.yml",
28
+ "python-skill-batch-regression-package.yml",
26
29
  ])
27
30
  def test_release_artifact_inspection_uses_verified_fresh_clamav(filename):
28
31
  steps = workflow(filename)["jobs"]["artifact-inspection"]["steps"]
29
32
  assert any(step.get("run") == "bash tools/scan_python_artifacts.sh dist/" for step in steps)
30
33
  script = (WORKFLOWS.parents[1] / "tools/scan_python_artifacts.sh").read_text(encoding="utf-8")
31
34
  assert "sha256sum --check" in script
32
- assert "--fail-if-cvd-older-than=1" in script
35
+ assert "--fail-if-cvd-older-than=3" in script
33
36
  assert script.index("sha256sum --check") < script.index('"${clamav_bin}/freshclam"')
34
37
  assert script.index('"${clamav_bin}/freshclam"') < script.index('"${clamav_bin}/clamscan"')
35
38
 
@@ -0,0 +1,146 @@
1
+ import json
2
+ import subprocess
3
+ import sys
4
+ from pathlib import Path
5
+ from urllib.parse import quote, unquote
6
+
7
+ from xrefkit.skill_knowledge_audit import audit
8
+
9
+
10
+ def skill(root, folder, identifier, extra="", header=None):
11
+ template = Path(__file__).resolve().parents[1] / "skills/implementation_flow/SKILL.v1.md"
12
+ body = template.read_text(encoding="utf-8").replace("skill_id: implementation_flow",
13
+ "skill_id: " + identifier)
14
+ if header is not None:
15
+ start = body.index("knowledge_needs:\n")
16
+ end = body.index("control_refs:", start)
17
+ body = body[:start] + "knowledge_needs: " + header + "\n" + body[end:]
18
+ # Keep the validated header and identity but remove unrelated template links.
19
+ opening = body.split("\n---\n", 1)[0]
20
+ own = "D7B4E9A2C610"
21
+ source = root / "skills" / folder / "SKILL.v1.md"
22
+ source.parent.mkdir(parents=True)
23
+ source.write_text(opening + '\n---\n<!-- xid: '+own+' -->\n<a id="xid-'+own+'"></a>\n# Test\n'+extra,
24
+ encoding="utf-8")
25
+ return source
26
+
27
+
28
+ def write_doc(root, name="example.md", body="# Title\n\n## First\n\nA.\n"):
29
+ path = root / "knowledge" / name
30
+ path.parent.mkdir(parents=True, exist_ok=True)
31
+ path.write_text('<!-- xid: AB12CD34EF56 -->\n<a id="xid-AB12CD34EF56"></a>\n\n'+body,
32
+ encoding="utf-8")
33
+ return path
34
+
35
+
36
+ def test_anchor_sensitive_events_and_deduplicated_counts(tmp_path):
37
+ write_doc(tmp_path)
38
+ skill(tmp_path, "one", "one",
39
+ "[a](../../knowledge/example.md#section-a) [b](../../knowledge/example.md#section-b)\n", "[]")
40
+ result = audit(tmp_path)
41
+ assert result["defects"]["counts"] == dict(xids=1, events=2, occurrences=2, skills=1)
42
+ group, = result["defects"]["groups"]
43
+ assert group["xid"] == "AB12CD34EF56"
44
+ assert [e["anchor"] for e in group["events"]] == ["section-a", "section-b"]
45
+ path = tmp_path / "skills/one/SKILL.v1.md"
46
+ path.write_text(path.read_text(encoding="utf-8").replace("#section-b", "#section-a"), encoding="utf-8")
47
+ assert audit(tmp_path)["defects"]["counts"] == dict(xids=1, events=1, occurrences=2, skills=1)
48
+ skill(tmp_path, "two", "two", "[a](../../knowledge/example.md#section-a)", "[]")
49
+ assert audit(tmp_path)["defects"]["counts"] == dict(xids=1, events=1, occurrences=3, skills=2)
50
+
51
+
52
+ def test_pack_membership_direct_refs_dynamic_external_and_missing(tmp_path):
53
+ write_doc(tmp_path)
54
+ skill(tmp_path, "one", "one", "[missing](../../knowledge/missing.md)", """
55
+ - id: runtime
56
+ query: find by purpose
57
+ required_when: needed
58
+ seed_xids: []
59
+ - id: outside
60
+ query: external
61
+ required_when: always
62
+ seed_xids: [AB123456789A]""")
63
+ source = tmp_path / "docs/note.md"
64
+ source.parent.mkdir()
65
+ source.write_text("<!-- xid: AB123456789A -->", encoding="utf-8")
66
+ manifest = tmp_path / "skills/packs/demo/pack.md"
67
+ manifest.parent.mkdir(parents=True)
68
+ tick = chr(96)
69
+ manifest.write_text(f"- pack_id: {tick}demo{tick}\n- uses_skills:\n - {tick}skills/one{tick}\n"
70
+ f"- owns_knowledge:\n - {tick}knowledge/example.md{tick}\n"
71
+ f"- uses_knowledge:\n - {tick}knowledge/missing.md#xid-AB123456789B{tick}\n", encoding="utf-8")
72
+ result = audit(tmp_path)
73
+ assert result["packs"][0]["uses_skills"] == ["skills/one/SKILL.v1.md"]
74
+ assert result["defects"]["counts"] == dict(xids=1, events=1, occurrences=1, skills=0)
75
+ assert len(result["defects"]["no_xid"]) == 1
76
+ assert {(r["status"], r["target"]) for r in result["rows"] if r["skill"]} == {
77
+ ("dynamic", ""), ("external", "docs/note.md"), ("broken", "knowledge/missing.md")}
78
+ pack_row, = (r for r in result["rows"] if r["status"] == "resolved")
79
+ assert pack_row["skill"] == "" and pack_row["pack"] == "demo"
80
+
81
+
82
+ def test_scan_sections_and_generated_relative_links(tmp_path):
83
+ name = "日本語 #100%.md"
84
+ write_doc(tmp_path, name, "# Title\n\n## Same\n\none\n\n~~~\n## false\n~~~\n\n## Same\n\ntwo\n")
85
+ skill(tmp_path, "skill 日本語#%", "one", "", "[]")
86
+ bad = tmp_path / "skills/bad/SKILL.v1.md"
87
+ bad.parent.mkdir()
88
+ bad.write_text("broken", encoding="utf-8")
89
+ output = tmp_path / "generated/report.html"
90
+ json_path = tmp_path / "generated/report.json"
91
+ subprocess.run([sys.executable, "-m", "xrefkit", "skill-knowledge-audit", "--root", str(tmp_path),
92
+ "--html", str(output), "--json", str(json_path)], check=True)
93
+ data = json.loads(json_path.read_bytes())
94
+ assert data["scope"] == dict(root=str(tmp_path), found=2, parsed=1, unreadable=1)
95
+ assert data["errors"][0]["source"] == "skills/bad/SKILL.v1.md"
96
+ sections = data["docs"]["knowledge/"+name]["sections"]
97
+ assert [s["title"] for s in sections] == ["Same", "Same"]
98
+ assert sections[0]["line"] != sections[1]["line"]
99
+ html = output.read_text(encoding="utf-8")
100
+ payload = html.split('id="audit-data">', 1)[1].split("</script>", 1)[0]
101
+ urls = json.loads(payload)["links"]
102
+ for path, url in urls.items():
103
+ assert "#" not in url
104
+ assert (output.parent / unquote(url)).resolve() == (tmp_path / path).resolve()
105
+
106
+
107
+
108
+ def test_distinct_broken_paths_and_missing_or_ambiguous_seeds(tmp_path):
109
+ write_doc(tmp_path)
110
+ skill(tmp_path, "one", "one", "[a](../../knowledge/example.md#xid-AB12CD34EF55)", "[]")
111
+ skill(tmp_path, "two", "two", "[b](../../knowledge/absent.md#xid-AB12CD34EF55)", "[]")
112
+ result = audit(tmp_path)["defects"]
113
+ assert result["counts"] == dict(xids=1, events=2, occurrences=2, skills=2)
114
+ assert {event["code"] for event in result["groups"][0]["events"]} == {"missing_anchor", "missing_file"}
115
+ write_doc(tmp_path, "second.md")
116
+ skill(tmp_path, "three", "three", "", """
117
+ - id: resources
118
+ query: supporting resources
119
+ required_when: preparing
120
+ seed_xids: [AB12CD34EF56, B123456789AB]""")
121
+ result = audit(tmp_path)
122
+ assert {r["reason_code"] for r in result["rows"] if r["skill"] == "three"} == {
123
+ "duplicate_xid", "missing_xid"}
124
+
125
+
126
+ def test_pack_membership_literal_encoded_and_anchored_paths(tmp_path):
127
+ write_doc(tmp_path)
128
+
129
+ literal = "skills/日本語 #100%"
130
+ encoded = quote(literal, safe="/")
131
+ escaped = "skills/literal%23"
132
+ for directory, identifier in [(literal, "special"), (escaped, "escaped"), ("skills/literal#", "hash")]:
133
+ skill(tmp_path, directory.removeprefix("skills/"), identifier, header="[]")
134
+ pack = tmp_path / "skills/packs/test/pack.md"
135
+ pack.parent.mkdir(parents=True)
136
+ tick = chr(96)
137
+ fields = {"owns_skills": [literal, escaped, "../skills/outside"],
138
+ "uses_skills": [encoded + "/SKILL.v1.md#section", literal + "#section",
139
+ encoded, "skills/literal%2523#section", "skills/%2e%2e/outside"]}
140
+ pack.write_text("- pack_id: test\n" + "".join(
141
+ f"- {field}:\n" + "".join(f" - {tick}{entry}{tick}\n" for entry in entries)
142
+ for field, entries in fields.items()), encoding="utf-8")
143
+ actual, = audit(tmp_path)["packs"]
144
+ special, percent = literal + "/SKILL.v1.md", escaped + "/SKILL.v1.md"
145
+ assert actual["owns_skills"] == [special, percent]
146
+ assert actual["uses_skills"] == [special, special, special, percent]
@@ -0,0 +1,51 @@
1
+ import hashlib
2
+ from zipfile import ZipFile
3
+
4
+ import pytest
5
+
6
+ from tools.verify_runtime_wheel import verify_wheel
7
+
8
+
9
+ def make_wheel(directory, metadata_version="0.0.1"):
10
+ wheel = directory / "xrefkit_openai_runtime-0.0.1-py3-none-any.whl"
11
+ with ZipFile(wheel, "w") as archive:
12
+ archive.writestr(
13
+ "xrefkit_openai_runtime-0.0.1.dist-info/METADATA",
14
+ f"Metadata-Version: 2.1\nName: xrefkit-openai-runtime\nVersion: {metadata_version}\n",
15
+ )
16
+ return wheel, hashlib.sha256(wheel.read_bytes()).hexdigest()
17
+
18
+
19
+ def test_verifies_exact_candidate_without_changing_bytes(tmp_path):
20
+ wheel, digest = make_wheel(tmp_path)
21
+ assert verify_wheel(tmp_path, "0.0.1", digest.upper()) == wheel
22
+ assert hashlib.sha256(wheel.read_bytes()).hexdigest() == digest
23
+
24
+
25
+ @pytest.mark.parametrize("extra", ["runtime.tar.gz", ".hidden", "another.whl"])
26
+ def test_rejects_extra_upload_entries(tmp_path, extra):
27
+ _, digest = make_wheel(tmp_path)
28
+ (tmp_path / extra).touch()
29
+ with pytest.raises(ValueError, match="exactly one"):
30
+ verify_wheel(tmp_path, "0.0.1", digest)
31
+
32
+
33
+ def test_rejects_missing_or_modified_candidate(tmp_path):
34
+ wheel, digest = make_wheel(tmp_path)
35
+ with wheel.open("ab") as stream:
36
+ stream.write(b"changed after acceptance")
37
+ with pytest.raises(ValueError, match="SHA-256"):
38
+ verify_wheel(tmp_path, "0.0.1", digest)
39
+ wheel.unlink()
40
+ with pytest.raises(ValueError, match="exactly one"):
41
+ verify_wheel(tmp_path, "0.0.1", digest)
42
+
43
+
44
+ def test_rejects_identity_and_approval_mismatch(tmp_path):
45
+ _, digest = make_wheel(tmp_path, metadata_version="0.0.2")
46
+ with pytest.raises(ValueError, match="distribution identity"):
47
+ verify_wheel(tmp_path, "0.0.1", digest)
48
+ with pytest.raises(ValueError, match="wheel name or version"):
49
+ verify_wheel(tmp_path, "0.0.2", digest)
50
+ with pytest.raises(ValueError, match="SHA-256"):
51
+ verify_wheel(tmp_path, "0.0.1", "")
@@ -2,4 +2,4 @@
2
2
 
3
3
  __all__ = ["__version__"]
4
4
 
5
- __version__ = "0.7.14"
5
+ __version__ = "0.7.15"
@@ -21,6 +21,7 @@ def _print_help() -> None:
21
21
  " gateway prepare inputs, route model work, and evaluate retry feedback\n"
22
22
  " governance prepare bounded governance entries and validate host results\n"
23
23
  " skill discover, validate, run, verify, and close Skills\n"
24
+ " skill-knowledge-audit generate a local HTML report of Skill and Knowledge links\n"
24
25
  " workflow run the generic protocol for instructions without a Skill\n"
25
26
  " host run host-compatibility evidence checks\n"
26
27
  " tools list and run XID-backed client tools\n"
@@ -46,6 +47,10 @@ def main(argv: Sequence[str] | None = None) -> int:
46
47
  return 0
47
48
 
48
49
  command = args[0]
50
+ if command == "skill-knowledge-audit":
51
+ from .skill_knowledge_audit import main as audit_main
52
+
53
+ return audit_main(args[1:])
49
54
  if command == "governance":
50
55
  from .governance_entry_cli import main as governance_main
51
56
 
@@ -0,0 +1,231 @@
1
+ <!doctype html>
2
+ <html lang="ja"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">
3
+ <title>Skill と Knowledge の関連調査 · XRefKit</title>
4
+ <style>
5
+ :root{color-scheme:light;--ink:#18362f;--quiet:#4a625b;--accent:#175e4f;--line:#cad7cf;--pale:#eef4ef}
6
+ *{box-sizing:border-box}body{margin:0;color:var(--ink);background:#f5f7f3;font:15px/1.6 system-ui,sans-serif}
7
+ header{padding:26px clamp(16px,4vw,58px);background:#143c32;color:white}header b{letter-spacing:.08em;font-size:13px;color:#cee1d3}h1{font-size:clamp(22px,4vw,34px);margin:3px 0}h2{margin:0;font-size:23px}h3{margin:22px 0 5px;font-size:18px}h4{margin:14px 0 3px}
8
+ main{max-width:1550px;margin:auto;padding:18px clamp(12px,4vw,58px) 40px}nav{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 15px}
9
+ button,input,select,textarea{font:inherit;color:inherit}button,summary,select{cursor:pointer}button,select,input,textarea{border:1px solid #8fa69a;background:white;border-radius:5px;padding:6px 9px}button:hover{background:#ecf2eb}button[aria-selected=true],.primary{background:var(--accent);color:white}button.primary:hover{background:#12493f}
10
+ :focus-visible{outline:3px solid #c47700;outline-offset:2px}a{color:#12614c;text-decoration-thickness:1px;text-underline-offset:2px;overflow-wrap:anywhere}
11
+ .layout{display:grid;grid-template-columns:minmax(210px,24%) minmax(0,1fr);gap:14px;align-items:start}.panel,aside{border:1px solid var(--line);border-radius:8px;padding:clamp(12px,2vw,23px);background:white;min-width:0}
12
+ aside label,.editor label{display:grid;gap:4px;margin-bottom:13px;font-weight:600}input,select,textarea{max-width:100%;min-width:0}select{width:100%}aside p{margin:.5em 0}
13
+ .quiet,.trail{color:var(--quiet);font-size:14px}.trail{margin:0 0 5px}.data,.trail,.panel li,summary,code,.editor{overflow-wrap:anywhere}
14
+ details{margin:9px 0}summary{font-weight:600}ul,ol{padding-inline-start:22px}p{margin:.4em 0 .7em}
15
+ table{border-collapse:collapse;width:100%;font-size:14px}td,th{padding:7px 9px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}th{background:var(--pale)}
16
+ .scroll{max-width:100%;overflow:auto;padding-bottom:4px}.matrix{width:max-content;min-width:100%;table-layout:fixed}.matrix th:first-child{position:sticky;left:0;z-index:1;min-width:130px;max-width:185px}.matrix th:not(:first-child){max-width:175px;min-width:130px}.matrix button{min-width:78px;font-size:13px}.matrix td{vertical-align:middle}.matrix button[data-state="必要"]{background:#d8efe4}.matrix button[data-state="用途外"]{background:#fae6d8}
17
+ .editor{margin:12px 0;background:#f1f6f2;border:1px solid var(--line);border-radius:6px;padding:14px}.editor h4{margin:0}.editor textarea{width:100%;min-height:56px}.editor button{margin-right:6px}.counts{display:flex;flex-wrap:wrap;gap:8px}.counts span{padding:5px 10px;background:var(--pale);border-radius:4px}
18
+ .scope{margin-top:18px;color:var(--quiet)}.scope code{white-space:normal}code{font-size:.93em}.hint{border-left:3px solid #7d9c88;padding-left:10px} [hidden]{display:none!important}
19
+ @media(max-width:700px){.layout{grid-template-columns:minmax(0,1fr)}nav button{flex:1 1 135px}.panel,aside{padding:12px}main{padding-inline:10px}td,th{padding:5px}}
20
+ </style></head><body><header><b>XRefKit</b><h1>Skill と Knowledge の関連調査</h1><div id="summary"></div></header>
21
+ <main><nav aria-label="調査の入口" role="tablist">
22
+ <button type="button" role="tab" id="tab-k" aria-controls="view-k" aria-selected="true">Knowledgeから逆引き</button>
23
+ <button type="button" role="tab" id="tab-s" aria-controls="view-s" aria-selected="false" tabindex="-1">Pack・Skillから探す</button>
24
+ <button type="button" role="tab" id="tab-x" aria-controls="view-x" aria-selected="false" tabindex="-1">リンク切れXID一覧</button></nav>
25
+ <section role="tabpanel" id="view-k" aria-labelledby="tab-k"><div class="layout"><aside>
26
+ <label>Knowledgeのまとまり<select id="group"></select></label>
27
+ <label>文書を絞り込む<input id="doc-filter" type="search" placeholder="文書名・XID"></label>
28
+ <label>Knowledge文書<select id="doc"></select></label><p id="k-count" aria-live="polite"></p></aside>
29
+ <article class="panel" id="k-detail"></article></div></section>
30
+ <section role="tabpanel" id="view-s" aria-labelledby="tab-s" hidden><div class="layout"><aside>
31
+ <label>Pack<select id="pack"></select></label><label>Skillを絞り込む<input type="search" id="skill-filter" placeholder="Skill名"></label>
32
+ <label>Skill<select id="skill"></select></label><label>参照するKnowledge<select id="s-doc"></select></label><p id="s-count" aria-live="polite"></p></aside>
33
+ <article class="panel" id="s-detail"></article></div></section>
34
+ <section role="tabpanel" id="view-x" aria-labelledby="tab-x" hidden><article class="panel" id="x-detail"></article></section>
35
+ <details class="scope" id="scan"><summary id="scan-summary">走査範囲・読み込みエラー</summary><div id="scan-detail"></div></details></main>
36
+ <script type="application/json" id="audit-data">AUDIT_PAYLOAD</script><script>
37
+ "use strict";
38
+ const data=JSON.parse(document.getElementById('audit-data').textContent);
39
+ const $=id=>document.getElementById(id);
40
+ function node(tag,text,cls){const n=document.createElement(tag);if(text!=null)n.textContent=text;if(cls)n.className=cls;return n}
41
+ function link(path,text){if(!Object.hasOwn(data.links,path))return node('span',text);const a=node('a',text);a.href=data.links[path];a.target='_blank';a.rel='noopener';return a}
42
+ function details(label,open=false){const n=node('details');n.append(node('summary',label));n.open=open;return n}
43
+ function subsection(parent,title){parent.append(node('h3',title))}
44
+ function empty(parent){parent.append(node('p','0件 · 該当なし','quiet'))}
45
+ function options(select,entries,wanted){
46
+ const prev=wanted??select.value;select.replaceChildren();
47
+ for(const [value,label] of entries)select.add(new Option(label,value));
48
+ if(entries.some(([v])=>v===prev))select.value=prev;
49
+ select.disabled=!entries.length;
50
+ }
51
+ const docs=Object.entries(data.docs),definitions=Object.entries(data.definitions);
52
+ const docGroup=path=>path.slice(0,path.lastIndexOf('/')).replace(/^knowledge\/?/,'')||'(直下)';
53
+ const groups=[...new Set(docs.map(([path])=>docGroup(path)))].sort();
54
+ const packs=new Map(data.packs.map(p=>[p.id,p]));
55
+ const noPack=':unowned', direct=':pack', unowned='Pack所属なし';
56
+ const rows=data.rows.map((row,index)=>({...row,index}));
57
+
58
+ const byDoc=new Map(), bySource=new Map();
59
+ for(const row of rows){
60
+ if(row.source){if(!bySource.has(row.source))bySource.set(row.source,[]);bySource.get(row.source).push(row)}
61
+ if(row.status==='resolved'){if(!byDoc.has(row.target))byDoc.set(row.target,[]);byDoc.get(row.target).push(row)}
62
+ }
63
+ function memberships(path){
64
+ const result=[];
65
+ for(const p of data.packs){
66
+ if(p.owns_skills.includes(path))result.push([p.id,'所属']);
67
+ if(p.uses_skills.includes(path))result.push([p.id,'利用']);
68
+ }
69
+ if(!result.some(([,role])=>role==='所属'))result.push([unowned,'所属']);
70
+ return result;
71
+ }
72
+ function locationLabel(r){
73
+ if(r.line)return 'L'+r.line+(r.position?' · '+r.position+'桁':'');
74
+ return r.kind+' ['+(r.position+1)+']';
75
+ }
76
+ function origin(r){
77
+ const p=node('p');p.append(link(r.source,(r.skill||r.pack)+' · '+locationLabel(r)));
78
+ p.append(document.createTextNode(' '+(r.need||r.kind)));return p;
79
+ }
80
+ function evidence(parent,rs){
81
+ for(const r of rs){const box=node('div');box.append(origin(r));
82
+ if(r.context)box.append(node('p',r.context,'hint data'));parent.append(box)}
83
+ }
84
+ const choices=new Map();
85
+ function judgeKey(path,section,r){return JSON.stringify([path,data.docs[path].xid,section.hierarchy,section.line,r.source,r.kind,r.line,r.position,r.context])}
86
+ function cellState(path,section,rs){
87
+ const values=new Set(rs.map(r=>choices.get(judgeKey(path,section,r))?.state||'未確認'));
88
+ return values.size>1?'条件別':values.values().next().value;
89
+ }
90
+ function usageTable(parent,path,rs){
91
+ subsection(parent,'参照元のPack・Skill');
92
+ const grouping=new Map();
93
+ function add(group,source,r){
94
+ if(!grouping.has(group))grouping.set(group,new Map());
95
+ const sources=grouping.get(group);if(!sources.has(source))sources.set(source,[]);sources.get(source).push(r)
96
+ }
97
+ for(const r of rs){
98
+ if(r.pack){add(r.pack+' / Packの直接宣言',r.source,r);continue}
99
+ for(const [pack,role] of memberships(r.source))add(pack+(pack===unowned?'':' / '+role+'Skill'),r.source,r)
100
+ }
101
+ if(!grouping.size)empty(parent);
102
+ for(const [name,sources] of grouping){
103
+ const group=details(name+'('+sources.size+'件)',grouping.size===1);
104
+ for(const [source,items] of sources){const first=items[0],block=details((first.skill||first.pack)+' · '+items.length+'箇所');
105
+ block.append(link(source,first.skill||first.pack));evidence(block,items);group.append(block)}
106
+ parent.append(group)
107
+ }
108
+ }
109
+ function matrix(parent,path,rs){
110
+ subsection(parent,'節ごとの用途比較');
111
+ const sources=new Map();
112
+ for(const r of rs.filter(r=>r.skill)){if(!sources.has(r.source))sources.set(r.source,[]);sources.get(r.source).push(r)}
113
+ if(!sources.size){empty(parent);return}
114
+ const doc=data.docs[path], wrap=node('div',null,'scroll'), table=node('table',null,'matrix');
115
+ const head=table.createTHead().insertRow();head.append(node('th','Knowledgeの節'));
116
+ for(const [source,items] of sources){const th=node('th');th.scope='col';th.append(link(source,items[0].skill));head.append(th)}
117
+ const body=table.createTBody(),editor=node('div',null,'editor');editor.hidden=true;
118
+ const note=node('p','判定と理由はこのページを開いている間だけ保持します。','quiet');
119
+ const split=node('div');let lastTrigger;
120
+ function edit(section,source,items,btn){
121
+ lastTrigger=btn;editor.replaceChildren();editor.hidden=false;
122
+ const select=node('select'),status=node('select'),reason=node('textarea'),detail=node('div');
123
+ const label=(text,field)=>{const l=node('label',text);l.append(field);editor.append(l)};
124
+ editor.append(node('h4',items[0].skill+' / '+section.title+'(L'+section.line+')'));
125
+ editor.append(node('p',section.excerpt||'この節に本文抜粋はありません。','hint'));
126
+ options(select,items.map(r=>[String(r.index),locationLabel(r)+' · '+(r.need||r.kind)]));
127
+ label('用途・適用条件を選択',select);editor.append(detail);
128
+ options(status,['未確認','必要','用途外'].map(s=>[s,s==='用途外'?'この用途では不要':s]));
129
+ label('この用途での判定',status);label('判断理由(必要・用途外の判定に必須)',reason);
130
+ function selected(){return rows[Number(select.value)]}
131
+ function change(){const r=selected(),saved=choices.get(judgeKey(path,section,r));status.value=saved?.state||'未確認';reason.value=saved?.reason||'';reason.setCustomValidity('');
132
+ detail.replaceChildren(link(source,'出典 '+locationLabel(r)),node('p',r.context||'条件記載なし'))}
133
+ select.onchange=change;reason.oninput=()=>reason.setCustomValidity('');status.onchange=()=>reason.setCustomValidity('');
134
+ const save=node('button','判定を反映','primary'),close=node('button','閉じる');close.onclick=()=>{editor.hidden=true;lastTrigger.focus()};
135
+ save.onclick=()=>{const r=selected(),key=judgeKey(path,section,r);
136
+ if(status.value!=='未確認'&&!reason.value.trim()){reason.setCustomValidity('判断理由を入力してください。');reason.reportValidity();return}
137
+ if(status.value==='未確認')choices.delete(key);else choices.set(key,{state:status.value,reason:reason.value.trim()});
138
+ btn.textContent=cellState(path,section,items);btn.dataset.state=btn.textContent;renderSplit();close.click()
139
+ };
140
+ editor.append(save,close);change();select.focus()
141
+ }
142
+ for(const section of doc.sections){const tr=body.insertRow(),th=node('th',section.title+' · L'+section.line);th.scope='row';tr.append(th);
143
+ for(const [source,items] of sources){const btn=node('button',cellState(path,section,items));btn.dataset.state=btn.textContent;btn.setAttribute('aria-label',section.title+' / '+items[0].skill+' の用途判定');btn.onclick=()=>edit(section,source,items,btn);tr.insertCell().append(btn)}}
144
+ function renderSplit(){
145
+ split.replaceChildren(node('h4','分割の検討候補'));let count=0;
146
+ for(const section of doc.sections){
147
+ const needed=[],outside=[];
148
+ for(const [source,items] of sources)for(const r of items){
149
+ const j=choices.get(judgeKey(path,section,r));if(j)(j.state==='必要'?needed:outside).push({source,r,j})
150
+ }
151
+ const distinct=(a,b)=>a.r.skill!==b.r.skill;
152
+ const relevant=[...needed.filter(n=>outside.some(o=>distinct(n,o))),...outside.filter(o=>needed.some(n=>distinct(n,o)))];
153
+ if(!relevant.length)continue;count++;
154
+ const list=details(section.title+' · L'+section.line,true);for(const {source,r,j} of relevant){const line=node('p');line.append(link(source,r.skill),document.createTextNode(' / '+locationLabel(r)+' / '+j.state+':'+j.reason));list.append(line)}split.append(list)
155
+ }
156
+ if(!count)empty(split);else split.append(node('p','節間の依存、参照先の変更、追加取得の要否を原文で確認し、現状維持・分割・共通知識化を比較します。','hint'))
157
+ }
158
+ wrap.append(table);parent.append(note,wrap,editor,split);renderSplit();
159
+ const demo=details('仮の判定例を見る');
160
+ demo.append(node('p','例示用の節「適用条件」の仮判定。実データの集計とは独立しています。'));
161
+ const examples=node('ul');
162
+ examples.append(node('li','Skill A(設計) / 必要 / 設計時に適用条件を確認するため。'),
163
+ node('li','Skill B(実行) / 用途外 / 実行時には確定済みの判定結果だけを使用するため。'));
164
+ demo.append(examples,node('p','例示上の分割検討候補:適用条件'));parent.append(demo)
165
+ }
166
+ function documentView(parent,path){
167
+ const doc=data.docs[path];if(!doc){empty(parent);return}
168
+ parent.append(node('p',docGroup(path),'trail'));const h=node('h2');h.append(link(path,doc.title));parent.append(h,node('code',doc.xid||'XID未指定'));
169
+ const rs=byDoc.get(path)||[];usageTable(parent,path,rs);matrix(parent,path,rs)
170
+ }
171
+ function knowledgeOptions(wanted){const filter=$('doc-filter').value.toLowerCase(),group=$('group').value;
172
+ const items=docs.filter(([p,d])=>docGroup(p)===group&&[p,d.title,d.xid].join(' ').toLowerCase().includes(filter));
173
+ options($('doc'),items.map(([p,d])=>[p,d.title+' · '+p.split('/').pop()]),wanted);$('k-count').textContent=items.length+'件'+(items.length?'':' · 該当なし');knowledgeView()
174
+ }
175
+ function knowledgeView(){const panel=$('k-detail');panel.replaceChildren();documentView(panel,$('doc').value)}
176
+ function skillOptions(){
177
+ const id=$('pack').value,group=packs.get(id),filter=$('skill-filter').value.toLowerCase();
178
+ const items=definitions.filter(([p,d])=>(group?group.owns_skills.includes(p)||group.uses_skills.includes(p):memberships(p).some(([n])=>n===unowned))&&[p,d.id].join(' ').toLowerCase().includes(filter));
179
+ const choices=items.map(([p,d])=>[p,(group?(group.owns_skills.includes(p)?'所属 · ':'利用 · '):'')+d.id]);
180
+ if(group&&!filter)choices.unshift([direct,'Packの直接宣言']);
181
+ options($('skill'),choices);$('s-count').textContent='Skill '+items.length+'件'+(items.length?'':' · 該当なし');skillDocs()
182
+ }
183
+ function selectedRows(){const id=$('skill').value;return bySource.get(id===direct?packs.get($('pack').value)?.source:id)||[]}
184
+ function skillDocs(){const selected=selectedRows(),paths=[...new Set(selected.filter(r=>r.status==='resolved').map(r=>r.target))];
185
+ options($('s-doc'),paths.map(p=>[p,data.docs[p].title+' · '+p.split('/').pop()]));skillView()
186
+ }
187
+ function skillView(){
188
+ const panel=$('s-detail');panel.replaceChildren();const p=packs.get($('pack').value),source=$('skill').value;
189
+ const isPack=source===direct;if(!source){empty(panel);return}
190
+ const trail=node('p',null,'trail');trail.append(link(p?.source||'',p?.id||unowned),document.createTextNode(' › '),link(isPack?p.source:source,isPack?'Packの直接宣言':data.definitions[source].id));panel.append(trail);
191
+ const rs=selectedRows();
192
+ if(!isPack)panel.append(node('p',data.definitions[source].summary));
193
+ const other=rs.filter(r=>r.status!=='resolved'&&r.status!=='none');
194
+ if(other.length){
195
+ const list=details('実行時検索・その他の参照('+other.length+'件)');
196
+ for(const r of other){list.append(node('h4',({dynamic:'実行時検索',external:'Knowledge外の参照',broken:'参照エラー'})[r.status]||r.status));evidence(list,[r]);if(r.target)list.append(link(r.target,r.target));if(r.reason)list.append(node('p',r.reason))}
197
+ panel.append(list)
198
+ }
199
+ if(!$('s-doc').value){subsection(panel,'固定参照のKnowledge');empty(panel);return}
200
+ documentView(panel,$('s-doc').value)
201
+ }
202
+ function issuesView(){
203
+ const panel=$('x-detail'),{counts,groups,no_xid}=data.defects;panel.append(node('h2','リンク切れXID一覧'));
204
+ const bar=node('p',null,'counts');for(const [k,label] of [['xids','障害XID'],['events','障害事象'],['occurrences','出現箇所'],['skills','影響Skill']])bar.append(node('span',label+' '+counts[k]+'件'));panel.append(bar);
205
+ if(!groups.length)empty(panel);
206
+ function showOccurrence(parent,r){const li=node('li');li.append(link(r.source,(r.skill||r.pack)+' · '+r.source+' · '+locationLabel(r)),node('div',r.raw_reference||r.raw_xid,'quiet'));if(r.reason)li.append(node('div',r.reason,'quiet'));parent.append(li)}
207
+ for(const g of groups){const group=details(g.xid+' / '+g.events.length+'事象');
208
+ for(const e of g.events){const event=details((e.path||'パス指定なし')+(e.anchor?'#'+e.anchor:'')+' / '+e.reason+' / '+e.occurrences.length+'箇所');const ul=node('ul');for(const r of e.occurrences)showOccurrence(ul,r);event.append(ul);group.append(event)}
209
+ panel.append(group)
210
+ }
211
+ const missing=details('XID未指定の参照エラー('+no_xid.length+'件)');if(!no_xid.length)empty(missing);else{const ul=node('ul');for(const r of no_xid)showOccurrence(ul,r);missing.append(ul)}panel.append(missing)
212
+ }
213
+ $('summary').textContent=data.packs.length+' Packs / '+definitions.length+' Skills / '+docs.length+' Knowledge';
214
+ $('scan-summary').textContent='走査範囲・読み込みエラー('+data.errors.length+'件)';
215
+ $('scan-detail').append(node('code',data.scope.root),node('p','対象:skills/ の SKILL.v1.md と pack.md、knowledge/ のMarkdown。Skill定義:発見 '+data.scope.found+'件 / 正常 '+data.scope.parsed+'件 / 読み込み不能 '+data.scope.unreadable+'件。'));
216
+ for(const error of data.errors)$('scan-detail').append(node('p',error.source+' / '+error.error));
217
+ const example=docs.find(([,d])=>d.xid==='7A2F4C8D1701')?.[0];
218
+ options($('group'),groups.map(g=>[g,g]),example?docGroup(example):undefined);
219
+ options($('pack'),[...data.packs.map(p=>[p.id,p.id]),[noPack,unowned]]);
220
+ $('group').onchange=()=>knowledgeOptions();$('doc-filter').oninput=()=>knowledgeOptions();$('doc').onchange=knowledgeView;
221
+ $('pack').onchange=skillOptions;$('skill-filter').oninput=skillOptions;$('skill').onchange=skillDocs;$('s-doc').onchange=skillView;
222
+ knowledgeOptions(example);skillOptions();issuesView();
223
+ const tabs=[...document.querySelectorAll('[role=tab]')];
224
+ function activate(tab){
225
+ for(const t of tabs){const active=t===tab;t.setAttribute('aria-selected',String(active));t.tabIndex=active?0:-1;$(t.getAttribute('aria-controls')).hidden=!active}
226
+ if(tab.id==='tab-s')skillView();if(tab.id==='tab-k')knowledgeView()
227
+ }
228
+ for(const [i,t] of tabs.entries()){
229
+ t.onclick=()=>activate(t);t.onkeydown=e=>{const indices={ArrowLeft:(i+2)%3,ArrowRight:(i+1)%3,Home:0,End:2};if(!Object.hasOwn(indices,e.key))return;e.preventDefault();const next=tabs[indices[e.key]];activate(next);next.focus()}
230
+ }
231
+ </script></body></html>