intendora 0.1.2__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.
- intendora-0.1.2/.gitattributes +12 -0
- intendora-0.1.2/.github/workflows/publish.yml +28 -0
- intendora-0.1.2/.gitignore +5 -0
- intendora-0.1.2/PKG-INFO +9 -0
- intendora-0.1.2/README.md +126 -0
- intendora-0.1.2/demo/build-grid.json +577 -0
- intendora-0.1.2/demo/ohtani-grid.json +1695 -0
- intendora-0.1.2/design/tokens.json +332 -0
- intendora-0.1.2/install.ps1 +44 -0
- intendora-0.1.2/install.sh +131 -0
- intendora-0.1.2/pyproject.toml +44 -0
- intendora-0.1.2/run +9 -0
- intendora-0.1.2/scripts/gen_tokens.py +85 -0
- intendora-0.1.2/scripts/release-public.sh +132 -0
- intendora-0.1.2/src/intendora/__init__.py +8 -0
- intendora-0.1.2/src/intendora/cli.py +826 -0
- intendora-0.1.2/src/intendora/client.py +40 -0
- intendora-0.1.2/src/intendora/content/__init__.py +208 -0
- intendora-0.1.2/src/intendora/content/connector-v2.md +75 -0
- intendora-0.1.2/src/intendora/content/connector.md +75 -0
- intendora-0.1.2/src/intendora/content/guide-v2.md +163 -0
- intendora-0.1.2/src/intendora/content/guide.md +163 -0
- intendora-0.1.2/src/intendora/content/sessions-v2.json +4112 -0
- intendora-0.1.2/src/intendora/content/sessions.json +4112 -0
- intendora-0.1.2/src/intendora/content/shapes.py +471 -0
- intendora-0.1.2/src/intendora/day.py +55 -0
- intendora-0.1.2/src/intendora/demo/ohtani-grid.json +1621 -0
- intendora-0.1.2/src/intendora/entry.py +23 -0
- intendora-0.1.2/src/intendora/gridfile.py +665 -0
- intendora-0.1.2/src/intendora/home.py +20 -0
- intendora-0.1.2/src/intendora/loader.py +213 -0
- intendora-0.1.2/src/intendora/mcp/__init__.py +269 -0
- intendora-0.1.2/src/intendora/mcp/auth.py +153 -0
- intendora-0.1.2/src/intendora/mcp/guide_msplit.py +27 -0
- intendora-0.1.2/src/intendora/mcp/setup_5c.py +118 -0
- intendora-0.1.2/src/intendora/model.py +122 -0
- intendora-0.1.2/src/intendora/ops/__init__.py +49 -0
- intendora-0.1.2/src/intendora/ops/acknowledge.py +51 -0
- intendora-0.1.2/src/intendora/ops/agent_work.py +42 -0
- intendora-0.1.2/src/intendora/ops/backup.py +316 -0
- intendora-0.1.2/src/intendora/ops/connections.py +267 -0
- intendora-0.1.2/src/intendora/ops/context.py +43 -0
- intendora-0.1.2/src/intendora/ops/day.py +485 -0
- intendora-0.1.2/src/intendora/ops/events.py +90 -0
- intendora-0.1.2/src/intendora/ops/header.py +181 -0
- intendora-0.1.2/src/intendora/ops/ids.py +32 -0
- intendora-0.1.2/src/intendora/ops/keep.py +525 -0
- intendora-0.1.2/src/intendora/ops/keep_sessions/__init__.py +6 -0
- intendora-0.1.2/src/intendora/ops/keep_sessions/_mappings_5apos.py +318 -0
- intendora-0.1.2/src/intendora/ops/keep_sessions/_v2.py +139 -0
- intendora-0.1.2/src/intendora/ops/keep_sessions/session3_12b.py +6 -0
- intendora-0.1.2/src/intendora/ops/keep_sessions/session4_12d.py +341 -0
- intendora-0.1.2/src/intendora/ops/keep_sessions/session5_13a.py +362 -0
- intendora-0.1.2/src/intendora/ops/keep_sessions/session6_13b.py +295 -0
- intendora-0.1.2/src/intendora/ops/keep_sessions/session7_12b.py +5 -0
- intendora-0.1.2/src/intendora/ops/keep_sessions/sitting_a_12b.py +5 -0
- intendora-0.1.2/src/intendora/ops/links.py +175 -0
- intendora-0.1.2/src/intendora/ops/low_capacity.py +51 -0
- intendora-0.1.2/src/intendora/ops/node_read.py +56 -0
- intendora-0.1.2/src/intendora/ops/nodes.py +167 -0
- intendora-0.1.2/src/intendora/ops/page_grid.py +88 -0
- intendora-0.1.2/src/intendora/ops/placement.py +114 -0
- intendora-0.1.2/src/intendora/ops/readiness.py +77 -0
- intendora-0.1.2/src/intendora/ops/record.py +308 -0
- intendora-0.1.2/src/intendora/ops/reflect.py +67 -0
- intendora-0.1.2/src/intendora/ops/result.py +50 -0
- intendora-0.1.2/src/intendora/ops/roll.py +75 -0
- intendora-0.1.2/src/intendora/ops/run.py +237 -0
- intendora-0.1.2/src/intendora/ops/settings.py +179 -0
- intendora-0.1.2/src/intendora/ops/setup_position_5c.py +233 -0
- intendora-0.1.2/src/intendora/ops/setup_read.py +654 -0
- intendora-0.1.2/src/intendora/ops/setup_write.py +651 -0
- intendora-0.1.2/src/intendora/queries/__init__.py +349 -0
- intendora-0.1.2/src/intendora/queries/connections_5b.py +16 -0
- intendora-0.1.2/src/intendora/queries/drafts_5c.py +25 -0
- intendora-0.1.2/src/intendora/queries/keep_12b.py +16 -0
- intendora-0.1.2/src/intendora/queries/setup_5apos.py +10 -0
- intendora-0.1.2/src/intendora/queries/setup_fixreh1.py +3 -0
- intendora-0.1.2/src/intendora/queries/setup_fixreh3.py +18 -0
- intendora-0.1.2/src/intendora/restore_check.py +32 -0
- intendora-0.1.2/src/intendora/schedule.py +43 -0
- intendora-0.1.2/src/intendora/schema.py +105 -0
- intendora-0.1.2/src/intendora/share.py +318 -0
- intendora-0.1.2/src/intendora/signin/__init__.py +38 -0
- intendora-0.1.2/src/intendora/signin/code.py +81 -0
- intendora-0.1.2/src/intendora/signin/page.py +174 -0
- intendora-0.1.2/src/intendora/signin/provider.py +520 -0
- intendora-0.1.2/src/intendora/skills/set-up-my-intendora/SKILL.md +13 -0
- intendora-0.1.2/src/intendora/store.py +123 -0
- intendora-0.1.2/src/intendora/view.py +104 -0
- intendora-0.1.2/src/intendora/web/__init__.py +1 -0
- intendora-0.1.2/src/intendora/web/app.py +661 -0
- intendora-0.1.2/src/intendora/web/callers.py +131 -0
- intendora-0.1.2/src/intendora/web/routes/__init__.py +61 -0
- intendora-0.1.2/src/intendora/web/routes/connections_5b.py +28 -0
- intendora-0.1.2/src/intendora/web/routes/connector_11b1.py +23 -0
- intendora-0.1.2/src/intendora/web/routes/health_rsplit.py +32 -0
- intendora-0.1.2/src/intendora/web/routes/keep_12b.py +5 -0
- intendora-0.1.2/src/intendora/web/routes/setup_5c.py +53 -0
- intendora-0.1.2/src/intendora/web/static/css/tokens.css +185 -0
- intendora-0.1.2/src/intendora/web/static/index.html +18 -0
- intendora-0.1.2/src/intendora/web/static/modules/README.md +2 -0
- intendora-0.1.2/src/intendora/web/static/modules/connections_12a.css +12 -0
- intendora-0.1.2/src/intendora/web/static/modules/connections_12a.js +242 -0
- intendora-0.1.2/src/intendora/web/static/modules/keep_12c.css +26 -0
- intendora-0.1.2/src/intendora/web/static/modules/keep_12c.js +583 -0
- intendora-0.1.2/src/intendora/web/static/page.css +46 -0
- intendora-0.1.2/src/intendora/web/static/page.js +246 -0
- intendora-0.1.2/tests/browser/test_below_the_grid_browser.py +340 -0
- intendora-0.1.2/tests/browser/test_connections_browser_12a.py +626 -0
- intendora-0.1.2/tests/browser/test_connections_refresh_fixreh1.py +83 -0
- intendora-0.1.2/tests/browser/test_day_change_and_retry.py +171 -0
- intendora-0.1.2/tests/browser/test_done_undo.py +148 -0
- intendora-0.1.2/tests/browser/test_empty_store_browser_3f.py +203 -0
- intendora-0.1.2/tests/browser/test_fix_rehearsal_4_browser.py +71 -0
- intendora-0.1.2/tests/browser/test_keep_browser_12c.py +733 -0
- intendora-0.1.2/tests/browser/test_keep_screen_fixreh3.py +245 -0
- intendora-0.1.2/tests/browser/test_keep_screen_values_fixreh1.py +137 -0
- intendora-0.1.2/tests/browser/test_nested_centre_browser_2m.py +138 -0
- intendora-0.1.2/tests/browser/test_page_fixes_browser_fixpage2.py +299 -0
- intendora-0.1.2/tests/browser/test_undo_on_the_square_browser.py +325 -0
- intendora-0.1.2/tests/browser/test_write_day_browser_2m.py +77 -0
- intendora-0.1.2/tests/conftest.py +291 -0
- intendora-0.1.2/tests/fixtures/build-grid.json +505 -0
- intendora-0.1.2/tests/fixtures/demo-grid.json +447 -0
- intendora-0.1.2/tests/fixtures/ohtani-grid.json +1621 -0
- intendora-0.1.2/tests/fixtures/rehearsal-answers-v1-shapes.json +136 -0
- intendora-0.1.2/tests/fixtures/rehearsal-answers-v1.json +164 -0
- intendora-0.1.2/tests/fixtures/rehearsal-answers-v2-shapes.json +197 -0
- intendora-0.1.2/tests/fixtures/rehearsal-answers-v2.json +252 -0
- intendora-0.1.2/tests/perf/perf_store.py +358 -0
- intendora-0.1.2/tests/perf/test_backup_perf_3b.py +79 -0
- intendora-0.1.2/tests/perf/test_perf.py +179 -0
- intendora-0.1.2/tests/perf/test_perf_2l.py +145 -0
- intendora-0.1.2/tests/perf/test_perf_2m.py +103 -0
- intendora-0.1.2/tests/script_v2_walk.py +56 -0
- intendora-0.1.2/tests/service/support_11b1.py +207 -0
- intendora-0.1.2/tests/service/support_12b.py +330 -0
- intendora-0.1.2/tests/service/support_2d.py +156 -0
- intendora-0.1.2/tests/service/support_2f.py +190 -0
- intendora-0.1.2/tests/service/support_2h.py +220 -0
- intendora-0.1.2/tests/service/support_2i.py +207 -0
- intendora-0.1.2/tests/service/support_2l.py +140 -0
- intendora-0.1.2/tests/service/support_2m.py +68 -0
- intendora-0.1.2/tests/service/support_3b.py +290 -0
- intendora-0.1.2/tests/service/support_5apos.py +107 -0
- intendora-0.1.2/tests/service/support_5c.py +316 -0
- intendora-0.1.2/tests/service/support_fixai1.py +40 -0
- intendora-0.1.2/tests/service/support_keepv2.py +389 -0
- intendora-0.1.2/tests/service/support_msplit.py +292 -0
- intendora-0.1.2/tests/service/support_onecmd.py +110 -0
- intendora-0.1.2/tests/service/support_rsplit.py +88 -0
- intendora-0.1.2/tests/service/support_share.py +393 -0
- intendora-0.1.2/tests/service/support_signin.py +558 -0
- intendora-0.1.2/tests/service/test_acknowledge.py +329 -0
- intendora-0.1.2/tests/service/test_agent_work.py +294 -0
- intendora-0.1.2/tests/service/test_attribution.py +177 -0
- intendora-0.1.2/tests/service/test_backup_3b.py +779 -0
- intendora-0.1.2/tests/service/test_callers_3a.py +429 -0
- intendora-0.1.2/tests/service/test_cli_2f.py +331 -0
- intendora-0.1.2/tests/service/test_cli_claude_3a.py +184 -0
- intendora-0.1.2/tests/service/test_connection_name_fixreh1.py +110 -0
- intendora-0.1.2/tests/service/test_connections_5b.py +924 -0
- intendora-0.1.2/tests/service/test_connector_route_11b.py +453 -0
- intendora-0.1.2/tests/service/test_day_around.py +220 -0
- intendora-0.1.2/tests/service/test_day_settings.py +278 -0
- intendora-0.1.2/tests/service/test_day_start_earlier.py +184 -0
- intendora-0.1.2/tests/service/test_door_reads_2m.py +116 -0
- intendora-0.1.2/tests/service/test_drafts_5c.py +879 -0
- intendora-0.1.2/tests/service/test_empty_store_3f.py +129 -0
- intendora-0.1.2/tests/service/test_export_3b.py +252 -0
- intendora-0.1.2/tests/service/test_fix_rehearsal_2.py +351 -0
- intendora-0.1.2/tests/service/test_fix_rehearsal_3.py +389 -0
- intendora-0.1.2/tests/service/test_fix_rehearsal_4.py +150 -0
- intendora-0.1.2/tests/service/test_handles_after_keep_fixreh1.py +215 -0
- intendora-0.1.2/tests/service/test_header.py +576 -0
- intendora-0.1.2/tests/service/test_hosts_and_limits.py +245 -0
- intendora-0.1.2/tests/service/test_keep_12b.py +945 -0
- intendora-0.1.2/tests/service/test_keep_block_v2.py +460 -0
- intendora-0.1.2/tests/service/test_keep_centre_how_possible_v2.py +166 -0
- intendora-0.1.2/tests/service/test_keep_finds_questions_v2_5apos.py +191 -0
- intendora-0.1.2/tests/service/test_keep_first_sitting_v2.py +169 -0
- intendora-0.1.2/tests/service/test_keep_fixes_v2.py +256 -0
- intendora-0.1.2/tests/service/test_keep_later_parts_v2.py +503 -0
- intendora-0.1.2/tests/service/test_keep_ring_start_v2.py +398 -0
- intendora-0.1.2/tests/service/test_keep_routine_v2.py +532 -0
- intendora-0.1.2/tests/service/test_load.py +573 -0
- intendora-0.1.2/tests/service/test_load_1b.py +614 -0
- intendora-0.1.2/tests/service/test_load_2a.py +620 -0
- intendora-0.1.2/tests/service/test_mcp_package_msplit.py +439 -0
- intendora-0.1.2/tests/service/test_migrate_2a.py +217 -0
- intendora-0.1.2/tests/service/test_nested_read_2m.py +61 -0
- intendora-0.1.2/tests/service/test_one_command_connect_running.py +98 -0
- intendora-0.1.2/tests/service/test_one_command_start.py +205 -0
- intendora-0.1.2/tests/service/test_one_message_connect.py +122 -0
- intendora-0.1.2/tests/service/test_one_message_server.py +93 -0
- intendora-0.1.2/tests/service/test_open_parts_v2_5apos.py +229 -0
- intendora-0.1.2/tests/service/test_ops_rules.py +204 -0
- intendora-0.1.2/tests/service/test_page.py +367 -0
- intendora-0.1.2/tests/service/test_page_modules_rsplit.py +113 -0
- intendora-0.1.2/tests/service/test_page_static.py +123 -0
- intendora-0.1.2/tests/service/test_page_static_12a.py +209 -0
- intendora-0.1.2/tests/service/test_page_static_12c.py +248 -0
- intendora-0.1.2/tests/service/test_page_static_2l.py +84 -0
- intendora-0.1.2/tests/service/test_page_static_2m.py +47 -0
- intendora-0.1.2/tests/service/test_page_static_3f.py +66 -0
- intendora-0.1.2/tests/service/test_page_static_fixpage2.py +19 -0
- intendora-0.1.2/tests/service/test_patch.py +166 -0
- intendora-0.1.2/tests/service/test_patch_around.py +244 -0
- intendora-0.1.2/tests/service/test_picked_live_fixpos1.py +161 -0
- intendora-0.1.2/tests/service/test_position_invented_script_5apos.py +239 -0
- intendora-0.1.2/tests/service/test_position_v2_5apos.py +547 -0
- intendora-0.1.2/tests/service/test_public_sign_in_11b.py +687 -0
- intendora-0.1.2/tests/service/test_rate_limit_per_connection_fixai1.py +96 -0
- intendora-0.1.2/tests/service/test_read_day.py +534 -0
- intendora-0.1.2/tests/service/test_readiness.py +273 -0
- intendora-0.1.2/tests/service/test_record.py +699 -0
- intendora-0.1.2/tests/service/test_reflect.py +218 -0
- intendora-0.1.2/tests/service/test_relate_13.py +101 -0
- intendora-0.1.2/tests/service/test_reload.py +333 -0
- intendora-0.1.2/tests/service/test_restore_3b.py +259 -0
- intendora-0.1.2/tests/service/test_reviews_positionless.py +79 -0
- intendora-0.1.2/tests/service/test_revive.py +144 -0
- intendora-0.1.2/tests/service/test_roll.py +650 -0
- intendora-0.1.2/tests/service/test_routes_registry_rsplit.py +464 -0
- intendora-0.1.2/tests/service/test_save_without_session_fixai1.py +120 -0
- intendora-0.1.2/tests/service/test_serve_2b.py +285 -0
- intendora-0.1.2/tests/service/test_session_tools_5c.py +398 -0
- intendora-0.1.2/tests/service/test_setup_read_5a.py +419 -0
- intendora-0.1.2/tests/service/test_setup_skill.py +161 -0
- intendora-0.1.2/tests/service/test_share_cli.py +383 -0
- intendora-0.1.2/tests/service/test_share_readme.py +34 -0
- intendora-0.1.2/tests/service/test_short_title_v2.py +142 -0
- intendora-0.1.2/tests/service/test_signin_door.py +315 -0
- intendora-0.1.2/tests/service/test_signin_end_to_end.py +81 -0
- intendora-0.1.2/tests/service/test_signin_page.py +387 -0
- intendora-0.1.2/tests/service/test_signin_page_look.py +123 -0
- intendora-0.1.2/tests/service/test_signin_page_origin.py +162 -0
- intendora-0.1.2/tests/service/test_signin_provider.py +500 -0
- intendora-0.1.2/tests/service/test_signin_start.py +356 -0
- intendora-0.1.2/tests/service/test_startup_3c.py +447 -0
- intendora-0.1.2/tests/service/test_startup_check_5c.py +89 -0
- intendora-0.1.2/tests/service/test_suggestion_only_draft_fixai1.py +136 -0
- intendora-0.1.2/tests/service/test_two_doors_2m.py +102 -0
- intendora-0.1.2/tests/service/test_undo_on_the_square.py +220 -0
- intendora-0.1.2/tests/service/test_who_reverses.py +203 -0
- intendora-0.1.2/tests/service/test_write_day_2m.py +103 -0
- intendora-0.1.2/tests/unit/test_ai_filter_msplit.py +161 -0
- intendora-0.1.2/tests/unit/test_content_word_for_word.py +145 -0
- intendora-0.1.2/tests/unit/test_day_of.py +123 -0
- intendora-0.1.2/tests/unit/test_demo_grids.py +142 -0
- intendora-0.1.2/tests/unit/test_design_tokens.py +416 -0
- intendora-0.1.2/tests/unit/test_error_shape.py +151 -0
- intendora-0.1.2/tests/unit/test_grid_file.py +583 -0
- intendora-0.1.2/tests/unit/test_grid_file_1b.py +390 -0
- intendora-0.1.2/tests/unit/test_grid_file_2a.py +185 -0
- intendora-0.1.2/tests/unit/test_install_in_a_clean_container.py +54 -0
- intendora-0.1.2/tests/unit/test_install_ps1_and_readme.py +108 -0
- intendora-0.1.2/tests/unit/test_install_sh.py +391 -0
- intendora-0.1.2/tests/unit/test_no_forbidden_words.py +94 -0
- intendora-0.1.2/tests/unit/test_one_command_home.py +112 -0
- intendora-0.1.2/tests/unit/test_one_message_readme.py +58 -0
- intendora-0.1.2/tests/unit/test_pypi_publish_workflow.py +316 -0
- intendora-0.1.2/tests/unit/test_queries_package.py +302 -0
- intendora-0.1.2/tests/unit/test_readme_installs_from_github.py +72 -0
- intendora-0.1.2/tests/unit/test_release_public.py +411 -0
- intendora-0.1.2/tests/unit/test_release_tag_and_constants.py +127 -0
- intendora-0.1.2/tests/unit/test_schedule.py +153 -0
- intendora-0.1.2/tests/unit/test_script_5a.py +286 -0
- intendora-0.1.2/tests/unit/test_script_v2_check_5apos.py +176 -0
- intendora-0.1.2/tests/unit/test_script_v2_served_5apos.py +98 -0
- intendora-0.1.2/tests/unit/test_shapes_5a.py +305 -0
- intendora-0.1.2/tests/unit/test_shapes_v2_5apos.py +229 -0
- intendora-0.1.2/tests/unit/test_signin_code.py +664 -0
- intendora-0.1.2/tests/unit/test_stop_key_wording.py +121 -0
- intendora-0.1.2/tests/unit/test_tokens_css.py +357 -0
- intendora-0.1.2/tests/unit/test_view.py +178 -0
- intendora-0.1.2/uv.lock +1486 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# What `git archive` leaves out of a public release (scripts/release-public.sh).
|
|
2
|
+
/.planning/** export-ignore
|
|
3
|
+
/docs/reviews/** export-ignore
|
|
4
|
+
/trial-connector/** export-ignore
|
|
5
|
+
/evidence/** export-ignore
|
|
6
|
+
/rehearsal/** export-ignore
|
|
7
|
+
/deploy/** export-ignore
|
|
8
|
+
*.service export-ignore
|
|
9
|
+
# the hosted sign-in pin: invented credentials frozen before the sign-in change, and their test; internal to the owner's hosted copy
|
|
10
|
+
/tests/fixtures/hosted-signin-golden/** export-ignore
|
|
11
|
+
/tests/service/test_hosted_signin_pin.py export-ignore
|
|
12
|
+
/.gitleaksignore export-ignore
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
name: publish
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- "v*"
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
publish:
|
|
10
|
+
if: github.server_url == 'https://github.com' && github.repository == 'alexandrefed/intendora'
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
environment: pypi
|
|
13
|
+
permissions:
|
|
14
|
+
contents: read
|
|
15
|
+
id-token: write
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
18
|
+
- uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
|
|
19
|
+
- name: Tag matches the pyproject version
|
|
20
|
+
run: |
|
|
21
|
+
version=$(python3 -c "import tomllib;print(tomllib.load(open('pyproject.toml','rb'))['project']['version'])")
|
|
22
|
+
if [ "$GITHUB_REF_NAME" != "v$version" ]; then
|
|
23
|
+
echo "Tag $GITHUB_REF_NAME does not match pyproject version v$version"
|
|
24
|
+
exit 1
|
|
25
|
+
fi
|
|
26
|
+
- name: Build sdist and wheel
|
|
27
|
+
run: uv build
|
|
28
|
+
- uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
|
intendora-0.1.2/PKG-INFO
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: intendora
|
|
3
|
+
Version: 0.1.2
|
|
4
|
+
Summary: A goal grid: nine blocks of nine squares, kept in an embedded graph database.
|
|
5
|
+
Requires-Python: >=3.13
|
|
6
|
+
Requires-Dist: fastmcp==4.2.5
|
|
7
|
+
Requires-Dist: relate-db==1.3.0
|
|
8
|
+
Requires-Dist: starlette==1.10.0
|
|
9
|
+
Requires-Dist: uvicorn==0.54.0
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# Intendora
|
|
2
|
+
|
|
3
|
+
One goal in the centre of a 9x9 grid, broken down until each day shows what to do next. Your own AI guides the setup with you, question by question, and you confirm every answer. Everything stays on your computer.
|
|
4
|
+
|
|
5
|
+
It follows the Harada method, the chart a sixteen-year-old Shohei Ohtani filled in to plan his way to the major leagues.
|
|
6
|
+
|
|
7
|
+
## Start here
|
|
8
|
+
|
|
9
|
+
**1. Install and start it.** One line, and you need nothing installed first.
|
|
10
|
+
|
|
11
|
+
On macOS or Linux, in Terminal: `curl -LsSf https://raw.githubusercontent.com/alexandrefed/intendora/main/install.sh | sh`
|
|
12
|
+
|
|
13
|
+
On Windows, in PowerShell: `powershell -ExecutionPolicy ByPass -c "irm https://raw.githubusercontent.com/alexandrefed/intendora/main/install.ps1 | iex"`
|
|
14
|
+
|
|
15
|
+
Intendora opens in your browser. Next time, start it with `intendora start`; stop it with Control-C.
|
|
16
|
+
|
|
17
|
+
Like to read it first? Open the same address in a browser. The script is short: it installs uv (Astral's tool that runs Python apps, pinned to one version), then Intendora, and it never asks for administrator rights. To do it by hand instead, install uv (on macOS or Linux `curl -LsSf https://astral.sh/uv/install.sh | sh`, on Windows `powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"`), open a new terminal, then run `uv tool install "intendora @ https://github.com/alexandrefed/intendora/archive/refs/tags/v0.1.2.tar.gz"` and `intendora start`. From a copy of this repository, `uv run intendora` works too.
|
|
18
|
+
|
|
19
|
+
**2. Connect your AI.** Open a second terminal and leave Intendora running in the first.
|
|
20
|
+
|
|
21
|
+
- **An AI app on your computer** (Claude Code, Claude Desktop, Cursor, VS Code, Gemini CLI): run `intendora connect` followed by the app, for example `intendora connect claude-code`, and do the one thing it prints.
|
|
22
|
+
- **An AI app in the cloud** (Claude, ChatGPT, Gemini, Grok, Perplexity, Le Chat, on the web or your phone): run `intendora share`. It prints an address: add it as a connector named Intendora in the app's settings, then type the sign-in code that appears in your terminal. The first time, it asks for a free ngrok account (see the cloud apps below).
|
|
23
|
+
|
|
24
|
+
**3. Send your AI one message:** `Set up my Intendora`. It asks the questions; you keep each answer on your grid.
|
|
25
|
+
|
|
26
|
+
Just looking? `intendora start --demo` opens an example grid, Ohtani's own chart, kept apart from yours.
|
|
27
|
+
|
|
28
|
+
## Use it with your AI
|
|
29
|
+
|
|
30
|
+
Connect your AI app once, then send it one message: `Set up my Intendora`.
|
|
31
|
+
|
|
32
|
+
### Apps on your computer
|
|
33
|
+
|
|
34
|
+
Each command prints what that app needs, with a private key shown only once: keep it to yourself.
|
|
35
|
+
|
|
36
|
+
- Claude Code: `intendora connect claude-code` (one line to paste into a terminal)
|
|
37
|
+
- Claude Desktop: `intendora connect claude-desktop` (a few lines for its settings file)
|
|
38
|
+
- Cursor: `intendora connect cursor`
|
|
39
|
+
- VS Code: `intendora connect vscode`
|
|
40
|
+
- Gemini CLI: `intendora connect gemini-cli`
|
|
41
|
+
|
|
42
|
+
`intendora connect --list` names them all.
|
|
43
|
+
|
|
44
|
+
### Cloud apps
|
|
45
|
+
|
|
46
|
+
Claude on the web, ChatGPT, Gemini, Grok, Perplexity and Le Chat run on their companies' servers, so they cannot reach a program on your computer by themselves. `intendora share` gives your Intendora a public address that only your signed-in AI can use. You need the free ngrok program and account: install ngrok ([ngrok.com/download](https://ngrok.com/download), `brew install ngrok` or `winget install ngrok`), sign up, and note your authtoken and your static domain (Domains, in the ngrok dashboard; it looks like `quiet-otter-17.ngrok-free.app`). Then:
|
|
47
|
+
|
|
48
|
+
1. Run `intendora share`. The first time, it asks for the authtoken (hidden as you type) and the static domain, and keeps them in a private file in Intendora's folder. `intendora share --reset` forgets them.
|
|
49
|
+
2. It prints the address to use, ending in `/mcp`. In your AI app, add a connector named Intendora with that address (in Claude and ChatGPT: Settings, then Connectors; ChatGPT needs a paid plan for this). Added once on the web, the connector also works in the desktop and mobile apps of the same account.
|
|
50
|
+
3. The app opens a sign-in page (ngrok may first show a warning page: choose Visit Site), and your terminal prints a one-time code. Type it there.
|
|
51
|
+
4. Send your AI one message: `Set up my Intendora`.
|
|
52
|
+
|
|
53
|
+
Keep the terminal open and your computer awake while you use it; Control-C (the Control key, also on a Mac) stops everything. Already use Tailscale? `intendora share --tailscale` uses Tailscale Funnel instead, with no ngrok account. Cloud apps only reach a public address on the standard https port, so Funnel takes port 443 of your computer's Tailscale name: if you already serve something there, use ngrok instead.
|
|
54
|
+
|
|
55
|
+
### Apps that cannot connect yet
|
|
56
|
+
|
|
57
|
+
ChatGPT Free and Microsoft Copilot do not accept connectors today. Use one of the apps above.
|
|
58
|
+
|
|
59
|
+
## What Intendora does
|
|
60
|
+
|
|
61
|
+
Your main goal sits in the centre until you reach it. Around it are eight areas that serve it, each broken into milestones and steps of a few minutes, and the daily actions you keep every day. Each morning shows the grid of the day; marking a milestone done brings the next one in, and every daily action is counted with its date. Your AI proposes and helps; you confirm every link, with a reason. The grid lives in a database on your computer ([Relate](https://pypi.org/project/relate-db/)), and your AI reads only what you allow.
|
|
62
|
+
|
|
63
|
+
## Commands
|
|
64
|
+
|
|
65
|
+
Everything from here on is the reference, for people who run Intendora from its source or want the details. Installed, the commands are `intendora …`; from a copy of the source, they run through `uv run` as below.
|
|
66
|
+
|
|
67
|
+
```
|
|
68
|
+
uv run intendora check <file.json> # is the file valid? exit 0, or 2 with each problem's path and rule
|
|
69
|
+
uv run intendora load <file.json> --store <dir> [--retire-missing] # check the whole file, then write it
|
|
70
|
+
uv run intendora serve --store <dir> [--allow-host <name>] # the page at http://127.0.0.1:8771/ (or ./run)
|
|
71
|
+
uv run intendora backup [--store <dir>] [--label <name>] [--keep 30] # copy the store, prove the copy opens; through the service when it holds the store
|
|
72
|
+
uv run intendora restore <backup folder> --store <dir> # service stopped; the old store is kept as <dir>.before-restore-<stamp>
|
|
73
|
+
uv run intendora export [--store <dir>] [--out-dir <dir>] [--keep 8] # everything in one dated JSON file (the person only)
|
|
74
|
+
uv run intendora today | done <id> | undo <event_id> | reflect # day to day; --store <dir> runs in-process, --json prints the result
|
|
75
|
+
uv run pytest -q # the tests
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Who may call. `serve` listens on loopback only. Behind a proxy that sets `X-Forwarded-For` (Tailscale Serve does), the door answers this machine and the devices named with `--person-device <ip>` (repeat it for each); any other device gets 403 `this_device_cannot_open_this_grid`. A write must name its door: an `Origin` the service serves (the page), `Intendora-Client: cli` (the command line) or `Intendora-Agent`; otherwise it is refused with `a_write_names_its_door`. On the command line, a Claude session (`CLAUDECODE` set) must name its agent with `--agent` or `INTENDORA_AGENT`, or pass `--as-person` to say on purpose that the words are the person's own; `--as-person` together with an agent name is refused.
|
|
79
|
+
|
|
80
|
+
The public sign-in. Beside its private tokens the connector can accept Sign in with GitHub, for one GitHub account only. It is on when all seven settings are in the environment, and off when none is; some of them without the others stops `serve` with exit 2 and names the missing ones, never a value. The settings are `INTENDORA_PUBLIC_BASE_URL` (the public address, no trailing slash needed), `INTENDORA_OWNER_GITHUB_ID` (the digits of the one account), `INTENDORA_OAUTH_STATE_DIR` (where the registered clients are kept, encrypted), `INTENDORA_GITHUB_CLIENT_ID`, `INTENDORA_GITHUB_CLIENT_SECRET`, `INTENDORA_JWT_SIGNING_KEY` and `INTENDORA_STORAGE_ENCRYPTION_KEY`. `--connector-device <ip>` names a device (the VPS, through Serve) that reaches only the eight connector paths, and `--public-host <name>` names a host that answers only those eight paths and 404 everywhere else; both repeat. A private token is refused on the public route with `a_private_token_works_only_on_your_network`. The first call of a signed-in AI makes it a connection that is read-only until the person approves it in the app. `GET /api/connector` (the person only) gives the private path and the public address.
|
|
81
|
+
|
|
82
|
+
Exit codes: 0 done, 2 the file is refused (nothing is written), 5 the store is held by another process (stop the service first, then load again).
|
|
83
|
+
|
|
84
|
+
## The grid file `intendora-grid/1`
|
|
85
|
+
|
|
86
|
+
One JSON object with `format` (exactly `intendora-grid/1`), `settings`, `nodes` and `links`, and an optional `note` that is read and never stored. A `null` on an optional field means "not set"; a `null` on a required field is refused. Any key the format does not define is refused, naming its path, except `title_original` on a node.
|
|
87
|
+
|
|
88
|
+
- `settings`: `time_zone`, `day_start` (default `04:00`), `daily_time`, `worst_day` (Habit ids), `review_weekday`, `grid_time_and_place`, `morning_sentence`, `worst_day_note`, `agent_company`.
|
|
89
|
+
- `nodes[]`: an explicit `id` (lowercase letters, digits and `-`, 2 to 64 characters, never derived from the title), `type`, `title`, `important`, `urgent`, `owner` (`person` or `agent:<name>`), and the fields of its type. Exactly one Goal has `"centre": true`, and it always has a `test_of_done`.
|
|
90
|
+
- `links[]`: `SUPPORTS` (`from`, `to`, `reason`, `position` 1 to 8 or null, `rank`), `REQUIRES` and `BLOCKS` (`from`, `to`, `reason`), and `STEP_OF` (`step`, `quest`, `pos`).
|
|
91
|
+
|
|
92
|
+
`intendora check` names every broken rule, for example `links[3].reason a_reason_cannot_be_empty`. The whole file is checked before the store is touched.
|
|
93
|
+
|
|
94
|
+
## What is stored
|
|
95
|
+
|
|
96
|
+
Every grid node is `:Node` plus its type. Nested file objects are flattened into properties (`schedule_kind`, `purpose_*`) or kept as JSON text (`look_back_json`, `obstacles_json`). A SUPPORTS link stores its own `id`, `parent_id`, `reason`, `rank` and, when it has one, `position`. Settings is one record and Meta is one record (`version`, `app_version`, and `seq`, the event counter).
|
|
97
|
+
|
|
98
|
+
Each node, each link and the Settings record that is created or changed appends exactly one `Event` (`kind: changed`, `actor: person`, `via: loader`) holding its state before and after, with a `seq` and an idempotency key. All of a load is one transaction: it lands whole or not at all. Loading a file that changes nothing writes nothing. The loader never deletes. If the store holds a live node or link that the service created and the file no longer lists, the load is refused before anything is written (exit 2, rule `the_store_holds_things_this_file_lacks`, one line per thing). `--retire-missing` ends them instead, in the same transaction: a link gets `ended_at` (and `position_was`, or `pos_was` for a place in a Quest, and loses the position), a node gets `archived_at`, each with one `changed` event, and the position or place they held is free for a new child in the same load. A file that lists a retired node or link again brings it back: the node loses `archived_at`, the link keeps its id and loses `ended_at` and `position_was` (a Step's place gets its `pos` back), each with one `changed` event; if the returning position is now held by another live child the load is refused (`one_node_per_position_under_a_parent`). Records made by hand in the database, without the service's creation stamp, are left alone.
|
|
99
|
+
|
|
100
|
+
The operations layer enforces the layer rules itself (an empty reason, a position outside 1 to 8, a disallowed pair, a Habit as blocker, a ninth positioned child, a successor loop) and raises `intendora.ops.Refused`; a load turns that into a refusal of the file and writes nothing.
|
|
101
|
+
|
|
102
|
+
The database refuses by itself what the file check should already have caught, naming a plain-English rule (`a_link_needs_a_reason`, `one_node_per_position_under_a_parent`, and the others in `src/intendora/schema.py`).
|
|
103
|
+
|
|
104
|
+
## Layout
|
|
105
|
+
|
|
106
|
+
```
|
|
107
|
+
src/intendora/
|
|
108
|
+
model.py the fixed vocabulary: labels, link types, allowed pairs
|
|
109
|
+
gridfile.py validate(data) and GridFileInvalid
|
|
110
|
+
schema.py constraints, the index, the schema version (the only module that runs DDL)
|
|
111
|
+
store.py the one-owner-thread wrapper, with transactions
|
|
112
|
+
queries/ every Cypher string, as named constants
|
|
113
|
+
ops/ the functions that write (events, nodes, links, settings)
|
|
114
|
+
loader.py load_grid and load_file
|
|
115
|
+
web/ the service (Starlette) and the page: web/app.py, web/static/
|
|
116
|
+
ops/page_grid.py the page's read
|
|
117
|
+
cli.py the `intendora` command
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
## The page
|
|
121
|
+
|
|
122
|
+
`./run` serves the 3x3 around the centre, with positions running clockwise from the top-left, and "open its grid" on any square that has children. The same data is at `/api/grid` and `/api/grid/<id>` as JSON: nine blocks of nine cells in reading order. A Done button on a square records it and an Undo button takes it back for ten seconds; only the squares that changed are repainted.
|
|
123
|
+
|
|
124
|
+
## Connecting an AI on your network
|
|
125
|
+
|
|
126
|
+
`intendora connect-ai --name <name>` prints a private token once. An AI on your own network connects to `http://<this machine>:8771/mcp` as an MCP server over streamable HTTP, sending the token as `Authorization: Bearer <token>`. The connector lives in the same service as the page, so it answers only the devices and hosts the page answers. Every tool result passes through one filter that removes obstacle plans always, and your private answers while "AIs may read my why" is off. Disconnecting an AI in the app refuses its token on the next call.
|