thth 3.6.0__tar.gz → 3.8.0__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.
- {thth-3.6.0 → thth-3.8.0}/PKG-INFO +1 -1
- {thth-3.6.0 → thth-3.8.0}/mcp/server.py +35 -5
- {thth-3.6.0 → thth-3.8.0}/skills/thth/SKILL.md +7 -1
- {thth-3.6.0 → thth-3.8.0}/tests/test_admin_http_mcp.py +3 -1
- {thth-3.6.0 → thth-3.8.0}/tests/test_ask.py +2 -1
- {thth-3.6.0 → thth-3.8.0}/tests/test_v210_json_contract.py +3 -1
- {thth-3.6.0 → thth-3.8.0}/tests/test_v340_plaza_mcp.py +4 -1
- {thth-3.6.0 → thth-3.8.0}/tests/test_v360_goal_analytics.py +9 -3
- {thth-3.6.0 → thth-3.8.0}/tests/test_v360_goal_observe_map.py +3 -2
- thth-3.8.0/tests/test_v370_account_self_healing.py +95 -0
- thth-3.8.0/tests/test_v370_approve_pending.py +160 -0
- thth-3.8.0/tests/test_v370_click_attribution.py +304 -0
- thth-3.8.0/tests/test_v370_collection_stale_basis.py +73 -0
- thth-3.8.0/tests/test_v370_docs.py +49 -0
- thth-3.8.0/tests/test_v370_follow_comparison.py +88 -0
- thth-3.8.0/tests/test_v370_local_path.py +73 -0
- thth-3.8.0/tests/test_v370_weekly_goals.py +94 -0
- thth-3.8.0/tests/test_v370_where_aggregate.py +118 -0
- thth-3.8.0/tests/test_v370_where_also.py +67 -0
- thth-3.8.0/tests/test_v370_where_zero.py +40 -0
- thth-3.8.0/tests/test_v380_docs.py +65 -0
- thth-3.8.0/tests/test_v380_plaza_digest.py +128 -0
- thth-3.8.0/tests/test_v380_plaza_from.py +278 -0
- thth-3.8.0/tests/test_v380_plaza_mcp.py +104 -0
- thth-3.8.0/tests/test_v380_plaza_moments.py +291 -0
- thth-3.8.0/tests/test_v380_plaza_owner.py +223 -0
- thth-3.8.0/tests/test_v380_plaza_received.py +74 -0
- thth-3.8.0/tests/test_v380_plaza_triggers.py +156 -0
- thth-3.8.0/thth/VERSION +1 -0
- {thth-3.6.0 → thth-3.8.0}/thth/account_report.py +34 -1
- {thth-3.6.0 → thth-3.8.0}/thth/accounts.py +22 -0
- {thth-3.6.0 → thth-3.8.0}/thth/admin_log.py +3 -0
- {thth-3.6.0 → thth-3.8.0}/thth/analytics_comparison.py +10 -3
- {thth-3.6.0 → thth-3.8.0}/thth/analytics_goals.py +74 -21
- {thth-3.6.0 → thth-3.8.0}/thth/analytics_report.py +4 -0
- thth-3.8.0/thth/analytics_weekly.py +144 -0
- thth-3.8.0/thth/approve_pending.py +193 -0
- {thth-3.6.0 → thth-3.8.0}/thth/ask_cli.py +19 -0
- {thth-3.6.0 → thth-3.8.0}/thth/cli.py +214 -13
- thth-3.8.0/thth/click_attribution.py +413 -0
- {thth-3.6.0 → thth-3.8.0}/thth/core.py +16 -0
- {thth-3.6.0 → thth-3.8.0}/thth/healthcheck.py +16 -1
- {thth-3.6.0 → thth-3.8.0}/thth/incident.py +28 -3
- {thth-3.6.0 → thth-3.8.0}/thth/lint.py +5 -0
- {thth-3.6.0 → thth-3.8.0}/thth/map_view.py +56 -17
- {thth-3.6.0 → thth-3.8.0}/thth/morning.py +176 -15
- {thth-3.6.0 → thth-3.8.0}/thth/plaza.py +546 -28
- {thth-3.6.0 → thth-3.8.0}/thth/plaza_cli.py +178 -12
- thth-3.8.0/thth/plaza_from.py +267 -0
- thth-3.8.0/thth/plaza_moments.py +408 -0
- {thth-3.6.0 → thth-3.8.0}/thth/plaza_observe.py +6 -4
- thth-3.8.0/thth/plaza_reads.py +168 -0
- {thth-3.6.0 → thth-3.8.0}/thth/plaza_redact.py +9 -0
- {thth-3.6.0 → thth-3.8.0}/thth/report.py +16 -0
- {thth-3.6.0 → thth-3.8.0}/thth/report_service.py +71 -12
- {thth-3.6.0 → thth-3.8.0}/thth/sent.py +11 -1
- {thth-3.6.0 → thth-3.8.0}/thth/threadthrow.py +15 -0
- {thth-3.6.0 → thth-3.8.0}/thth/unanswered.py +16 -0
- {thth-3.6.0 → thth-3.8.0}/thth/where_cli.py +238 -8
- {thth-3.6.0 → thth-3.8.0}/thth/writeback.py +31 -0
- thth-3.6.0/thth/VERSION +0 -1
- {thth-3.6.0 → thth-3.8.0}/.gitignore +0 -0
- {thth-3.6.0 → thth-3.8.0}/LICENSE +0 -0
- {thth-3.6.0 → thth-3.8.0}/README.md +0 -0
- {thth-3.6.0 → thth-3.8.0}/accounts.example/bluesky.json +0 -0
- {thth-3.6.0 → thth-3.8.0}/accounts.example/mastodon.json +0 -0
- {thth-3.6.0 → thth-3.8.0}/accounts.example/threads.json +0 -0
- {thth-3.6.0 → thth-3.8.0}/accounts.example/x.json +0 -0
- {thth-3.6.0 → thth-3.8.0}/bin/thth +0 -0
- {thth-3.6.0 → thth-3.8.0}/bin/thth-remote +0 -0
- {thth-3.6.0 → thth-3.8.0}/bin/thth-run +0 -0
- {thth-3.6.0 → thth-3.8.0}/pyproject.toml +0 -0
- {thth-3.6.0 → thth-3.8.0}/skills/thth-admin/SKILL.md +0 -0
- {thth-3.6.0 → thth-3.8.0}/systemd/thth@.service +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/__init__.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/conftest.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/coordination_snapshot.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/fixtures/GraphemeBreakTest-17.0.0.txt +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/fixtures/build_injection_eval.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/fixtures/callback/worker_responses.json +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/fixtures/injection_eval.json +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/fixtures/umami-bile.md +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/helpers/__init__.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/helpers/fake_oauth_server.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/helpers/fake_push_adapter.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/helpers/fake_redirect_server.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/helpers/fake_search_adapter.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/helpers/fake_threads_reader.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/helpers/fake_threads_status.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/helpers/fake_threads_writes.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/helpers/fake_x.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/helpers/hold_lock.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/helpers/hold_repo_lock.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/helpers/worker_probe.mjs +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_27_acceptance_fixes.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_account_name_check.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_account_report.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_accounts_dir.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_adapter_boundary.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_admin_log.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_admin_notifications.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_admin_repairs.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_admin_report.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_after_cli.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_analytics_comparison.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_analytics_report.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_api_diagnostic.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_api_error_body.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_app_env_cli.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_approval.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_approve_cmd.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_atlas_fifth_review.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_atlas_fourth_review.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_atlas_review.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_atlas_second_review.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_atlas_third_review.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_audit1_fixes.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_audit2_fixes.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_audit_b_counterexamples.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_audit_b_m1_semantics.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_audit_b_n1_depth.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_audit_b_r1_closure.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_audit_v201.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_audit_v23_details.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_auth.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_auth_identity_required.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_behind_remote.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_bluesky_adapter.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_bluesky_secret_scrub.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_board_needs_review.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_board_running.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_bundle.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_charcount.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_cli_entrypoint.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_cli_help.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_cli_vm_path.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_collect.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_collect_engagements.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_collect_runs.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_collect_sent.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_comparability.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_control_chars_refused.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_conversation_paging.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_count_for.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_docs_links.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_doctor.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_doctor_all_permissions.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_doctor_next_step.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_duplicate_front_matter_keys.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_editorial_audit.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_editorial_n3_n4.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_engagements.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_external_acceptance.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_fake_api.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_form_spec.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_form_spec_cli.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_forms.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_fresh_install.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_front_matter_injection.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_healthcheck_notifications.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_hypotheses.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_hypothesis_boundaries.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_hypothesis_units.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_impact_cli.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_inbox_granted_scopes.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_incident_notifications.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_independent_thread_review.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_independent_topic_review.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_independent_topic_review_r2.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_inflight.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_inflight_tag_body_hash.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_jst.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_lint.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_list_projections.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_llm_trial.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_llm_trial_engage.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_lock.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_m2_independent.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_maintain.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_mastodon_adapter.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_mastodon_visibility.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_max_per_run.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_mcp.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_mcp_robustness.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_measured.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_media_accounts.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_media_next_steps.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_media_roundtrip.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_mismatch_diagnostics.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_n5_reply_null_element.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_n6_replies_incomplete_ledger.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_n7_doctor_error_body.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_no_limits.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_observation_provenance.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_operations_handoff.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_packaging.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_preview.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_production_mode.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_pull_cli.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_queue.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_quiet_hours.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_r2_r4_r5.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_read_cli_bare_runtimeerror.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_reason_adoption.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_redact.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_redirect_token_leak.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_refresh.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_refresh_destination.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_rejudge_new.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_rejudge_r2_r3.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_replies.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_replies_refresh.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_repo_lock.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_repo_sync.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_report_checkout_import.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_report_http.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_report_isolation.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_report_service.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_reverse_audit.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_review_case_id_cluster_m2.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_review_case_id_cluster_r2.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_review_cli.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_review_evidence_account.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_review_form_spec_and_case_id.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_review_provenance.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_review_records.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_revoke.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_roundtrip.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_run_missing_env.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_run_record_failclosed.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_runs_collected.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_runs_read_rows.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_schedule_multiple.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_schedule_view.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_scopes_source_requested.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_search_engage_targets.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_search_media_routes.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_secret_value_redact.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_secrets_grep.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_security_small_fixes.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_select.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_selfupdate.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_send.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_send_cli.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_send_control_chars.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_send_media.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_send_visibility.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_sent_integrity.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_server_json.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_site.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_skill_doc.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_study_report.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_systemd.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_thread_publish.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_thread_read.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_threadrun.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_threads_read_permissions.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_threadshape.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_thth_root.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_token_exists.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_token_scopes_record.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_token_set.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_topic.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_topic_advice.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_topic_cli.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_topic_models.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_topic_review_fixes.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_topic_shelf_observers.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_topic_store.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_topics_record_concurrent.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_topics_tool.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_trial_frictions.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v210_admin_transaction.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v210_approve_account.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v210_length.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v210_lock_wait.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v210_mastodon_scopes.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v210_mentions.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v210_post_urls.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v210_repo_paths.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v210_reposts.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v210_study_add.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v210_tool_version.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v210_unanswered.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v210_unanswered_scope.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v210_where_arguments.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v210_where_filters.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v210_who_arguments.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v211_auth_integration.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v211_authflow.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v211_bluesky_stdin.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v211_doctor_binding.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v211_mastodon_auth.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v211_x_auth.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v212_approval_relay.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v212_ask_coordination.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v212_budget.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v212_budget_auth.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v212_budget_mcp.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v212_deletion.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v212_job_completion_fault.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v212_leave.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v212_leave_gate.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v212_leave_providers.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v212_leave_token_safety.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v212_mastodon_guide.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v212_mcp_compat.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v212_missing_token.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v212_read_coordination.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v212_server_writes.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v212_token_parent.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v212_write_storage.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v2131_send_dry_run.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v2131_threads_publish_wait.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v2132_send_inflight_hint.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v2132_threads_create_timeout.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v2132_threads_create_unknown.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_acceptance_fixes.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_adts_asf.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_approval_attachments.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_attachment_kinds.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_bluesky_external.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_bluesky_media.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_bluesky_metadata.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_bluesky_metadata_uri.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_bluesky_metadata_video.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_bluesky_record.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_bluesky_record_video.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_bluesky_video.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_bluesky_webm_named.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_bmff_typed_metadata.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_budget_lock.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_capabilities.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_carryover_timeout.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_graphemes.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_mastodon_auth_media.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_mastodon_bmff_audio.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_mastodon_flac.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_mastodon_gif.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_mastodon_link.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_mastodon_media.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_mastodon_mp3.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_mastodon_ogg_opus.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_mastodon_ogg_vorbis.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_mastodon_poll.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_mastodon_primary_size_boundary.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_mastodon_quote.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_mastodon_thumbnail.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_mastodon_wav.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_mastodon_webm_audio.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_mastodon_webm_video.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_media_cleanup.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_media_formats.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_media_foundation.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_media_prepared.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_media_relay.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_media_relay_refusals.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_media_upload.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_receipt_deadline.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_review_followups.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_stage810_audit.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_static_diagnostics.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_stop_observation.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_systemd_worker.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_threads_ghost.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_threads_gif.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_threads_link.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_threads_media.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_threads_media_spoiler.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_threads_poll.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_threads_quote.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_threads_quote_media.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_threads_replies.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_threads_text.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_threads_text_spoiler.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_threads_video.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_transport_review.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_video_typed_metadata.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_vorbis_comment_boundary.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v213_webm_schema_boundary.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v2141_draft_lint_reason.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v2141_managed_repo_umask.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v214_release_signing.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v214_x_adapter.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v214_x_auth.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v214_x_media.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v214_x_posts_budget.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v21b_approved_writes.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v28_tags.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v310_morning.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v310_search_timeout.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v310_watch_words.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v311_leave_same_user.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v311_mastodon_retract.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v311_morning_overdue.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v311_morning_own_exclusion.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v311_morning_unanswered_window.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v311_notifications_guidance.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v311_replies_owned.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v312_leave_shared_token.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v312_own_handles_stopped.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v312_report_admin.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v312_report_channel.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v312_report_inbox.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v312_report_mcp_user.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v31_analysis.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v31_collection.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v320_reply_to_file_display.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v320_reply_to_file_lint.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v320_reply_to_file_resolve.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v320_report_fixes.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v330_fingerprint_version.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v330_held.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v330_held_names.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v330_last_refusals.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v330_notification_route.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v330_observe.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v330_report_friction.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v330_report_words.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v330_reports_effect.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v331_inflight_cli.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v331_listing_resolve.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v331_outbox_retention.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v331_publish_status.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v331_self_resolve.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v340_plaza_cli.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v340_plaza_docs.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v340_plaza_fields.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v340_plaza_morning.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v340_plaza_observe.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v340_plaza_open.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v340_plaza_open_confirm.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v340_plaza_reply.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v340_plaza_store.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v350_map_docs.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v350_map_nodes.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v350_map_observe.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v350_map_plaza.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v350_map_retention.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v350_map_self.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v350_map_show.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v350_map_world.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v351_leave_timers.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v351_plaza_open_holes.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v351_who_owned.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v360_goal_docs.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v360_goal_plaza.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v360_goal_record.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v360_goal_send.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_v360_report_timeline.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_value_domains_shown.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_version.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_where_cli.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_who_cli.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_writeback_rebase.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_writeback_validate.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/tests/test_x_metrics.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/__init__.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/__main__.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/_grapheme_data.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/account_cli.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/adapters/__init__.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/adapters/auth_mastodon.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/adapters/auth_threads.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/adapters/auth_x.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/adapters/base.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/adapters/bluesky.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/adapters/bluesky_media.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/adapters/bluesky_video.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/adapters/mastodon.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/adapters/mastodon_media.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/adapters/threads.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/adapters/threads_media.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/adapters/x.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/adapters/x_media.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/admin_notifications.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/admin_report.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/after_cli.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/analytics_shapes.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/analytics_threads.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/api_diagnostic.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/appconfig.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/appenv.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/approval.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/approval_jobs.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/approval_relay.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/ask.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/audioformats.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/authclients.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/authflow.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/authpassword.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/bluesky_metadata.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/budget_x.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/budget_x_posts.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/bundle.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/collect.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/collection_context.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/collection_status.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/deletion.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/doctor.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/ebmlaudio.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/ebmlvideo.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/engagements.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/fingerprint_golden.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/flacformats.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/forms.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/goals.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/graphemes.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/handoff_cursor.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/httpsafe.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/inflight.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/inflight_cli.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/inflight_resolve.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/jst.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/leave.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/leave_gate.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/lock.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/maintain.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/managed_repo.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/map_cli.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/map_store.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/map_world.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/measured.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/media.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/media_capabilities.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/media_cleanup.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/media_delivery.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/media_relay.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/media_uploads.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/mediaformats.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/mpeg_audio.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/notification_route.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/oauth.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/oggformats.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/operations_handoff.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/postid.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/private_store.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/queuefile.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/read_coordination.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/read_window.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/redact.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/refusals.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/replies.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/report_details.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/report_http.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/report_inbox.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/report_isolation.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/report_timeline.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/retract_cli.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/runs.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/scopes.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/secrets_fs.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/select.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/selfupdate.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/server_files.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/server_writes.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/stop_observation.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/study_cli.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/study_report.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/systemd_gen.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/tags.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/thread_read.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/threadrun.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/threads_read_cli.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/threadshape.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/timer_cleanup.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/tool_version.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/topic_advice.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/topic_cli.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/topic_models.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/topic_store.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/topics.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/vorbisformats.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/watch_cli.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/who_cli.py +0 -0
- {thth-3.6.0 → thth-3.8.0}/thth/x_metrics.py +0 -0
|
@@ -152,6 +152,9 @@ TOOLS = [
|
|
|
152
152
|
"window_days": {"type": "integer", "description": "直近何日(既定 30)"},
|
|
153
153
|
"min_n": {"type": "integer",
|
|
154
154
|
"description": "中央値を返す下限(既定 20)"},
|
|
155
|
+
"goal": {"type": "string", "enum": ["reach", "click", "follow", "reply"],
|
|
156
|
+
"description": "出す予定の投稿の目的(任意)。広場に同じ goal で他の媒体の"
|
|
157
|
+
"観測があれば 1 行(plaza_same_goal)"},
|
|
155
158
|
},
|
|
156
159
|
"required": ["account", "topic"],
|
|
157
160
|
},
|
|
@@ -608,6 +611,13 @@ ADMIN_TOOLS += [
|
|
|
608
611
|
{'name':'thth_admin_plaza_hide','description':'Hide one plaza post with a reason (the owner still sees it with the reason); administrator only, by required',
|
|
609
612
|
'inputSchema':{'type':'object','properties':{'plaza_id':{'type':'string'},'reason':{'type':'string'},'by':{'type':'string'}},
|
|
610
613
|
'required':['plaza_id','reason','by'],'additionalProperties':False}},
|
|
614
|
+
# 持ち主の組(設計 3.8.0 §A)。管理者が登録する(道具は推測しない)・既定は組なし。
|
|
615
|
+
{'name':'thth_admin_plaza_owner_set','description':'Register one owner group (projects of the same owner read each other\'s owner-scope plaza posts); replaces the group\'s projects; one project belongs to one group; administrator only, by required',
|
|
616
|
+
'inputSchema':{'type':'object','properties':{'owner':{'type':'string'},'projects':{'type':'array','items':{'type':'string'}},'by':{'type':'string'}},
|
|
617
|
+
'required':['owner','projects','by'],'additionalProperties':False}},
|
|
618
|
+
{'name':'thth_admin_plaza_owner_unset','description':'Dissolve one owner group; its owner-scope posts stop being visible to the other projects; administrator only, by required',
|
|
619
|
+
'inputSchema':{'type':'object','properties':{'owner':{'type':'string'},'by':{'type':'string'}},
|
|
620
|
+
'required':['owner','by'],'additionalProperties':False}},
|
|
611
621
|
]
|
|
612
622
|
|
|
613
623
|
SERVER_TOOLS = [
|
|
@@ -706,8 +716,11 @@ PLAZA_TOOLS = [
|
|
|
706
716
|
"description": PLAZA_WELCOME + "。施策(measure: 観測は道具が study-report と同じ計算で付ける・"
|
|
707
717
|
"how〔数字を出し直せる thth の命令〕が必須)・気づき(finding)・問い(question)を"
|
|
708
718
|
"置く。scope(媒体・企画の範囲)は必須。置いたものは同じ持ち主の全 account だけに"
|
|
709
|
-
"
|
|
710
|
-
"
|
|
719
|
+
"見える(visibility: owner は管理者が登録した持ち主の組の全 project に一段で見せる。"
|
|
720
|
+
"他の持ち主に見せる open は人が CLI の二段確認で行う・この口には無い)。"
|
|
721
|
+
"evidence_level の observed は道具だけが付ける。from_tool(analytics-report・after・"
|
|
722
|
+
"study-report)・from_doc・from_report で、道具がその出力を置く時点で作り直して"
|
|
723
|
+
"数字を観測の欄と本文の下書きに入れる(body は任意の解釈)",
|
|
711
724
|
"inputSchema": {"type": "object", "properties": {
|
|
712
725
|
"account": {"type": "string"},
|
|
713
726
|
"kind": {"type": "string", "enum": ["measure", "finding", "question"]},
|
|
@@ -723,8 +736,18 @@ PLAZA_TOOLS = [
|
|
|
723
736
|
"until": {"type": "string", "description": "期間の終わり(timezone 付きの時刻)"},
|
|
724
737
|
"min_n": {"type": "integer"},
|
|
725
738
|
"goal": {"type": "string", "enum": ["reach", "click", "follow", "reply"],
|
|
726
|
-
"description": "施策の目的(任意)。媒体をまたいで同じ目的の施策を比べる札"}
|
|
727
|
-
"
|
|
739
|
+
"description": "施策の目的(任意)。媒体をまたいで同じ目的の施策を比べる札"},
|
|
740
|
+
"visibility": {"type": "string", "enum": ["project", "owner"],
|
|
741
|
+
"description": "project(既定)か owner(持ち主の組・管理者が組を登録したときだけ)"},
|
|
742
|
+
"trial_due": {"type": "string", "description": "finding の追試の予定日(2026-10-08 か timezone 付きの時刻)"},
|
|
743
|
+
"from_tool": {"type": "string", "enum": ["analytics-report", "after", "study-report"],
|
|
744
|
+
"description": "道具の出力から置く(analytics-report・after は from_account・"
|
|
745
|
+
"study-report は declarations の 1 つ目)"},
|
|
746
|
+
"from_account": {"type": "string", "description": "from_tool の account(同じ持ち主)"},
|
|
747
|
+
"from_window_days": {"type": "integer"},
|
|
748
|
+
"from_doc": {"type": "string", "description": "repo の中の md の相対パス(finding として・commit 済みのもの)"},
|
|
749
|
+
"from_report": {"type": "string", "description": "自分の project の閉じた報告の report_id(tool_tip として)"}},
|
|
750
|
+
"required": ["account", "scope"], "additionalProperties": False}},
|
|
728
751
|
{"name": "thth_plaza_list",
|
|
729
752
|
"description": "広場の一覧(既定は自分の持ち主の書き込み・open: true は open の広場)。次を決める前に"
|
|
730
753
|
"他の媒体の施策を読む(読むだけ)",
|
|
@@ -757,8 +780,13 @@ PLAZA_TOOLS = [
|
|
|
757
780
|
"refresh": {"type": "boolean"},
|
|
758
781
|
"verdict": {"type": "string", "enum": ["adopted", "dropped", "inconclusive"]},
|
|
759
782
|
"reason": {"type": "string"},
|
|
760
|
-
"visibility": {"type": "string", "enum": ["project"]}},
|
|
783
|
+
"visibility": {"type": "string", "enum": ["project", "owner"]}},
|
|
761
784
|
"required": ["plaza_id", "account"], "additionalProperties": False}},
|
|
785
|
+
{"name": "thth_plaza_digest",
|
|
786
|
+
"description": "生きたコツ集: 2 媒体以上で再現した施策・気づき(再現しなかった媒体も並べる・分母つき)。"
|
|
787
|
+
"新しいセッションが最初に読むもの(読むだけ)。target は自分の project か持ち主の組の名前",
|
|
788
|
+
"inputSchema": {"type": "object", "properties": {"target": {"type": "string"}},
|
|
789
|
+
"additionalProperties": False}},
|
|
762
790
|
]
|
|
763
791
|
|
|
764
792
|
|
|
@@ -999,6 +1027,8 @@ def call_tool(name: str, arguments: dict | None) -> dict:
|
|
|
999
1027
|
args += ["--window-days", str(arguments["window_days"])]
|
|
1000
1028
|
if arguments.get("min_n") is not None:
|
|
1001
1029
|
args += ["--min-n", str(arguments["min_n"])]
|
|
1030
|
+
if arguments.get("goal"):
|
|
1031
|
+
args += ["--goal", arguments["goal"]]
|
|
1002
1032
|
args.append("--json")
|
|
1003
1033
|
proc = run_cli(args)
|
|
1004
1034
|
text = proc.stdout
|
|
@@ -5,13 +5,19 @@ description: 投稿する前・返信を書く前・出したあと・絡みに
|
|
|
5
5
|
|
|
6
6
|
**セッションの始めと区切りごとに `thth_observe`(CLI は `thth observe <project|account> --json`)。** 前回の観測から何があって、いまなにをすればよいかが 6 段(道具・返していないもの・前回の観測から・世間・予定・次の一手)で返る(3.3.0。`thth_morning`/`thth morning` は同じものの別名で、JSON の `invoked_as` だけが違う。第 2 段は前回の栞の時刻から今まで・栞が無い/7 日より古いときは前日 JST で、`window.basis` が `since_last_observe` か `yesterday_jst`)。`handoff-report --since-last-read` を包含するので、版の確認もこれ 1 回で済む。呼ぶと栞(前回読んだ時点)が進む——進めたくないときだけ `mark: false`(CLI は `--no-mark`)。取れなかった段は `{"value": null, "cannot_say": "<理由>"}`(`provider_timeout`・`budget_exhausted`・`scope_missing`・`no_watch_words`・`not_supported`・`unavailable`)で、**0 件とは別**。第 3 段の監視語は**管理者が入れる**(`thth admin watch set <account> 語 … --by <名前>`)——語が無い account は `no_watch_words` で飛ぶので、**代わりに語を選ばない**。第 5 段は候補の列挙だけで、**本文は返らない**(書くのはあなたと人の会話の側)。詳しくは `docs/使い方_毎朝の一枚_3.1.md`。
|
|
7
7
|
|
|
8
|
+
**新しいセッションは最初に生きたコツ集を読む**(3.8.0): `thth_plaza_digest`(CLI は `thth plaza digest <project>`・読むだけ)。2 媒体以上で再現した施策・気づきが、再現しなかった媒体と試していない媒体も並んで(分母つき)出る(道具が付けた観測がある施策だけは置いた媒体も 1 と数え、各行に「数え方」が出る)。
|
|
9
|
+
|
|
8
10
|
**断られたら・違和感があれば報告の口へ**: `thth_report_file`(CLI は `thth report file <account> --kind bug|request|friction --title … --body-file … --by <名前>`)。つまずき・迷い・期待との違いの報告は、利用者の作業の一部として歓迎します。小さいものも。重複は道具が束ねます。例: 「止まったのに気づかなかった」「断られた理由が分からなかった」「同じ操作を 3 回繰り返した」。道具が断った・結果が期待と違った・欲しい形がある・迷った(`friction`)、のどれかなら 1 回で置ける。**断られた直後なら、断りの最後の `report_channel:` の行をそのまま打てばよい**(`--from-last-refusal` が、道具が控えた直前の断り——時刻・版・命令・理由の符丁だけで、本文と引数の値は控えていない——を再現手順に添える。MCP は `thth_report_file {"account": …, "title": …, "from_last_refusal": true}`)。置いた報告がこの版で閉じたかは `thth_observe` の 0 段 `project_reports` に出る。返事は `thth_report_show` と `handoff-report --since-last-read` の `tool.reports` に出る。秘密らしき値が含まれていたら置かれない(伏せてから置き直す)。
|
|
9
11
|
|
|
10
12
|
**施策を試したら広場に置き、次を決める前に他の媒体の施策を読む**(3.4.0・施策の広場)。どちらも利用者の作業の一部です。小さな気づきも。`thth_plaza_post`(CLI は `thth plaza post <account> --kind measure|finding|question --title … --body-file … --scope "<媒体・企画の範囲>" --by <名前>`)。置いたものは**同じ持ち主の全 account(媒体をまたぐ)**だけに見える。施策(`measure`)は `--declaration <study-report の宣言>` を媒体ごとに並べると**観測は道具が付ける**(study-report と同じ計算・両群の分母・欠測は null と理由)。`--how` に数字を出し直せる thth の命令を 1 行(measure は必須・道具は実行しない)。本文に書いた数字は「本文」として分けて表示され、観測とは呼ばれない。`evidence_level` の `observed` は道具だけが付ける(名乗ると断られる)。読むのは `thth_plaza_list`・`thth_plaza_show`(CLI は `thth plaza list <project>`・`thth plaza show <id> --as <account>`)——媒体をまたぐ比較の表と追試の数(再現した・しなかった・試していないを同じ重さで)が出る。他の媒体の施策を自分の媒体で試したら `thth_plaza_reply` の `trial`(結果は reproduced・not_reproduced・not_tried)で返す。判定は `thth_plaza_update`(adopted・dropped・inconclusive・理由必須)。新着と「まだ試していない媒体」は `thth_observe` の 0 段と次の一手に出る。
|
|
11
13
|
|
|
14
|
+
**広場は道具が読ませ、置く手間は道具が減らす**(3.8.0・知見共有を回す)。読む瞬間は道具が作る: `thth_observe` の 0 段に「同じ持ち主の他の媒体の新しい書き込み 1 件」(1 日 1 件・読んだものは出さない・自分の地図の点と原稿の goal・topic の重なりで選ぶ)、`thth approve` の 1 段目と `thth lint` に同じ goal か topic の書き込みを 1〜3 件(**題と id だけ**・本文は出ない)、`thth ask before-you-post --goal <語>`(MCP の `before_you_post` の `goal`)に「同じ goal で他の媒体ではこうだった」の 1 行(道具が付けた観測があるときだけ)。`thth_plaza_show`(`thth plaza show`)で読んだものは控えられ(id と時刻だけ)、observe に再び出ない。**見える範囲に owner**(同じ持ち主の組の全 project)が加わった——組は**管理者が登録する**(`thth admin plaza owner set <組の名前> <project> … --by <名前>`・既定は組なし・あなたが組を作らない)。組があれば `thth_plaza_post` の `visibility: owner`(CLI は `--owner`)で一段で置ける(他の持ち主には見えない・組を解けば相手からも見えない)。`thth plaza list` が 0 件か自分の書き込みだけなら、管理者に頼む命令の形の案内が 1 行出る。**置く手間**: `--from analytics-report|after <account>`(MCP は `from_tool`・`from_account`)で、道具が置く時点でその計算を呼び直し、分母・期間・言えないことを観測の欄と本文の下書きに入れる——**observed は道具が付けた数字だけ**で、あなたや人が本文に書いた数字は「本文」の欄のまま。`--from study-report <宣言>` は 3.4.0 と同じ観測の列。解釈は `--body-file` で下書きの下に足す。`--from-doc <repo の中の md>`(MCP は `from_doc`)は元の文書のパスと commit を持つ気づきとして(先頭 4,000 字・commit していない変更がある文書は断られる)、`--from-report <report_id>`(`from_report`)は自分の project の閉じた報告の返事を道具のコツとして写す。**置くきっかけ**: 気づきに `--trial-due <日付>`(`trial_due`)を付けると、期日に observe の次の一手に「追試の結果を足す」と命令の 1 行が出る。施策の期間(until)が終わったとき・配分を変えた週が閉じたとき(週の表)も次の一手に「広場に置く」と下書きの命令が出る(候補の列挙だけ)。置いた側の observe の 0 段には「あなたの書き込みに 追試 n(再現 a・再現せず b)・賛否 m」が前回の観測から出る。
|
|
15
|
+
|
|
12
16
|
**話題を選ぶ前に観測の地図を読む**(3.5.0)。`thth_map_show`(CLI は `thth map show <project> [--node <語>] [--since 30d] --json`・読むだけ)。点(観測軸)は人が決めた話題、線は包含(狭い語 ⊂ 広い語)と共起。同じ点に、自分の層(その topic で出した投稿の数と views・likes・replies の中央値と n——`analytics-report --by topic` と同じ計算・n が 5 に届かなければ null と `below_min_n`)と、広場の層(title か scope に点の語を含む施策・気づき・問いの数・判定・追試の数)が重なる。**点と線は管理者が足す**(`thth admin map node add|remove <project> <語> --by <名前>`・`thth admin map edge add <project> <狭い語> <広い語> --by <名前>`・project あたり 20 点・@名前・URL・個人名らしき語は点にできない)——候補を人に出すのはよいが、**あなたが点を足さない**。世間の層(日ごとの検索の件数・異なり・上位 3 の占有率・共起)は**既定で無効**で、無効のあいだは `world_layer_disabled`。`thth_observe` の 0 段に「地図: 伸びた点・強まった線」が出る(候補の列挙だけ)。
|
|
13
17
|
|
|
14
|
-
**原稿に投稿の目的を 1 つ書く**(3.6.0)。front-matter に `goal: reach|click|follow|reply`(reach=表示・click=サイト誘導・follow=フォロー・reply=会話・無ければ書かない=`none`)。4 語以外は lint が `goal_invalid` で断る。**本文のメモ(「目的: 誘導」)は道具が読まない**——front-matter の `goal:` だけが正。目的は**承認の指紋に入らない**(承認のあとに書き換えても approval_stale にならず、runs と sent に「目的の変更」として残る)。連投(`thth: 2`)は束の front-matter に 1 つ。同席の送信は `thth send <account> --goal <語>`。比べるのは `analytics_report` の `by: goal`(CLI は `thth analytics-report <account> --compare-previous --by goal --json`)——reach は 24h・72h の views(Bluesky・Mastodon は likes+reposts)、reply は 24h の replies と返信した人の異なり数。**click と follow は投稿単位の数字が無い**ので `per_post_clicks_unavailable`・`per_post_follows_unavailable` と言い、日次(click の投稿が 1 本だけの日の clicks・follow の投稿が出た日と出ていない日の followers の前日差)は観察の差(因果ではない)として並ぶ——投稿の効果と書かない。3.6.0 より前の投稿は `unrecorded`(目的を書く口が無かった頃)で、`none`(目的なし)とは別の層。`thth_observe` の「前回の観測から」と `thth_map_show` の自分の層にも目的が出る。つまずきの年表は `thth_report_timeline`(CLI は `thth report timeline <project>`・読むだけ・自分の project
|
|
18
|
+
**原稿に投稿の目的を 1 つ書く**(3.6.0)。front-matter に `goal: reach|click|follow|reply`(reach=表示・click=サイト誘導・follow=フォロー・reply=会話・無ければ書かない=`none`)。4 語以外は lint が `goal_invalid` で断る。**本文のメモ(「目的: 誘導」)は道具が読まない**——front-matter の `goal:` だけが正。目的は**承認の指紋に入らない**(承認のあとに書き換えても approval_stale にならず、runs と sent に「目的の変更」として残る)。連投(`thth: 2`)は束の front-matter に 1 つ。同席の送信は `thth send <account> --goal <語>`。比べるのは `analytics_report` の `by: goal`(CLI は `thth analytics-report <account> --compare-previous --by goal --json`)——reach は 24h・72h の views(Bluesky・Mastodon は likes+reposts)、reply は 24h の replies と返信した人の異なり数。**click と follow は投稿単位の数字が無い**ので `per_post_clicks_unavailable`・`per_post_follows_unavailable` と言い、日次(click の投稿が 1 本だけの日の clicks・follow の投稿が出た日と出ていない日の followers の前日差)は観察の差(因果ではない)として並ぶ——投稿の効果と書かない。3.6.0 より前の投稿は `unrecorded`(目的を書く口が無かった頃)で、`none`(目的なし)とは別の層。`thth_observe` の「前回の観測から」と `thth_map_show` の自分の層にも目的が出る。つまずきの年表は `thth_report_timeline`(CLI は `thth report timeline <project>`・読むだけ・自分の project の報告とリリースノートを日付で並べる)。(click の物差しは 3.7.0 で変わった——次の段。)
|
|
19
|
+
|
|
20
|
+
**click はリンク先を投稿ごとに分けると投稿単位で測れる**(3.7.0)。あるリンク先を前後 72 時間で 1 本の投稿しか使っていなければ、`clicks_by_url` のそのリンク先の投稿日を含む 3 暦日のクリックを投稿のものとして出す(`basis: unique_url_72h`・`window: post_day_plus_2`・クリック率は clicks_72h / views_24h)。同じリンク先を前後 72 時間に 2 本以上で使う・リンクが無い・プロフィールのリンク(台帳の `profile_links`)と同じなら `url_shared_72h`・`no_link`・`profile_link` で言わない。lint は同じリンク先を前後 72 時間に使う click の原稿を `warning: url_shared_72h` で知らせる(断らない・同じ日でもリンク先が違えば測れる)。**本文に札(utm)を付けて書き換えない**——リンク先を分ける。follow の投稿が毎日出ていれば `no_comparison_days`(事実だけ・推奨しない)。週の表は `thth analytics-report <account> --weekly-goals --weeks 6`(観察の表)。承認は 1 段目だけでは出ない——**確定するまで出ません**(queue・board・observe に「確定待ち」、publish_at まで 3 時間を切ると observe の次の一手に `confirm_due` と確定の命令)。`thth account` は「run を止めるもの」と「run が自分で直すもの」(repo が遅れているだけ)を分け、出られない原稿(held)は別の段(「投稿できます」のまま)。連投も段ごとのリンク先が記録に残り、click の照合に入る。`thth lint`・`preview`・`approve` は手元の Mac のパス(`…/docs/sns/queue/<file>`)を VM のパスに読み替える。`thth where` は `--also <語>`(同じ結果を絞るだけ・追加の検索なし)・0 件は `zero_or_filtered`(無いのか受け付けなかったのか区別できない)・`--aggregate [--lexicon <file>]`(数と時刻だけ・本文も username も返さない・保存しない)。
|
|
15
21
|
|
|
16
22
|
段だけを読み直したいときは `thth handoff-report <account> --since-last-read --json` を読む。`tool.changed_since_last_read` が真なら、手元の `tool.notes_root_local_hint` を手掛かりに `tool.release_notes` の相対名を読んでから作業する。既読の記録は `--mark-read --by <名前>` の明示時だけ。`tool.notes_reason` が `notes_directory_unavailable` なら、このインストールには読める docs がない。空の `release_notes` を「変更なし」と解釈しない。
|
|
17
23
|
|
|
@@ -44,7 +44,9 @@ def test_admin_all_registry_and_mcp_auth_rechecked(credentials,monkeypatch):
|
|
|
44
44
|
'thth_admin_reports_list','thth_admin_reports_show','thth_admin_reports_reply','thth_admin_reports_close',
|
|
45
45
|
# 施策の広場の管理者側(設計 3.4.0 §4)。
|
|
46
46
|
'thth_admin_plaza_list','thth_admin_plaza_show','thth_admin_plaza_join','thth_admin_plaza_leave',
|
|
47
|
-
'thth_admin_plaza_hide'
|
|
47
|
+
'thth_admin_plaza_hide',
|
|
48
|
+
# 持ち主の組(設計 3.8.0 §A)。
|
|
49
|
+
'thth_admin_plaza_owner_set','thth_admin_plaza_owner_unset'}
|
|
48
50
|
result=server.call_tool('thth_admin_inventory',{})
|
|
49
51
|
assert set(json.loads(result['content'][0]['text'])['by_account'])=={'first','second'}
|
|
50
52
|
assert server.call_tool('thth_admin_diff',{'mark_read':True})['isError']
|
|
@@ -713,9 +713,10 @@ def test_g_MCPのtool一覧に固定の説明文で載っている():
|
|
|
713
713
|
tool = tools["before_you_post"]
|
|
714
714
|
assert tool["description"] == MCP_DESCRIPTION
|
|
715
715
|
# 引数は CLI と同じ(`account` と `topic` だけ必須)。**本文は受け取らない。**
|
|
716
|
+
# `goal`(3.8.0 §B4)は CLI の `--goal` と同じ(広場の同じ goal の 1 行を添えるだけ)。
|
|
716
717
|
props = tool["inputSchema"]["properties"]
|
|
717
718
|
assert set(props) == {"account", "topic", "kind", "hour_band", "is_reply",
|
|
718
|
-
"window_days", "min_n"}
|
|
719
|
+
"window_days", "min_n", "goal"}
|
|
719
720
|
assert tool["inputSchema"]["required"] == ["account", "topic"]
|
|
720
721
|
|
|
721
722
|
|
|
@@ -46,7 +46,9 @@ COMMANDS = '''lint|preview|approve|account|revoke|posts|replies|measured|threads
|
|
|
46
46
|
# 3.5.0 §2・照合 §6-4・§6-6: 保持と削除の依頼(管理者の口)。
|
|
47
47
|
'admin map retention', 'admin map purge',
|
|
48
48
|
# 3.6.0 §B: つまずきの年表(読むだけ・--json)。
|
|
49
|
-
'report timeline'
|
|
49
|
+
'report timeline',
|
|
50
|
+
# 3.8.0 §A・§E: 持ち主の組(管理者の口)と生きたコツ集(読むだけ)。
|
|
51
|
+
'admin plaza owner set', 'admin plaza owner unset', 'admin plaza owner list', 'plaza digest']
|
|
50
52
|
|
|
51
53
|
|
|
52
54
|
def test_json_table_covers_every_parser():
|
|
@@ -138,7 +138,10 @@ def test_MCPにはopenにする口が無い_読むのは参加した持ち主ど
|
|
|
138
138
|
root, server = _tenant(tmp_path, monkeypatch)
|
|
139
139
|
names = {tool["name"]: tool for tool in server.server_tools(server.authenticated_context())}
|
|
140
140
|
assert "open" not in names["thth_plaza_post"]["inputSchema"]["properties"]
|
|
141
|
-
|
|
141
|
+
# 3.8.0 で owner(持ち主の組・一段)が足された。open は従前どおり MCP に無い。
|
|
142
|
+
assert names["thth_plaza_update"]["inputSchema"]["properties"]["visibility"]["enum"] == [
|
|
143
|
+
"project", "owner"]
|
|
144
|
+
assert "open" not in names["thth_plaza_post"]["inputSchema"]["properties"]["visibility"]["enum"]
|
|
142
145
|
plaza.set_membership("kopicha", joined=True, by="operator")
|
|
143
146
|
plaza.set_membership("other", joined=True, by="operator")
|
|
144
147
|
denied = _post(server, open=True)
|
|
@@ -126,8 +126,12 @@ def test_reachは24hと72hのviews(report):
|
|
|
126
126
|
|
|
127
127
|
def test_clickは投稿単位に割らず言えないと言う_1本だけの日だけ日次を並べる(report):
|
|
128
128
|
yard = report[1]["strata"]["click"]["yardstick"]["current"]
|
|
129
|
-
|
|
130
|
-
|
|
129
|
+
# 3.7.0 §A1: 一意のリンク先の投稿だけ投稿単位で出す。この 3 本は本文にリンクが
|
|
130
|
+
# 無いので、日次を割らず「言えない」(no_link)——日次の clicks は投稿に配らない。
|
|
131
|
+
assert yard["per_post"]["clicks_72h"]["n_eligible"] == 0
|
|
132
|
+
assert yard["per_post"]["clicks_72h"]["median"] is None
|
|
133
|
+
assert [row["clicks_72h"] for row in yard["posts"]] == [None, None, None]
|
|
134
|
+
assert yard["cannot_say"] == ["no_link"]
|
|
131
135
|
daily = yard["daily"]
|
|
132
136
|
assert daily["basis"] == "single_click_post_day"
|
|
133
137
|
assert daily["observational_difference"] is True and daily["causal"] is False
|
|
@@ -165,7 +169,9 @@ def test_replyは24hのrepliesと返信した人の異なり数_自分を除く(
|
|
|
165
169
|
def test_markdownは言えないと観察の差を書き効果とは書かない(report):
|
|
166
170
|
payload, _stratified = report
|
|
167
171
|
text = analytics_report.render_markdown(payload)
|
|
168
|
-
|
|
172
|
+
# 3.7.0 §A1: click は一意のリンク先の物差しと、言えない理由の本数(no_link)を書く。
|
|
173
|
+
assert "unique_url_72h" in text and "no_link 3" in text
|
|
174
|
+
assert "per_post_follows_unavailable" in text
|
|
169
175
|
assert "観察の差(因果ではない)" in text
|
|
170
176
|
head = text.split("## 根拠と構造化データ")[0]
|
|
171
177
|
assert "効果" not in head.replace("施策の効果・推奨行動は判断しない", "")
|
|
@@ -38,7 +38,8 @@ def test_observeの投稿に目的と主な物差し_clickは言えない(isolat
|
|
|
38
38
|
by_id = {post["post_id"]: post for post in node["posts"]}
|
|
39
39
|
assert by_id["R1"]["goal"] == "reach" and by_id["R1"]["lead_metrics"] == ["views"]
|
|
40
40
|
assert by_id["P1"]["lead_metrics"] == ["replies"]
|
|
41
|
-
|
|
41
|
+
# 3.7.0 §A1: 本文にリンクの無い click は「言えない」(no_link)——日次を割らない。
|
|
42
|
+
assert by_id["C1"]["goal_cannot_say"] == "no_link"
|
|
42
43
|
assert by_id["C1"]["lead_metrics"] == []
|
|
43
44
|
assert by_id["N1"]["goal"] == "unrecorded", "記録に goal の欄が無い(3.6.0 より前)"
|
|
44
45
|
assert by_id["N1"]["goal_cannot_say"] is None
|
|
@@ -48,7 +49,7 @@ def test_observeの投稿に目的と主な物差し_clickは言えない(isolat
|
|
|
48
49
|
text = "\n".join(lines)
|
|
49
50
|
assert "R1 [reach] views=120・likes=3" in text
|
|
50
51
|
assert "P1 [reply] replies=5・likes=1" in text
|
|
51
|
-
assert "言えない:
|
|
52
|
+
assert "言えない: no_link(共有・リンク無し・プロフィールのリンクは投稿単位のクリックを出しません)" in text
|
|
52
53
|
assert "N1 likes=1・replies=2" in text, "目的が無ければ従前の並び"
|
|
53
54
|
|
|
54
55
|
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"""3.7.0 §B1 `thth account` の「投稿できません」から、run が自分で直すものを分ける。
|
|
2
|
+
|
|
3
|
+
repo が upstream より遅れているだけ(ahead 0)なら、次の `thth run` の `sync_repo()`
|
|
4
|
+
が取り込む——「投稿できません」に入れず「run が自分で直すもの」に出す。判定は
|
|
5
|
+
board と同じ `writeback.sync_state()` で、**board と食い違わない**ことを固定する。
|
|
6
|
+
"""
|
|
7
|
+
from __future__ import annotations
|
|
8
|
+
|
|
9
|
+
from pathlib import Path
|
|
10
|
+
|
|
11
|
+
from tests.conftest import run_git
|
|
12
|
+
from tests.test_account_report import _ready_account
|
|
13
|
+
from thth import account_report, report, writeback
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def _push_from_seed(pair, name="later.txt"):
|
|
17
|
+
"""別の clone(seed)から 1 commit push し、work で fetch する(work は遅れるだけ)。"""
|
|
18
|
+
(Path(pair["seed"]) / name).write_text("あとから\n")
|
|
19
|
+
run_git(pair["seed"], ["add", name])
|
|
20
|
+
run_git(pair["seed"], ["commit", "-m", "あとから"])
|
|
21
|
+
run_git(pair["seed"], ["push", "origin", "main"])
|
|
22
|
+
run_git(pair["work"], ["fetch", "origin"])
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def _board_row(name):
|
|
26
|
+
return next(row for row in report.board_summary()["accounts"] if row["account"] == name)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def test_遅れているだけのrepoは投稿できませんに入れず_次のrunが取り込むと言う(
|
|
30
|
+
tmp_path, isolated_account_factory):
|
|
31
|
+
pair, account = _ready_account(tmp_path, isolated_account_factory)
|
|
32
|
+
_push_from_seed(pair)
|
|
33
|
+
_push_from_seed(pair, "later2.txt")
|
|
34
|
+
detail = account_report.account_detail(account["name"], remote=False)
|
|
35
|
+
assert detail["repo"]["synced"] is False
|
|
36
|
+
assert detail["repo_sync"] == {"state": "behind_only", "ahead": 0, "behind": 2}
|
|
37
|
+
assert detail["ready"] is True, detail["blockers"]
|
|
38
|
+
assert detail["blockers"] == []
|
|
39
|
+
assert detail["self_healing"] == [
|
|
40
|
+
"repo: upstream より 2 commit 遅れています——次の run が取り込みます(遅れ 2 commit)"]
|
|
41
|
+
text = account_report.render(detail)
|
|
42
|
+
assert "→ **投稿できます**" in text and "→ **投稿できません**" not in text
|
|
43
|
+
assert "run が自分で直すもの" in text and "次の run が取り込みます(遅れ 2 commit)" in text
|
|
44
|
+
|
|
45
|
+
# board と食い違わない: 同じ sync_state・止めるもの(inflight・held)が無い。
|
|
46
|
+
row = _board_row(account["name"])
|
|
47
|
+
assert row["repo_sync"] == detail["repo_sync"]
|
|
48
|
+
assert row["inflight"] is None and row["held_count"] == 0
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
def test_pushしていないcommitは従前どおり止めるもの_boardも同じ状態(tmp_path, isolated_account_factory):
|
|
52
|
+
pair, account = _ready_account(tmp_path, isolated_account_factory)
|
|
53
|
+
(Path(pair["work"]) / "note.txt").write_text("未 push\n")
|
|
54
|
+
run_git(pair["work"], ["add", "note.txt"])
|
|
55
|
+
run_git(pair["work"], ["commit", "-m", "push していない"])
|
|
56
|
+
detail = account_report.account_detail(account["name"], remote=False)
|
|
57
|
+
assert detail["repo_sync"]["state"] == writeback.SYNC_AHEAD
|
|
58
|
+
assert detail["ready"] is False and any("upstream" in b for b in detail["blockers"])
|
|
59
|
+
assert detail["self_healing"] == []
|
|
60
|
+
assert "→ **投稿できません**(run を止めるもの)" in account_report.render(detail)
|
|
61
|
+
assert _board_row(account["name"])["repo_sync"] == detail["repo_sync"]
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
def test_遅れと未pushの両方は止めるもの(tmp_path, isolated_account_factory):
|
|
65
|
+
pair, account = _ready_account(tmp_path, isolated_account_factory)
|
|
66
|
+
_push_from_seed(pair)
|
|
67
|
+
(Path(pair["work"]) / "note.txt").write_text("未 push\n")
|
|
68
|
+
run_git(pair["work"], ["add", "note.txt"])
|
|
69
|
+
run_git(pair["work"], ["commit", "-m", "push していない"])
|
|
70
|
+
detail = account_report.account_detail(account["name"], remote=False)
|
|
71
|
+
assert detail["repo_sync"]["state"] == writeback.SYNC_DIVERGED
|
|
72
|
+
assert detail["ready"] is False and detail["self_healing"] == []
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
def test_出られない原稿は別の段_投稿できますのまま_boardのheld_countと数が一致(
|
|
76
|
+
tmp_path, isolated_account_factory):
|
|
77
|
+
"""裁定 09-24: held は「投稿できません」に入れない。その原稿が出られないだけで、account は
|
|
78
|
+
他の原稿を出せる。「出られない原稿(held)n 本・名前」の段に出し、board と数を揃える。"""
|
|
79
|
+
from tests.conftest import write_queue_file
|
|
80
|
+
pair, account = _ready_account(tmp_path, isolated_account_factory)
|
|
81
|
+
for name in ("stale1.md", "stale2.md"):
|
|
82
|
+
write_queue_file(pair["queue_dir"], name, body=f"## threads\n\n{name} の本文。\n",
|
|
83
|
+
fm_overrides={"account": account["name"], "status": "approved",
|
|
84
|
+
"approved_sha": "0" * 64,
|
|
85
|
+
"publish_at": "2026-09-01T08:00:00+09:00"})
|
|
86
|
+
run_git(pair["work"], ["pull", "--ff-only"])
|
|
87
|
+
detail = account_report.account_detail(account["name"], remote=False)
|
|
88
|
+
row = _board_row(account["name"])
|
|
89
|
+
assert row["held_count"] == detail["held"]["n"] == 2
|
|
90
|
+
assert sorted(detail["held"]["files"]) == ["stale1.md", "stale2.md"]
|
|
91
|
+
assert detail["held"]["reason_code"] == "approved_but_held: approval_stale 2"
|
|
92
|
+
assert detail["ready"] is True and detail["blockers"] == []
|
|
93
|
+
text = account_report.render(detail)
|
|
94
|
+
assert "→ **投稿できます**" in text and "→ **投稿できません**" not in text
|
|
95
|
+
assert "→ 出られない原稿(held)2 本: " in text and "stale1.md" in text
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
"""3.7.0 §B3 承認の確定待ち(`state/<account>/approve_pending.json`)。
|
|
2
|
+
|
|
3
|
+
- `thth approve` の 1 段目で `{file, digest, at}` を控える(本文は残さない)。確定・
|
|
4
|
+
取り消し・本文の変更で消える。
|
|
5
|
+
- queue・board・observe で not_approved を `awaiting_confirm` と `not_requested` に分ける。
|
|
6
|
+
- publish_at まで 3 時間を切ったら observe の次の一手(`kind: confirm_due`)と運用通知
|
|
7
|
+
(増えたときだけ)。
|
|
8
|
+
- 1 段目の出力に「確定するまで出ません」。
|
|
9
|
+
"""
|
|
10
|
+
from __future__ import annotations
|
|
11
|
+
|
|
12
|
+
import datetime
|
|
13
|
+
import json
|
|
14
|
+
import os
|
|
15
|
+
|
|
16
|
+
from tests.conftest import run_thth, write_queue_file
|
|
17
|
+
from tests.test_v330_held import held_run, Response # noqa: F401 — fixture を借りる
|
|
18
|
+
from thth import approve_pending, jst, morning, queuefile, report
|
|
19
|
+
|
|
20
|
+
BODY = "## threads\n\n確定待ちの本文です(PRIVATE BODY)。\n"
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def _draft(account, name="a.md", publish_at="2026-09-30T08:00:00+09:00", body=BODY):
|
|
24
|
+
return write_queue_file(account["queue_dir"], name, body=body,
|
|
25
|
+
fm_overrides={"account": account["name"], "status": "draft",
|
|
26
|
+
"approved_sha": None, "publish_at": publish_at})
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def _pending_path(account):
|
|
30
|
+
return approve_pending.path_for(account["name"])
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def _first_stage(path, *extra):
|
|
34
|
+
result = run_thth(["approve", str(path), *extra])
|
|
35
|
+
assert result.returncode == 1, result.stderr
|
|
36
|
+
return result
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def test_1段目で控えを残す_本文は残さない_確定するまで出ませんと言う(isolated_account):
|
|
40
|
+
path = _draft(isolated_account)
|
|
41
|
+
first = _first_stage(path)
|
|
42
|
+
assert "確定するまで出ません" in first.stdout.splitlines()[0]
|
|
43
|
+
assert "**確定するまで出ません**" in first.stdout
|
|
44
|
+
raw = open(_pending_path(isolated_account), encoding="utf-8").read()
|
|
45
|
+
assert "PRIVATE BODY" not in raw and "確定待ちの本文" not in raw
|
|
46
|
+
data = json.loads(raw)
|
|
47
|
+
digest = [line.split(": ", 1)[1] for line in first.stdout.splitlines()
|
|
48
|
+
if line.startswith("digest: ")][0]
|
|
49
|
+
assert data["version"] == 1 and len(data["items"]) == 1
|
|
50
|
+
item = data["items"][0]
|
|
51
|
+
assert item["file"] == "docs/sns/queue/a.md" and item["digest"] == digest
|
|
52
|
+
assert set(item) == {"file", "digest", "bundle_digest", "at", "file_sha256"}
|
|
53
|
+
|
|
54
|
+
as_json = json.loads(_first_stage(path, "--json").stdout)
|
|
55
|
+
assert as_json["not_until_confirmed"] is True and as_json["pending_recorded"] is True
|
|
56
|
+
assert as_json["note"].startswith("確定するまで出ません")
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
def test_確定すると控えが消える(isolated_account):
|
|
60
|
+
path = _draft(isolated_account)
|
|
61
|
+
first = _first_stage(path)
|
|
62
|
+
digest = [line.split(": ", 1)[1] for line in first.stdout.splitlines()
|
|
63
|
+
if line.startswith("digest: ")][0]
|
|
64
|
+
assert os.path.exists(_pending_path(isolated_account))
|
|
65
|
+
second = run_thth(["approve", str(path), "--confirm", digest, "--by", "テスト"])
|
|
66
|
+
assert second.returncode == 0, second.stderr
|
|
67
|
+
assert not os.path.exists(_pending_path(isolated_account))
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
def test_本文を変えると確定待ちに数えない_queueとboardで分ける(isolated_account):
|
|
71
|
+
now = jst.parse("2026-09-30T06:00:00+09:00")
|
|
72
|
+
a = _draft(isolated_account, "a.md", "2026-09-30T08:00:00+09:00")
|
|
73
|
+
b = _draft(isolated_account, "b.md", "2026-09-30T12:00:00+09:00")
|
|
74
|
+
_draft(isolated_account, "c.md", "2026-09-30T13:00:00+09:00")
|
|
75
|
+
_first_stage(a)
|
|
76
|
+
_first_stage(b)
|
|
77
|
+
queue = report.queue_summary(isolated_account["name"], now=now)[isolated_account["name"]]
|
|
78
|
+
assert queue["approval"] == {"awaiting_confirm": 2, "not_requested": 1,
|
|
79
|
+
"awaiting_confirm_earliest_publish_at": "2026-09-30T08:00:00+09:00",
|
|
80
|
+
"confirm_due": 1}
|
|
81
|
+
row = next(r for r in report.board_summary(now=now)["accounts"]
|
|
82
|
+
if r["account"] == isolated_account["name"])
|
|
83
|
+
assert row["awaiting_confirm_count"] == 2 and row["not_requested_count"] == 1
|
|
84
|
+
assert row["awaiting_confirm_earliest_publish_at"] == "2026-09-30T08:00:00+09:00"
|
|
85
|
+
|
|
86
|
+
# 本文を変えた(commit・push まで)——b は確定待ちから外れる。
|
|
87
|
+
write_queue_file(isolated_account["queue_dir"], "b.md", body="## threads\n\n書き直した。\n",
|
|
88
|
+
fm_overrides={"account": isolated_account["name"], "status": "draft",
|
|
89
|
+
"approved_sha": None, "publish_at": "2026-09-30T12:00:00+09:00"})
|
|
90
|
+
queue = report.queue_summary(isolated_account["name"], now=now)[isolated_account["name"]]
|
|
91
|
+
assert queue["approval"]["awaiting_confirm"] == 1 and queue["approval"]["not_requested"] == 2
|
|
92
|
+
|
|
93
|
+
rc_out = run_thth(["queue", isolated_account["name"]])
|
|
94
|
+
assert "確定待ち 1 本(最短の publish_at 2026-09-30T08:00:00+09:00)" in rc_out.stdout
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
def test_取り消しで控えが消える(isolated_account):
|
|
98
|
+
path = _draft(isolated_account)
|
|
99
|
+
_first_stage(path)
|
|
100
|
+
items = approve_pending.load(isolated_account["name"])
|
|
101
|
+
assert list(items) == ["docs/sns/queue/a.md"]
|
|
102
|
+
approve_pending.clear(isolated_account["name"], isolated_account["repo_dir"], [path])
|
|
103
|
+
assert approve_pending.load(isolated_account["name"]) == {}
|
|
104
|
+
assert not os.path.exists(_pending_path(isolated_account))
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
def test_observeに確定待ちと3時間を切ったら次の一手(isolated_account):
|
|
108
|
+
a = _draft(isolated_account, "a.md", "2026-09-30T08:00:00+09:00")
|
|
109
|
+
_draft(isolated_account, "b.md", "2026-09-30T20:00:00+09:00")
|
|
110
|
+
_first_stage(a)
|
|
111
|
+
now = jst.parse("2026-09-30T06:00:00+09:00")
|
|
112
|
+
payload = morning.build(isolated_account["name"], now=now, mark=False)
|
|
113
|
+
sections = {s["section"]: s for s in payload["sections"]}
|
|
114
|
+
today = sections["today"]["value"]["by_account"][isolated_account["name"]]["value"]
|
|
115
|
+
confirm = today["confirm_items"]["value"]
|
|
116
|
+
assert confirm["n_awaiting_confirm"] == 1 and confirm["n_not_requested"] == 1
|
|
117
|
+
assert confirm["n_due"] == 1 and confirm["items"][0]["file"] == "a.md"
|
|
118
|
+
steps = [s for s in sections["next_steps"]["value"]["steps"] if s["kind"] == "confirm_due"]
|
|
119
|
+
assert len(steps) == 1
|
|
120
|
+
assert steps[0]["command"].startswith("thth approve docs/sns/queue/a.md --confirm ")
|
|
121
|
+
assert steps[0]["command"].endswith("--by <名前>")
|
|
122
|
+
assert "body" not in steps[0]
|
|
123
|
+
lines = []
|
|
124
|
+
morning.render(payload, out=lines.append)
|
|
125
|
+
text = "\n".join(lines)
|
|
126
|
+
assert "確定待ち 1 本(最短の publish_at 2026-09-30T08:00:00+09:00" in text
|
|
127
|
+
assert "確定 " in text and "確定するまで出ません" in text
|
|
128
|
+
# 確定待ちの升目と次の一手は本文を持たない(今日の予定の先頭 60 字は従前どおり)。
|
|
129
|
+
assert "PRIVATE BODY" not in json.dumps([today["confirm_items"], steps], ensure_ascii=False)
|
|
130
|
+
|
|
131
|
+
# 3 時間より前なら次の一手に出さない(確定待ちの名前は出る)。
|
|
132
|
+
early = morning.build(isolated_account["name"], now=now - datetime.timedelta(hours=2),
|
|
133
|
+
mark=False)
|
|
134
|
+
steps = [s for s in {s["section"]: s for s in early["sections"]}["next_steps"]["value"]["steps"]
|
|
135
|
+
if s["kind"] == "confirm_due"]
|
|
136
|
+
assert steps == []
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
def test_運用通知は3時間を切った確定待ちが増えたときだけ(held_run): # noqa: F811
|
|
140
|
+
account = held_run.account
|
|
141
|
+
soon = (jst.now_jst() + datetime.timedelta(hours=1)).replace(microsecond=0)
|
|
142
|
+
path = write_queue_file(account["queue_dir"], "soon.md", body=BODY,
|
|
143
|
+
fm_overrides={"account": account["name"], "status": "draft",
|
|
144
|
+
"approved_sha": None, "publish_at": jst.iso(soon)})
|
|
145
|
+
approve_pending.record(account["name"], account["repo_dir"],
|
|
146
|
+
[{"path": path, "digest": "abc123abc123"}], bundle_digest="abc123abc123")
|
|
147
|
+
assert held_run.run() == 0
|
|
148
|
+
notices = [m for m in held_run.mails if m[1] == "notice"]
|
|
149
|
+
assert notices == [("user@example.org", "notice", "confirm_due: 1"),
|
|
150
|
+
("admin@example.org", "notice", "confirm_due: 1")]
|
|
151
|
+
assert held_run.run() == 0
|
|
152
|
+
assert len([m for m in held_run.mails if m[1] == "notice"]) == 2, "同じ本数なら黙る"
|
|
153
|
+
later = write_queue_file(account["queue_dir"], "soon2.md", body="## threads\n\n二本目。\n",
|
|
154
|
+
fm_overrides={"account": account["name"], "status": "draft",
|
|
155
|
+
"approved_sha": None, "publish_at": jst.iso(soon)})
|
|
156
|
+
approve_pending.record(account["name"], account["repo_dir"],
|
|
157
|
+
[{"path": later, "digest": "def456def456"}], bundle_digest="def456def456")
|
|
158
|
+
assert held_run.run() == 0
|
|
159
|
+
assert [m[2] for m in held_run.mails if m[1] == "notice"][-1] == "confirm_due: 2"
|
|
160
|
+
assert queuefile.parse(path).front_matter["status"] == "draft", "通知は原稿を変えない"
|