netizen-cli 0.19.0__tar.gz → 0.21.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.
- {netizen_cli-0.19.0/netizen_cli.egg-info → netizen_cli-0.21.0}/PKG-INFO +2 -2
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/README.md +5 -4
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/__init__.py +1 -1
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/admin/answer_previews.py +93 -9
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/admin/auth.py +79 -46
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/admin/file_previews.py +26 -11
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/admin/static/admin.css +20 -7
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/admin/static/admin.js +203 -1233
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/admin/static/content-preview.css +1 -0
- netizen_cli-0.21.0/netizen_cli/admin/static/conversation.js +260 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/admin/static/file-browser.js +18 -1
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/admin/static/index.html +25 -1
- netizen_cli-0.21.0/netizen_cli/admin/static/path-files.js +22 -0
- netizen_cli-0.21.0/netizen_cli/admin/static/session-batch.js +349 -0
- netizen_cli-0.21.0/netizen_cli/admin/static/session-lists.js +448 -0
- netizen_cli-0.21.0/netizen_cli/admin/static/time-range.js +530 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/admin/web.py +172 -88
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/bindings.py +22 -11
- netizen_cli-0.21.0/netizen_cli/card_content.py +328 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/cards/fork.py +112 -28
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/cards/reply.py +11 -1
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/cards/scheduled.py +7 -1
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/channel/forks.py +109 -28
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/channel/input_preparation.py +58 -34
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/channel/presentation.py +5 -1
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/channel/reply_presenter.py +2 -1
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/channel/session_tools.py +39 -12
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/chat_targets.py +1 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/codex_runtime.py +2 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/database_migrations.py +2 -0
- netizen_cli-0.19.0/netizen_cli/sessions/delegation.py → netizen_cli-0.21.0/netizen_cli/delegation_envelope.py +10 -0
- netizen_cli-0.21.0/netizen_cli/file_citations.py +168 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/main.py +37 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/management/chat_directory.py +4 -1
- netizen_cli-0.21.0/netizen_cli/management/path_files.py +75 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/management/service.py +12 -3
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/markdown_images.py +25 -21
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/mcp_transport.py +17 -11
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/message_content.py +67 -112
- netizen_cli-0.21.0/netizen_cli/message_preparation.py +76 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/message_projection.py +13 -6
- netizen_cli-0.21.0/netizen_cli/migrations/v22.py +99 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/project_files.py +19 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/prompt_projection.py +9 -3
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/quoted_context.py +8 -155
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/runtime/goals.py +1 -1
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/runtime/lifecycle.py +1 -3
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/runtime/native_values.py +5 -2
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/runtime/observation.py +1 -3
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/runtime/queries.py +95 -29
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/runtime/state.py +34 -1
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/runtime/submission.py +6 -3
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/runtime/thread_naming.py +5 -1
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/schedules/mcp.py +3 -2
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/schedules/models.py +1 -0
- netizen_cli-0.21.0/netizen_cli/schedules/outcome_mcp.py +86 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/schedules/service.py +19 -8
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/schedules/store.py +29 -1
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/sessions/mcp.py +2 -2
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/sessions/presentation.py +7 -11
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/sessions/service.py +4 -1
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/terminal_cleanup.py +2 -2
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/thread_history.py +9 -1
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/turn_plan_observer.py +3 -2
- {netizen_cli-0.19.0 → netizen_cli-0.21.0/netizen_cli.egg-info}/PKG-INFO +2 -2
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli.egg-info/SOURCES.txt +18 -1
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli.egg-info/requires.txt +1 -1
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/pyproject.toml +2 -2
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/skills/netizen-user-guide/references/admin.md +32 -5
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/skills/netizen-user-guide/references/commands.md +1 -1
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/skills/netizen-user-guide/references/faq.md +25 -7
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/skills/netizen-user-guide/references/feedback-and-files.md +1 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/skills/netizen-user-guide/references/fork-side-goal.md +25 -8
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/skills/netizen-user-guide/references/messages.md +12 -7
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/skills/netizen-user-guide/references/scheduled-tasks.md +8 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/skills/netizen-user-guide/references/session-collaboration.md +1 -0
- netizen_cli-0.21.0/tests/test_card_content.py +319 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_channel_app.py +27 -17
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_channel_input_preparation.py +23 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_cli_data.py +6 -6
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_cli_distribution.py +18 -17
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_cli_packaging.py +6 -5
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_codex_runtime.py +71 -67
- netizen_cli-0.21.0/tests/test_codex_sdk_upgrade_0169.py +167 -0
- netizen_cli-0.21.0/tests/test_codex_sdk_upgrade_0170.py +124 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_database_migrations.py +4 -4
- netizen_cli-0.21.0/tests/test_file_citations.py +134 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_fork_cards.py +157 -59
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_lark_sdk_contract.py +9 -7
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_latest_answer.py +229 -10
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_main.py +36 -1
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_message_content.py +13 -8
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_message_material_inputs.py +275 -10
- netizen_cli-0.21.0/tests/test_message_preparation.py +206 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_migration_schema_validation.py +1 -1
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_optional_progress_card_settings_migration.py +2 -2
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_partial_answer_delivery.py +33 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_persistent_fork_bindings.py +65 -4
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_persistent_fork_channel.py +492 -68
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_persistent_fork_runtime.py +53 -0
- netizen_cli-0.21.0/tests/test_probe_scheduled_outcome_mount.py +31 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_progress_card_settings_migration.py +4 -4
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_project_files.py +27 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_query_indexes_migration.py +11 -9
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_quoted_context.py +37 -85
- netizen_cli-0.21.0/tests/test_release_script.py +687 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_schedule_auto_archive_migration.py +6 -3
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_schedule_cards.py +9 -0
- netizen_cli-0.21.0/tests/test_schedule_outcome_migration.py +102 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_schedule_service.py +31 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_schedule_workspace_migration.py +2 -2
- netizen_cli-0.21.0/tests/test_scheduled_outcome.py +137 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_scheduled_runtime.py +150 -6
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_scheduler.py +2 -1
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_session_collaboration_app.py +1 -1
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_session_defaults_migration.py +3 -3
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_session_external_runtime.py +4 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_session_tools.py +56 -1
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_suppress_reply.py +4 -2
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_thread_history.py +30 -1
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_thread_naming.py +26 -1
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_worktree_storage.py +1 -1
- netizen_cli-0.19.0/netizen_cli/message_preparation.py +0 -60
- netizen_cli-0.19.0/tests/test_message_preparation.py +0 -136
- netizen_cli-0.19.0/tests/test_release_script.py +0 -402
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/MANIFEST.in +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/_build.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/config.example.yaml +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/__main__.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/account_rate_limits.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/admin/__init__.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/admin/credentials.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/admin/errors.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/admin/feishu.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/admin/login.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/admin/port_config.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/admin/presentation.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/admin/queries.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/admin/static/admin-ui.js +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/admin/static/attachment-files.js +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/admin/static/chat-picker.css +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/admin/static/chat-picker.js +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/admin/static/config-editor.js +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/admin/static/content-preview.js +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/admin/static/group-access.js +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/admin/static/identity.js +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/admin/static/login.html +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/admin/static/login.js +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/admin/static/netizen.svg +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/admin/static/progress-card.js +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/admin/static/project-files.js +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/admin/static/question-notifications.js +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/admin/static/session-access.js +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/admin/static/vendor/ace/LICENSE +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/admin/static/vendor/ace/README.md +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/admin/static/vendor/ace/ace.js +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/admin/static/vendor/ace/ext-diff.js +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/admin/static/vendor/ace/mode-javascript.js +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/admin/static/vendor/ace/mode-json.js +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/admin/static/vendor/ace/mode-markdown.js +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/admin/static/vendor/ace/mode-python.js +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/admin/static/worktrees.js +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/admin/transport.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/admin/users.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/attachments.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/builtin_skills.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/cards/__init__.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/cards/callbacks.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/cards/chat_target.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/cards/controls.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/cards/defaults.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/cards/pagination.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/cards/questions.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/cards/session_ids.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/cards/status.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/cards/usage.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/cards/workspace.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/channel/__init__.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/channel/app_values.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/channel/base.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/channel/card_controls.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/channel/commands.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/channel/completion_mentions.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/channel/constants.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/channel/entry.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/channel/messages.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/channel/ports.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/channel/prompts.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/channel/question_inputs.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/channel/questions.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/channel/reactions.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/channel/replies.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/channel/reply_suppression.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/channel/schedules.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/channel/session_cards.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/channel/session_pages.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/channel/sides.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/channel/topics.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/channel/turn_files.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/channel_app.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/chat_access.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/chat_avatars.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/cli.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/cli_data.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/cli_packages.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/cli_services.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/cli_setup.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/cli_update.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/cli_update_restore.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/cli_update_worker.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/completion_mention.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/defaults/__init__.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/defaults/models.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/defaults/service.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/defaults/store.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/deployment/__init__.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/deployment/restart_worker.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/deployment/update_executor.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/deployment/update_protocol.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/domain.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/error_messages.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/experience.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/feishu_app_onboarding.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/feishu_app_permissions.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/feishu_links.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/file_inputs.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/git_status.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/group_access.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/image_inputs.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/instance.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/lark_app.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/management/__init__.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/management/attachment_files.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/management/blocking_io.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/management/chat_labels.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/management/coordination.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/management/project_files.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/management/updates.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/message_history.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/migrations/__init__.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/migrations/schema.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/migrations/v14.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/migrations/v15.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/migrations/v16.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/migrations/v17.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/migrations/v18.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/migrations/v19.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/migrations/v20.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/migrations/v21.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/model_settings.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/package_resources.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/pagination.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/partial_answers.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/progress_card_config.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/progress_card_settings.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/projects.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/question_notifications.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/result_images.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/runtime/__init__.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/runtime/activity.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/runtime/compaction.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/runtime/contracts.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/runtime/forks.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/runtime/limits.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/runtime/name_writes.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/runtime/naming.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/runtime/occupancy.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/runtime/shutdown.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/runtime/sides.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/runtime/subscriptions.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/runtime/turn_control.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/schedules/__init__.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/schedules/scheduler.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/sdk_gap_adapter.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/service_launcher.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/session_inventory.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/session_settings.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/sessions/__init__.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/sessions/errors.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/sessions/policy.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/sessions/schema.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/sessions/sources.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/settings.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/skill_references.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/task_text.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/turn_activity.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/turn_files.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/turn_patch_children.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/user_questions.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/worktrees/errors.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/worktrees/git.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/worktrees/models.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/worktrees/policy.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/worktrees/service.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/worktrees/settings.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/worktrees/store.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli/worktrees/viewer.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli.egg-info/dependency_links.txt +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli.egg-info/entry_points.txt +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/netizen_cli.egg-info/top_level.txt +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/setup.cfg +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/skills/netizen-lark/SKILL.md +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/skills/netizen-runtime-guidance/SKILL.md +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/skills/netizen-user-guide/SKILL.md +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/skills/netizen-user-guide/references/concepts.md +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/skills/netizen-user-guide/references/native-capabilities.md +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/skills/netizen-user-guide/references/sessions.md +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/skills/netizen-user-guide/references/status-and-control.md +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/skills/netizen-user-guide/references/user-guide.md +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_account_rate_limits.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_admin_update_executor_probe.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_attachments.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_binding_scheduled_channel.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_bindings.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_card_error_feedback.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_cards.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_channel_fixtures.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_chat_avatars.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_chat_target_cards.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_check_sdk.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_cli.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_cli_integration.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_cli_packages.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_cli_services.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_cli_setup.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_cli_update.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_codex_sdk_capabilities.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_codex_sdk_upgrade_0161.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_codex_sdk_upgrade_0163.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_codex_sdk_upgrade_0167.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_completion_mention_cards.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_completion_mentions.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_completion_topic_delivery.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_configuration_publication.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_cron_chat_targets.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_defaults_cards.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_defaults_channel.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_defaults_runtime.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_defaults_worktree_channel.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_deployment.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_diff_codex_sdk.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_documentation_links.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_domain_experience.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_error_messages.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_feishu_app_onboarding.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_feishu_app_permissions.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_file_input_channel.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_file_inputs.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_file_pagination.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_git_status.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_goal_reply_separation.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_group_access.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_image_inputs.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_lark_app.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_markdown_images.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_message_history.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_model_settings.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_name_writes.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_pagination.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_partial_answers.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_probe_child_files.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_probe_feishu_completion_mention.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_probe_feishu_partial_answers.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_probe_feishu_turn_file_card.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_probe_persistent_fork.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_probe_python_sdk.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_probe_scheduled_tasks.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_probe_sdk_completion_race.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_probe_sdk_response_recovery.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_probe_skill_execution.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_probe_thread_naming.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_progress_card_config.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_progress_card_entrypoints.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_progress_card_presentation.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_project_delete_channel.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_project_delete_runtime.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_project_deletion_storage.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_prompt_projection.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_question_cards.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_question_channel.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_question_notification_config.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_question_target_parity.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_rename_name_channel.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_reply_suppression.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_repository_hygiene.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_result_images.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_resume_channel.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_retired_deployment.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_runtime_resume_activation.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_runtime_thread_naming.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_schedule_card_retry.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_schedule_mcp.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_schedule_run_now.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_schedule_scope_matrix.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_schedule_trigger_cards.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_schedule_workspace_cards.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_schedule_workspace_service.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_schedule_workspace_storage.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_scheduled_auto_archive.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_scheduled_channel.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_scheduled_worktrees.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_scheduler_presenter.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_schedules_storage.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_sdk_gap_adapter.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_service_launcher.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_session_card_pages.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_session_defaults.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_session_id_cards.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_session_policy.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_session_settings.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_settings_projects.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_sqlite_query_readers.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_status_cards.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_status_commands.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_task_text.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_terminal_cleanup.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_turn_activity.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_turn_files.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_turn_patch_children.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_turn_patch_statistics.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_turn_plan_observer.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_update_executor.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_upgrade_regression.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_usage_card.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_usage_control.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_user_guide_skill.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_user_questions.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_worktree_channel_cwd.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_worktree_git.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_worktree_new.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_worktree_runtime_cwd.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_worktree_service.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_worktree_settings.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.21.0}/tests/test_worktree_tools_integration.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: netizen-cli
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.21.0
|
|
4
4
|
Summary: Use native Codex threads through a Feishu Channel.
|
|
5
5
|
Requires-Python: <3.15,>=3.11
|
|
6
6
|
Requires-Dist: h11==0.16.0
|
|
@@ -11,7 +11,7 @@ Requires-Dist: markdown-it-py==4.0.0
|
|
|
11
11
|
Requires-Dist: mdformat==1.0.0
|
|
12
12
|
Requires-Dist: mdformat-gfm==1.0.0
|
|
13
13
|
Requires-Dist: mcp==2.2.0
|
|
14
|
-
Requires-Dist: openai-codex==0.
|
|
14
|
+
Requires-Dist: openai-codex==0.170.0
|
|
15
15
|
Requires-Dist: psutil==7.2.2
|
|
16
16
|
Requires-Dist: pydantic==2.13.4
|
|
17
17
|
Requires-Dist: PyYAML==6.0.3
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
的当前内容,详见[文件说明](skills/netizen-user-guide/references/feedback-and-files.md#查看和发送本轮文件)。
|
|
44
44
|
- **保留上下文,另开一条讨论。** 用
|
|
45
45
|
[持久分支](skills/netizen-user-guide/references/fork-side-goal.md#fork-持久分支)在当前聊天或其他群
|
|
46
|
-
|
|
46
|
+
创建新话题或切到目标聊天主线,之后独立继续。
|
|
47
47
|
- **展开临时讨论,推进持续目标。** 用
|
|
48
48
|
[Side](skills/netizen-user-guide/references/fork-side-goal.md#side-临时话题)另开临时话题,或用
|
|
49
49
|
[Goal](skills/netizen-user-guide/references/fork-side-goal.md#goal)让 Codex 围绕目标持续推进。
|
|
@@ -134,7 +134,7 @@ Git 项目可在 `/new` 中加载 worktree 选项,选择已有受管 worktree
|
|
|
134
134
|
| 新建会话,选择项目及受管 worktree | `/new` |
|
|
135
135
|
| 查看、保存或删除当前聊天的会话默认配置 | `/defaults` |
|
|
136
136
|
| 查看并切换已有会话 | `/sessions` |
|
|
137
|
-
|
|
|
137
|
+
| 从当前空闲会话创建持久分支,落到新话题或聊天主线 | `/fork` |
|
|
138
138
|
| 调整模型、思考强度和过程卡 | `/config`,当前会话空闲时使用 |
|
|
139
139
|
| 查看当前任务和上下文用量 | `/status` |
|
|
140
140
|
| 查看共享 Codex 账号额度和重置时间 | `/usage` |
|
|
@@ -190,10 +190,11 @@ Admin 是实例必备能力;管理员可在“访问控制 → 管理员”中
|
|
|
190
190
|
|
|
191
191
|
- **共享环境。** 飞书应用的可用范围和群成员关系控制谁能访问;同一实例复用服务账号,
|
|
192
192
|
不提供按用户或项目隔离的权限体系。Admin Web 面向受信内网,名单中的管理员权限相同。
|
|
193
|
-
- **输入与输出。**
|
|
193
|
+
- **输入与输出。** 支持文本、普通图片和富文本图片,也可提供飞书卡片、合并转发与转发话题作为
|
|
194
194
|
[背景材料](skills/netizen-user-guide/references/messages.md#卡片合并转发与转发话题)。当前消息和准确逐条引用中的普通文件
|
|
195
195
|
可下载为输入原件;任一文件准备失败则整条输入不提交。补充历史、卡片和合并转发内部的
|
|
196
|
-
|
|
196
|
+
普通文件只提供附件描述。1.0 卡片尽力提取文字,并明确提示内容可能不完整;卡片未读部分会有说明。
|
|
197
|
+
文件夹和音视频不作为直接输入读取。
|
|
197
198
|
输入原件可在 Admin 清理,删除可能影响正在执行或后续任务读取。
|
|
198
199
|
输出文件按本轮原生记录发现,不扫描工作区补齐,也不自动上传。
|
|
199
200
|
- **Codex 能力有宿主差异。** 飞书复用原生会话和工具,但并非每个 App/CLI 控件都可用;
|
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
"""Independent answer previews for a read-only native conversation page.
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Image paths match final Markdown references to the same Turn's generated images.
|
|
4
|
+
Answer file links identify directory roots using string parsing only.
|
|
4
5
|
No filesystem, network, history cache or additional native request is involved.
|
|
5
6
|
"""
|
|
6
7
|
from __future__ import annotations
|
|
7
8
|
|
|
8
9
|
import base64
|
|
9
10
|
import json
|
|
11
|
+
import re
|
|
12
|
+
import string
|
|
13
|
+
from collections.abc import Callable, Mapping
|
|
10
14
|
from dataclasses import asdict
|
|
11
|
-
from urllib.parse import unquote, urlsplit
|
|
15
|
+
from urllib.parse import quote, unquote, urlsplit
|
|
12
16
|
|
|
17
|
+
from ..file_citations import FileCitation, citation_code, citation_label, rewrite_file_citations
|
|
13
18
|
from ..project_files import FileBrowseError, validate_image
|
|
14
19
|
from ..runtime.contracts import NativeLatestAnswer, NativeConversationPage
|
|
15
|
-
from .file_previews import PreviewUnavailable, render_markdown
|
|
20
|
+
from .file_previews import BoundedBlockTokens, PreviewUnavailable, check_markdown_source_size, render_markdown
|
|
16
21
|
|
|
17
22
|
|
|
18
23
|
MAX_IMAGE_BYTES = 10 * 1024 * 1024
|
|
@@ -33,7 +38,8 @@ def conversation_raw_text_within_limit(page: NativeConversationPage, maximum: in
|
|
|
33
38
|
for turn in page.turns:
|
|
34
39
|
texts = [turn.answer, turn.error]
|
|
35
40
|
for part in turn.inputs:
|
|
36
|
-
texts.extend((part.text, part.source, part.display_name,
|
|
41
|
+
texts.extend((part.text, part.source, part.display_name, part.kind,
|
|
42
|
+
part.source_thread_id, *part.attachments))
|
|
37
43
|
for text in texts:
|
|
38
44
|
if text is None:
|
|
39
45
|
continue
|
|
@@ -60,10 +66,11 @@ def render_conversation_page(page: NativeConversationPage, *, preview: bool = Tr
|
|
|
60
66
|
item.update(render_answer_preview(NativeLatestAnswer(
|
|
61
67
|
page.thread_id, turn.turn_id, turn.status, turn.answer,
|
|
62
68
|
images=turn.images,
|
|
63
|
-
)))
|
|
69
|
+
), answer_link=answer_file_link))
|
|
64
70
|
else:
|
|
65
71
|
item["markdownHtml"] = render_markdown(
|
|
66
|
-
turn.answer, inert_image_reason="更早轮次不加载图片",
|
|
72
|
+
_answer_markdown(turn.answer), inert_image_reason="更早轮次不加载图片",
|
|
73
|
+
answer_link=answer_file_link,
|
|
67
74
|
)
|
|
68
75
|
except PreviewUnavailable:
|
|
69
76
|
item["previewMessage"] = "回答超出排版预览限制,已显示原文。"
|
|
@@ -97,7 +104,81 @@ def _reference_path(value: str) -> str | None:
|
|
|
97
104
|
return None
|
|
98
105
|
|
|
99
106
|
|
|
100
|
-
def
|
|
107
|
+
def _answer_link_target(href: str) -> tuple[str, str | None, bool] | None:
|
|
108
|
+
try:
|
|
109
|
+
parts = urlsplit(href)
|
|
110
|
+
if parts.scheme or parts.netloc or parts.query:
|
|
111
|
+
return None
|
|
112
|
+
if not parts.path.startswith("/") or parts.path.startswith("//"):
|
|
113
|
+
return None
|
|
114
|
+
fragment = re.fullmatch(r"L([1-9]\d*)(C\d+)?(-L?\d+(C\d+)?)?", parts.fragment)
|
|
115
|
+
line = fragment[1] if fragment else None
|
|
116
|
+
path = unquote(parts.path, errors="strict")
|
|
117
|
+
if unquote(path, errors="strict") != path:
|
|
118
|
+
return None
|
|
119
|
+
if line is None and (suffix := re.fullmatch(r"(.+?):([1-9]\d*)((:|-)\d+)?", path)):
|
|
120
|
+
path, line = suffix[1], suffix[2]
|
|
121
|
+
directory = path.endswith("/")
|
|
122
|
+
if directory:
|
|
123
|
+
path, line = path[:-1], None
|
|
124
|
+
if not _absolute_path(path):
|
|
125
|
+
return None
|
|
126
|
+
except (ValueError, UnicodeError):
|
|
127
|
+
return None
|
|
128
|
+
# Avoid converting arbitrarily long digit strings from a fragment.
|
|
129
|
+
digits = line.lstrip("0") if line is not None else ""
|
|
130
|
+
number = int(digits or "0") if line is not None and len(digits) <= 5 else None
|
|
131
|
+
line = str(number) if number is not None and number <= 10_000 else None
|
|
132
|
+
return path, line, directory
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
def answer_file_link(href: str) -> dict[str, str] | None:
|
|
136
|
+
"""Identify absolute links without resolving or testing filesystem paths."""
|
|
137
|
+
target = _answer_link_target(href)
|
|
138
|
+
if target is None:
|
|
139
|
+
return None
|
|
140
|
+
path, line, directory = target
|
|
141
|
+
segments = path.split("/")[1:]
|
|
142
|
+
reason = None
|
|
143
|
+
if any(part.casefold() == ".git" for part in segments):
|
|
144
|
+
reason = ".git 目录不开放"
|
|
145
|
+
elif segments[0].casefold() in {"proc", "sys", "dev"}:
|
|
146
|
+
reason = "系统目录 /proc、/sys、/dev 不开放"
|
|
147
|
+
if reason:
|
|
148
|
+
return {"class": "answer-file-link-unavailable", "title": f"{reason}:{path}"}
|
|
149
|
+
attributes = {
|
|
150
|
+
"href": "#", "data-answer-file-root": path if directory else path.rsplit("/", 1)[0] or "/",
|
|
151
|
+
"title": f"{path}:{line}" if line else path,
|
|
152
|
+
}
|
|
153
|
+
if not directory:
|
|
154
|
+
attributes["data-answer-file-name"] = segments[-1]
|
|
155
|
+
if line:
|
|
156
|
+
attributes["data-answer-file-line"] = line
|
|
157
|
+
return attributes
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
_ESCAPE_LINK_TEXT = str.maketrans({char: "\\" + char for char in string.punctuation})
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
def _citation_link(citation: FileCitation) -> str:
|
|
164
|
+
destination = quote(citation.path)
|
|
165
|
+
if _answer_link_target(destination) != (citation.path, None, False):
|
|
166
|
+
return citation_code(citation)
|
|
167
|
+
label = citation_label(citation).translate(_ESCAPE_LINK_TEXT)
|
|
168
|
+
return f"[{label}]({destination})"
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
def _answer_markdown(text: str) -> str:
|
|
172
|
+
if "codex-file-citation" not in text:
|
|
173
|
+
return text
|
|
174
|
+
check_markdown_source_size(text)
|
|
175
|
+
return rewrite_file_citations(text, _citation_link, block_tokens=BoundedBlockTokens)
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
def render_answer_preview(
|
|
179
|
+
answer: NativeLatestAnswer, *,
|
|
180
|
+
answer_link: Callable[[str], Mapping[str, str] | None] | None = None,
|
|
181
|
+
) -> dict:
|
|
101
182
|
"""Validate only referenced images; failures preserve the complete text."""
|
|
102
183
|
candidates: dict[str, str | None] = {}
|
|
103
184
|
if answer.status == "completed":
|
|
@@ -154,7 +235,9 @@ def render_answer_preview(answer: NativeLatestAnswer) -> dict:
|
|
|
154
235
|
selected[path] = slot
|
|
155
236
|
return slot
|
|
156
237
|
|
|
157
|
-
|
|
238
|
+
markdown = _answer_markdown(answer.answer or "")
|
|
239
|
+
html = render_markdown(markdown, answer_image=select, max_images=MAX_ANSWER_IMAGES,
|
|
240
|
+
answer_link=answer_link)
|
|
158
241
|
preview = {"markdownHtml": html, "images": images}
|
|
159
242
|
# Include text plus HTML and leave room for the fixed identity/time envelope.
|
|
160
243
|
# This budget does not truncate the pre-existing text-only response.
|
|
@@ -165,7 +248,8 @@ def render_answer_preview(answer: NativeLatestAnswer) -> dict:
|
|
|
165
248
|
response_size = len(json.dumps(envelope, ensure_ascii=True)) + sum(len(image["data"]) for image in images)
|
|
166
249
|
if images and response_size + 4096 > MAX_IMAGE_RESPONSE_BYTES:
|
|
167
250
|
return {
|
|
168
|
-
"markdownHtml": render_markdown(
|
|
251
|
+
"markdownHtml": render_markdown(markdown, answer_image=lambda _: None,
|
|
252
|
+
answer_link=answer_link),
|
|
169
253
|
"images": [],
|
|
170
254
|
"previewMessage": "图片超过预览总量限制,已保留正文。",
|
|
171
255
|
}
|
|
@@ -16,8 +16,8 @@ import ipaddress
|
|
|
16
16
|
import math
|
|
17
17
|
import secrets
|
|
18
18
|
import time
|
|
19
|
-
from collections import deque
|
|
20
|
-
from collections.abc import Callable
|
|
19
|
+
from collections import OrderedDict, deque
|
|
20
|
+
from collections.abc import Callable, Container, Sequence
|
|
21
21
|
from dataclasses import dataclass, field, fields, is_dataclass
|
|
22
22
|
from enum import Enum
|
|
23
23
|
from typing import Generic, TypeVar
|
|
@@ -351,7 +351,8 @@ class AdminAuth:
|
|
|
351
351
|
self._last_now: float | None = None
|
|
352
352
|
self._preauth: dict[bytes, _PreauthRecord] = {}
|
|
353
353
|
self._sessions: dict[bytes, _SessionRecord] = {}
|
|
354
|
-
self._actions:
|
|
354
|
+
self._actions: OrderedDict[bytes, _ActionRecord] = OrderedDict()
|
|
355
|
+
self._actions_by_session: dict[bytes, set[bytes]] = {}
|
|
355
356
|
self._rate_by_source: dict[str, deque[float]] = {}
|
|
356
357
|
self._rate_global: deque[float] = deque()
|
|
357
358
|
users.subscribe_revocation(self.revoke_identity)
|
|
@@ -533,41 +534,60 @@ class AdminAuth:
|
|
|
533
534
|
) -> IssuedActionGrant:
|
|
534
535
|
"""Bind immutable exact facts to independent one-shot browser tokens."""
|
|
535
536
|
|
|
536
|
-
self.
|
|
537
|
-
|
|
538
|
-
|
|
537
|
+
return self.issue_actions(
|
|
538
|
+
session_token, ((action_kind, target, preconditions),),
|
|
539
|
+
)[0]
|
|
540
|
+
|
|
541
|
+
def issue_actions(
|
|
542
|
+
self,
|
|
543
|
+
session_token: object,
|
|
544
|
+
actions: Sequence[tuple[str, object, object]],
|
|
545
|
+
) -> tuple[IssuedActionGrant, ...]:
|
|
546
|
+
"""Issue an entire response's grants or leave no new authorizations."""
|
|
547
|
+
|
|
548
|
+
actions = tuple(actions)
|
|
549
|
+
# Preserve issue_action's validation errors before authentication errors.
|
|
550
|
+
for action_kind, target, preconditions in actions:
|
|
551
|
+
self._validate_action_kind(action_kind)
|
|
552
|
+
_require_typed_immutable_payload(target)
|
|
553
|
+
_require_typed_immutable_payload(preconditions)
|
|
539
554
|
with self._lock:
|
|
540
555
|
self._require_admission_locked()
|
|
541
556
|
now = self._now_locked()
|
|
542
557
|
self._prune_locked(now)
|
|
543
558
|
session_digest, _ = self._authenticate_session_locked(session_token)
|
|
544
|
-
if len(self._actions)
|
|
559
|
+
if len(self._actions) + len(actions) > self._limits.max_actions:
|
|
545
560
|
raise AuthCapacityExceeded()
|
|
546
|
-
session_count =
|
|
547
|
-
|
|
548
|
-
for record in self._actions.values()
|
|
549
|
-
)
|
|
550
|
-
if session_count >= self._limits.max_actions_per_session:
|
|
561
|
+
session_count = len(self._actions_by_session.get(session_digest, ()))
|
|
562
|
+
if session_count + len(actions) > self._limits.max_actions_per_session:
|
|
551
563
|
raise AuthCapacityExceeded()
|
|
552
|
-
action_token, action_digest = self._unique_token_locked(self._actions)
|
|
553
|
-
csrf_token, csrf_digest = _new_token()
|
|
554
|
-
while hmac.compare_digest(action_digest, csrf_digest):
|
|
555
|
-
csrf_token, csrf_digest = _new_token()
|
|
556
564
|
expires_at = now + self._limits.action_ttl
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
565
|
+
pending: dict[bytes, _ActionRecord] = {}
|
|
566
|
+
issued = []
|
|
567
|
+
for action_kind, target, preconditions in actions:
|
|
568
|
+
action_token, action_digest = self._unique_token_locked(
|
|
569
|
+
self._actions, reserved=pending,
|
|
570
|
+
)
|
|
571
|
+
csrf_token, csrf_digest = _new_token()
|
|
572
|
+
while hmac.compare_digest(action_digest, csrf_digest):
|
|
573
|
+
csrf_token, csrf_digest = _new_token()
|
|
574
|
+
pending[action_digest] = _ActionRecord(
|
|
575
|
+
session_digest=session_digest,
|
|
576
|
+
csrf_digest=csrf_digest,
|
|
577
|
+
generation=self._generation,
|
|
578
|
+
action_kind=action_kind,
|
|
579
|
+
target=target,
|
|
580
|
+
preconditions=preconditions,
|
|
581
|
+
expires_at=expires_at,
|
|
582
|
+
)
|
|
583
|
+
issued.append(IssuedActionGrant(
|
|
584
|
+
csrf_token=csrf_token,
|
|
585
|
+
action_token=action_token,
|
|
586
|
+
expires_at=expires_at,
|
|
587
|
+
))
|
|
588
|
+
for digest, record in pending.items():
|
|
589
|
+
self._add_action_locked(digest, record)
|
|
590
|
+
return tuple(issued)
|
|
571
591
|
|
|
572
592
|
def redeem_action(
|
|
573
593
|
self,
|
|
@@ -666,7 +686,22 @@ class AdminAuth:
|
|
|
666
686
|
def _clear_bearer_state_locked(self) -> None:
|
|
667
687
|
self._preauth.clear()
|
|
668
688
|
self._sessions.clear()
|
|
689
|
+
self._clear_actions_locked()
|
|
690
|
+
|
|
691
|
+
def _add_action_locked(self, digest: bytes, record: _ActionRecord) -> None:
|
|
692
|
+
self._actions[digest] = record
|
|
693
|
+
self._actions_by_session.setdefault(record.session_digest, set()).add(digest)
|
|
694
|
+
|
|
695
|
+
def _remove_action_locked(self, digest: bytes) -> None:
|
|
696
|
+
record = self._actions.pop(digest)
|
|
697
|
+
session_actions = self._actions_by_session[record.session_digest]
|
|
698
|
+
session_actions.remove(digest)
|
|
699
|
+
if not session_actions:
|
|
700
|
+
del self._actions_by_session[record.session_digest]
|
|
701
|
+
|
|
702
|
+
def _clear_actions_locked(self) -> None:
|
|
669
703
|
self._actions.clear()
|
|
704
|
+
self._actions_by_session.clear()
|
|
670
705
|
|
|
671
706
|
def _now_locked(self) -> float:
|
|
672
707
|
now = float(self._clock())
|
|
@@ -684,13 +719,14 @@ class AdminAuth:
|
|
|
684
719
|
raise LoginRejected() from None
|
|
685
720
|
|
|
686
721
|
def _prune_locked(self, now: float) -> None:
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
722
|
+
# A single TTL plus the monotonic clock makes insertion order expiry
|
|
723
|
+
# order. OrderedDict keeps head lookup and arbitrary deletion O(1),
|
|
724
|
+
# including after many removals; consumed grants retain their position.
|
|
725
|
+
while self._actions:
|
|
726
|
+
digest, record = next(iter(self._actions.items()))
|
|
727
|
+
if record.expires_at > now:
|
|
728
|
+
break
|
|
729
|
+
self._remove_action_locked(digest)
|
|
694
730
|
|
|
695
731
|
def _prune_rate_locked(self, now: float) -> None:
|
|
696
732
|
cutoff = now - self._limits.login_window
|
|
@@ -775,13 +811,8 @@ class AdminAuth:
|
|
|
775
811
|
|
|
776
812
|
def _drop_session_locked(self, session_digest: bytes) -> None:
|
|
777
813
|
self._sessions.pop(session_digest, None)
|
|
778
|
-
|
|
779
|
-
digest
|
|
780
|
-
for digest, record in self._actions.items()
|
|
781
|
-
if hmac.compare_digest(record.session_digest, session_digest)
|
|
782
|
-
]
|
|
783
|
-
for digest in action_digests:
|
|
784
|
-
self._actions.pop(digest, None)
|
|
814
|
+
for digest in tuple(self._actions_by_session.get(session_digest, ())):
|
|
815
|
+
self._remove_action_locked(digest)
|
|
785
816
|
|
|
786
817
|
@staticmethod
|
|
787
818
|
def _validate_action_kind(action_kind: str) -> None:
|
|
@@ -795,11 +826,13 @@ class AdminAuth:
|
|
|
795
826
|
|
|
796
827
|
@staticmethod
|
|
797
828
|
def _unique_token_locked(
|
|
798
|
-
records:
|
|
829
|
+
records: Container[bytes],
|
|
830
|
+
*,
|
|
831
|
+
reserved: Container[bytes] = (),
|
|
799
832
|
) -> tuple[str, bytes]:
|
|
800
833
|
for _ in range(8):
|
|
801
834
|
token, digest = _new_token()
|
|
802
|
-
if digest not in records:
|
|
835
|
+
if digest not in records and digest not in reserved:
|
|
803
836
|
return token, digest
|
|
804
837
|
raise RuntimeError("secure token generator repeatedly collided")
|
|
805
838
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from collections.abc import Callable, Iterator, Sequence
|
|
5
|
+
from collections.abc import Callable, Iterator, Mapping, Sequence
|
|
6
6
|
from urllib.parse import unquote, urlsplit
|
|
7
7
|
|
|
8
8
|
from markdown_it import MarkdownIt
|
|
@@ -26,7 +26,7 @@ class PreviewUnavailable(ValueError):
|
|
|
26
26
|
"""The source remains viewable, but its rendered preview exceeds a budget."""
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
class
|
|
29
|
+
class BoundedBlockTokens(list[Token]):
|
|
30
30
|
def append(self, token: Token) -> None:
|
|
31
31
|
# Tables pad missing cells while parsing. Stop before that expansion can
|
|
32
32
|
# allocate an unbounded token graph, not merely after parse() returns.
|
|
@@ -36,7 +36,7 @@ class _BoundedBlockTokens(list[Token]):
|
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
def _limit_block_tokens(state: StateCore) -> None:
|
|
39
|
-
state.tokens =
|
|
39
|
+
state.tokens = BoundedBlockTokens(state.tokens)
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
_MARKDOWN.core.ruler.before("block", "preview_token_budget", _limit_block_tokens)
|
|
@@ -153,12 +153,22 @@ def _check_render_budget(tokens: Sequence[Token]) -> None:
|
|
|
153
153
|
raise PreviewUnavailable("Markdown 预览内容过大,请查看源码。")
|
|
154
154
|
|
|
155
155
|
|
|
156
|
+
def check_markdown_source_size(text: str) -> None:
|
|
157
|
+
try:
|
|
158
|
+
length = len(text.encode("utf-8"))
|
|
159
|
+
except UnicodeError as exc:
|
|
160
|
+
raise PreviewUnavailable("文件包含无法预览的文本编码,请查看源码。") from exc
|
|
161
|
+
if length > MAX_MARKDOWN_BYTES:
|
|
162
|
+
raise PreviewUnavailable("Markdown 文件超过 256 KiB,请查看源码。")
|
|
163
|
+
|
|
164
|
+
|
|
156
165
|
def render_markdown(
|
|
157
166
|
text: str,
|
|
158
167
|
*,
|
|
159
168
|
path: str | None = None,
|
|
160
169
|
image_url: Callable[[str], str] | None = None,
|
|
161
170
|
answer_image: Callable[[str], str | None] | None = None,
|
|
171
|
+
answer_link: Callable[[str], Mapping[str, str] | None] | None = None,
|
|
162
172
|
max_images: int = MAX_MARKDOWN_IMAGES,
|
|
163
173
|
inert_image_reason: str = "此处不加载图片",
|
|
164
174
|
) -> str:
|
|
@@ -169,16 +179,12 @@ def render_markdown(
|
|
|
169
179
|
carry ``data-file-browser-directory="true"``.
|
|
170
180
|
Remote images and fragment-only links remain inert. No filesystem or network
|
|
171
181
|
access occurs here; the file endpoint separately validates image contents.
|
|
172
|
-
Without a file context,
|
|
182
|
+
Without a file context, answer_link may identify absolute answer links with
|
|
183
|
+
a closed set of inert attributes; other local links remain inert. An answer_image resolver
|
|
173
184
|
may select already validated native image data by opaque slot id; it never
|
|
174
185
|
grants file access or creates a resource URL.
|
|
175
186
|
"""
|
|
176
|
-
|
|
177
|
-
length = len(text.encode("utf-8"))
|
|
178
|
-
except UnicodeError as exc:
|
|
179
|
-
raise PreviewUnavailable("文件包含无法预览的文本编码,请查看源码。") from exc
|
|
180
|
-
if length > MAX_MARKDOWN_BYTES:
|
|
181
|
-
raise PreviewUnavailable("Markdown 文件超过 256 KiB,请查看源码。")
|
|
187
|
+
check_markdown_source_size(text)
|
|
182
188
|
if path is not None and (not path or _local_path(path, []) != path):
|
|
183
189
|
raise PreviewUnavailable("Markdown 文件路径无效,请查看源码。")
|
|
184
190
|
directory = path.split("/")[:-1] if path is not None else []
|
|
@@ -197,9 +203,18 @@ def render_markdown(
|
|
|
197
203
|
if alignment in {"text-align:left", "text-align:center", "text-align:right"}:
|
|
198
204
|
token.attrSet("class", "markdown-align-" + alignment.split(":")[1])
|
|
199
205
|
elif token.type == "link_open":
|
|
200
|
-
|
|
206
|
+
href = token.attrGet("href") or ""
|
|
207
|
+
target = _target(href, directory)
|
|
201
208
|
token.attrs.pop("href", None)
|
|
202
209
|
if target is None:
|
|
210
|
+
if path is None and answer_link is not None:
|
|
211
|
+
for key, value in (answer_link(href) or {}).items():
|
|
212
|
+
if (
|
|
213
|
+
key in {"title", "data-answer-file-root", "data-answer-file-name", "data-answer-file-line"}
|
|
214
|
+
or key == "href" and value == "#"
|
|
215
|
+
or key == "class" and value == "answer-file-link-unavailable"
|
|
216
|
+
):
|
|
217
|
+
token.attrSet(key, value)
|
|
203
218
|
continue
|
|
204
219
|
kind, value = target
|
|
205
220
|
if kind == "external":
|
|
@@ -608,6 +608,15 @@ body.schedule-detail-open { overflow: hidden; }
|
|
|
608
608
|
.admin-confirm .project-delete-head h3 { flex: 1; }
|
|
609
609
|
.admin-confirm .project-delete-body { max-height: 60dvh; }
|
|
610
610
|
.admin-confirm .project-delete-body p { white-space: pre-line; }
|
|
611
|
+
.session-batch { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 12px 0; }
|
|
612
|
+
.session-batch[hidden] { display: none; }
|
|
613
|
+
.session-select-hit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: var(--control-min-height); min-height: var(--control-min-height); cursor: pointer; }
|
|
614
|
+
.session-select-hit input { width: 18px; height: 18px; margin: 0; accent-color: var(--focus); }
|
|
615
|
+
.session-select-hit input:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
|
|
616
|
+
.session-batch .action[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
|
|
617
|
+
.session-batch-dialog .project-delete-body { max-height: 60dvh; }
|
|
618
|
+
#session-batch-note, #session-batch-results .error { color: var(--danger); }
|
|
619
|
+
.session-batch-open { overflow: hidden; }
|
|
611
620
|
.confirm-details { padding: 12px 12px 12px 30px; border-radius: 8px; background: var(--wash); font-size: var(--font-md); line-height: 1.8; overflow-wrap: anywhere; }
|
|
612
621
|
.admin-confirm .action.primary.danger { color: var(--paper); background: var(--danger); border-color: var(--danger); }
|
|
613
622
|
.admin-confirm .action.primary.danger:hover { background: var(--danger-strong); }
|
|
@@ -665,13 +674,14 @@ body.navigation-open { overflow: hidden; }
|
|
|
665
674
|
.pagination label { display: flex; align-items: center; gap: 8px; margin-left: auto; color: var(--muted); font-size: var(--font-md); }
|
|
666
675
|
.card-value { min-width: 0; }
|
|
667
676
|
#sessions-ordinary table, #sessions-temporary table { min-width: 0; table-layout: fixed; }
|
|
668
|
-
#sessions-ordinary th:nth-child(1) { width:
|
|
669
|
-
#sessions-ordinary th:nth-child(2) { width:
|
|
670
|
-
#sessions-ordinary th:nth-child(3) { width:
|
|
671
|
-
#sessions-ordinary th:nth-child(4) { width:
|
|
672
|
-
#sessions-ordinary th:nth-child(5) { width:
|
|
673
|
-
#sessions-ordinary th:nth-child(6)
|
|
674
|
-
#sessions-ordinary th:nth-child(8) { width:
|
|
677
|
+
#sessions-ordinary th:nth-child(1) { width: 60px; }
|
|
678
|
+
#sessions-ordinary th:nth-child(2) { width: 11%; }
|
|
679
|
+
#sessions-ordinary th:nth-child(3) { width: 17%; }
|
|
680
|
+
#sessions-ordinary th:nth-child(4) { width: 13%; }
|
|
681
|
+
#sessions-ordinary th:nth-child(5) { width: 6%; }
|
|
682
|
+
#sessions-ordinary th:nth-child(6) { width: 12%; }
|
|
683
|
+
#sessions-ordinary th:nth-child(7), #sessions-ordinary th:nth-child(8) { width: 8%; }
|
|
684
|
+
#sessions-ordinary th:nth-child(9) { width: 17%; }
|
|
675
685
|
#sessions-ordinary .actions > button { flex: 0 0 auto; white-space: nowrap; }
|
|
676
686
|
#sessions-temporary th:nth-child(1) { width: 14%; }
|
|
677
687
|
#sessions-temporary th:nth-child(2) { width: 20%; }
|
|
@@ -728,6 +738,9 @@ body.navigation-open { overflow: hidden; }
|
|
|
728
738
|
.card-table td[data-card-title]::before, .card-table td[data-card-status]::before, .card-table td:last-child::before { display: none; }
|
|
729
739
|
.card-table td[data-card-status], #sessions .card-table td[data-card-status] { grid-column: 2; grid-row: 1; max-width: 150px; }
|
|
730
740
|
.card-table td[data-card-status] .card-value { text-align: right; }
|
|
741
|
+
#sessions-ordinary .card-table td.session-selection { grid-row: 1; grid-column: 1 / -1; }
|
|
742
|
+
#sessions-ordinary .card-table td.session-selection::before { display: none; }
|
|
743
|
+
#sessions-ordinary .card-table td[data-card-title], #sessions-ordinary .card-table td[data-card-status] { grid-row: 2; }
|
|
731
744
|
.card-table td:last-child { padding-top: 10px; border-top: 1px solid var(--line); }
|
|
732
745
|
.card-table .actions { width: 100%; gap: 8px; }
|
|
733
746
|
.card-table .action { min-height: var(--control-min-height); }
|