netizen-cli 0.19.0__tar.gz → 0.20.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.20.0}/PKG-INFO +2 -2
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/README.md +2 -2
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/__init__.py +1 -1
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/bindings.py +20 -9
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/cards/fork.py +112 -28
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/channel/forks.py +109 -28
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/chat_targets.py +1 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/management/chat_directory.py +4 -1
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/runtime/native_values.py +5 -2
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/terminal_cleanup.py +2 -2
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/thread_history.py +1 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/turn_plan_observer.py +3 -2
- {netizen_cli-0.19.0 → netizen_cli-0.20.0/netizen_cli.egg-info}/PKG-INFO +2 -2
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli.egg-info/SOURCES.txt +1 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli.egg-info/requires.txt +1 -1
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/pyproject.toml +2 -2
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/skills/netizen-user-guide/references/commands.md +1 -1
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/skills/netizen-user-guide/references/faq.md +25 -7
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/skills/netizen-user-guide/references/fork-side-goal.md +25 -8
- netizen_cli-0.20.0/tests/test_codex_sdk_upgrade_0169.py +167 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_fork_cards.py +157 -59
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_optional_progress_card_settings_migration.py +1 -1
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_persistent_fork_bindings.py +65 -4
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_persistent_fork_channel.py +492 -68
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_persistent_fork_runtime.py +53 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_progress_card_settings_migration.py +1 -1
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_worktree_storage.py +1 -1
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/MANIFEST.in +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/_build.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/config.example.yaml +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/__main__.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/account_rate_limits.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/admin/__init__.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/admin/answer_previews.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/admin/auth.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/admin/credentials.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/admin/errors.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/admin/feishu.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/admin/file_previews.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/admin/login.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/admin/port_config.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/admin/presentation.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/admin/queries.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/admin/static/admin-ui.js +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/admin/static/admin.css +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/admin/static/admin.js +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/admin/static/attachment-files.js +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/admin/static/chat-picker.css +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/admin/static/chat-picker.js +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/admin/static/config-editor.js +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/admin/static/content-preview.css +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/admin/static/content-preview.js +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/admin/static/file-browser.js +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/admin/static/group-access.js +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/admin/static/identity.js +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/admin/static/index.html +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/admin/static/login.html +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/admin/static/login.js +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/admin/static/netizen.svg +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/admin/static/progress-card.js +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/admin/static/project-files.js +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/admin/static/question-notifications.js +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/admin/static/session-access.js +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/admin/static/vendor/ace/LICENSE +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/admin/static/vendor/ace/README.md +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/admin/static/vendor/ace/ace.js +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/admin/static/vendor/ace/ext-diff.js +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/admin/static/vendor/ace/mode-javascript.js +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/admin/static/vendor/ace/mode-json.js +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/admin/static/vendor/ace/mode-markdown.js +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/admin/static/vendor/ace/mode-python.js +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/admin/static/worktrees.js +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/admin/transport.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/admin/users.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/admin/web.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/attachments.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/builtin_skills.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/cards/__init__.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/cards/callbacks.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/cards/chat_target.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/cards/controls.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/cards/defaults.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/cards/pagination.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/cards/questions.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/cards/reply.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/cards/scheduled.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/cards/session_ids.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/cards/status.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/cards/usage.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/cards/workspace.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/channel/__init__.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/channel/app_values.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/channel/base.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/channel/card_controls.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/channel/commands.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/channel/completion_mentions.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/channel/constants.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/channel/entry.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/channel/input_preparation.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/channel/messages.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/channel/ports.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/channel/presentation.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/channel/prompts.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/channel/question_inputs.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/channel/questions.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/channel/reactions.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/channel/replies.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/channel/reply_presenter.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/channel/reply_suppression.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/channel/schedules.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/channel/session_cards.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/channel/session_pages.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/channel/session_tools.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/channel/sides.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/channel/topics.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/channel/turn_files.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/channel_app.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/chat_access.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/chat_avatars.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/cli.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/cli_data.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/cli_packages.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/cli_services.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/cli_setup.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/cli_update.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/cli_update_restore.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/cli_update_worker.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/codex_runtime.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/completion_mention.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/database_migrations.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/defaults/__init__.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/defaults/models.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/defaults/service.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/defaults/store.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/deployment/__init__.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/deployment/restart_worker.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/deployment/update_executor.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/deployment/update_protocol.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/domain.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/error_messages.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/experience.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/feishu_app_onboarding.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/feishu_app_permissions.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/feishu_links.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/file_inputs.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/git_status.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/group_access.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/image_inputs.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/instance.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/lark_app.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/main.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/management/__init__.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/management/attachment_files.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/management/blocking_io.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/management/chat_labels.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/management/coordination.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/management/project_files.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/management/service.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/management/updates.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/markdown_images.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/mcp_transport.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/message_content.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/message_history.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/message_preparation.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/message_projection.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/migrations/__init__.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/migrations/schema.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/migrations/v14.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/migrations/v15.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/migrations/v16.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/migrations/v17.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/migrations/v18.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/migrations/v19.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/migrations/v20.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/migrations/v21.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/model_settings.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/package_resources.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/pagination.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/partial_answers.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/progress_card_config.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/progress_card_settings.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/project_files.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/projects.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/prompt_projection.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/question_notifications.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/quoted_context.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/result_images.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/runtime/__init__.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/runtime/activity.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/runtime/compaction.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/runtime/contracts.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/runtime/forks.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/runtime/goals.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/runtime/lifecycle.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/runtime/limits.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/runtime/name_writes.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/runtime/naming.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/runtime/observation.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/runtime/occupancy.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/runtime/queries.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/runtime/shutdown.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/runtime/sides.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/runtime/state.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/runtime/submission.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/runtime/subscriptions.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/runtime/thread_naming.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/runtime/turn_control.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/schedules/__init__.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/schedules/mcp.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/schedules/models.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/schedules/scheduler.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/schedules/service.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/schedules/store.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/sdk_gap_adapter.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/service_launcher.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/session_inventory.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/session_settings.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/sessions/__init__.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/sessions/delegation.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/sessions/errors.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/sessions/mcp.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/sessions/policy.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/sessions/presentation.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/sessions/schema.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/sessions/service.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/sessions/sources.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/settings.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/skill_references.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/task_text.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/turn_activity.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/turn_files.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/turn_patch_children.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/user_questions.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/worktrees/errors.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/worktrees/git.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/worktrees/models.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/worktrees/policy.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/worktrees/service.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/worktrees/settings.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/worktrees/store.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli/worktrees/viewer.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli.egg-info/dependency_links.txt +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli.egg-info/entry_points.txt +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/netizen_cli.egg-info/top_level.txt +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/setup.cfg +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/skills/netizen-lark/SKILL.md +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/skills/netizen-runtime-guidance/SKILL.md +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/skills/netizen-user-guide/SKILL.md +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/skills/netizen-user-guide/references/admin.md +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/skills/netizen-user-guide/references/concepts.md +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/skills/netizen-user-guide/references/feedback-and-files.md +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/skills/netizen-user-guide/references/messages.md +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/skills/netizen-user-guide/references/native-capabilities.md +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/skills/netizen-user-guide/references/scheduled-tasks.md +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/skills/netizen-user-guide/references/session-collaboration.md +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/skills/netizen-user-guide/references/sessions.md +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/skills/netizen-user-guide/references/status-and-control.md +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/skills/netizen-user-guide/references/user-guide.md +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_account_rate_limits.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_admin_update_executor_probe.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_attachments.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_binding_scheduled_channel.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_bindings.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_card_error_feedback.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_cards.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_channel_app.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_channel_fixtures.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_channel_input_preparation.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_chat_avatars.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_chat_target_cards.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_check_sdk.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_cli.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_cli_data.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_cli_distribution.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_cli_integration.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_cli_packages.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_cli_packaging.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_cli_services.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_cli_setup.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_cli_update.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_codex_runtime.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_codex_sdk_capabilities.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_codex_sdk_upgrade_0161.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_codex_sdk_upgrade_0163.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_codex_sdk_upgrade_0167.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_completion_mention_cards.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_completion_mentions.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_completion_topic_delivery.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_configuration_publication.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_cron_chat_targets.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_database_migrations.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_defaults_cards.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_defaults_channel.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_defaults_runtime.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_defaults_worktree_channel.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_deployment.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_diff_codex_sdk.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_documentation_links.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_domain_experience.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_error_messages.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_feishu_app_onboarding.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_feishu_app_permissions.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_file_input_channel.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_file_inputs.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_file_pagination.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_git_status.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_goal_reply_separation.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_group_access.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_image_inputs.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_lark_app.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_lark_sdk_contract.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_latest_answer.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_main.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_markdown_images.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_message_content.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_message_history.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_message_material_inputs.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_message_preparation.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_migration_schema_validation.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_model_settings.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_name_writes.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_pagination.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_partial_answer_delivery.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_partial_answers.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_probe_child_files.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_probe_feishu_completion_mention.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_probe_feishu_partial_answers.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_probe_feishu_turn_file_card.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_probe_persistent_fork.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_probe_python_sdk.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_probe_scheduled_tasks.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_probe_sdk_completion_race.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_probe_sdk_response_recovery.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_probe_skill_execution.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_probe_thread_naming.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_progress_card_config.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_progress_card_entrypoints.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_progress_card_presentation.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_project_delete_channel.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_project_delete_runtime.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_project_deletion_storage.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_project_files.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_prompt_projection.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_query_indexes_migration.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_question_cards.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_question_channel.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_question_notification_config.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_question_target_parity.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_quoted_context.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_release_script.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_rename_name_channel.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_reply_suppression.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_repository_hygiene.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_result_images.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_resume_channel.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_retired_deployment.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_runtime_resume_activation.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_runtime_thread_naming.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_schedule_auto_archive_migration.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_schedule_card_retry.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_schedule_cards.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_schedule_mcp.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_schedule_run_now.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_schedule_scope_matrix.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_schedule_service.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_schedule_trigger_cards.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_schedule_workspace_cards.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_schedule_workspace_migration.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_schedule_workspace_service.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_schedule_workspace_storage.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_scheduled_auto_archive.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_scheduled_channel.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_scheduled_runtime.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_scheduled_worktrees.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_scheduler.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_scheduler_presenter.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_schedules_storage.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_sdk_gap_adapter.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_service_launcher.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_session_card_pages.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_session_collaboration_app.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_session_defaults.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_session_defaults_migration.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_session_external_runtime.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_session_id_cards.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_session_policy.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_session_settings.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_session_tools.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_settings_projects.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_sqlite_query_readers.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_status_cards.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_status_commands.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_suppress_reply.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_task_text.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_terminal_cleanup.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_thread_history.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_thread_naming.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_turn_activity.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_turn_files.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_turn_patch_children.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_turn_patch_statistics.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_turn_plan_observer.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_update_executor.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_upgrade_regression.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_usage_card.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_usage_control.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_user_guide_skill.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_user_questions.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_worktree_channel_cwd.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_worktree_git.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_worktree_new.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_worktree_runtime_cwd.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_worktree_service.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.0}/tests/test_worktree_settings.py +0 -0
- {netizen_cli-0.19.0 → netizen_cli-0.20.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.20.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.169.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` |
|
|
@@ -265,6 +265,14 @@ class ThreadBinding:
|
|
|
265
265
|
return self.id[:8]
|
|
266
266
|
|
|
267
267
|
|
|
268
|
+
@dataclass(frozen=True, slots=True)
|
|
269
|
+
class BindingCreation:
|
|
270
|
+
"""Complete Binding and the current pointer replaced in its transaction."""
|
|
271
|
+
|
|
272
|
+
binding: ThreadBinding
|
|
273
|
+
previous_active_binding_id: str | None
|
|
274
|
+
|
|
275
|
+
|
|
268
276
|
@dataclass(frozen=True, slots=True)
|
|
269
277
|
class ProjectRecord:
|
|
270
278
|
alias: str
|
|
@@ -948,7 +956,7 @@ class BindingStore:
|
|
|
948
956
|
empty_topic_root_message_id=empty_topic_root_message_id,
|
|
949
957
|
working_cwd=working_cwd,
|
|
950
958
|
worktree_id=worktree_id,
|
|
951
|
-
)
|
|
959
|
+
).binding
|
|
952
960
|
|
|
953
961
|
def create_fork_binding(
|
|
954
962
|
self,
|
|
@@ -961,17 +969,19 @@ class BindingStore:
|
|
|
961
969
|
expected_project_revision: int,
|
|
962
970
|
target_chat_kind: str,
|
|
963
971
|
context_anchor: MessageContextAnchor | None = None,
|
|
964
|
-
) ->
|
|
965
|
-
"""Bind
|
|
972
|
+
) -> BindingCreation:
|
|
973
|
+
"""Bind a fork, atomically capturing any replaced main-line pointer."""
|
|
966
974
|
|
|
967
975
|
if (
|
|
968
|
-
scope.kind is not ScopeKind.TOPIC
|
|
976
|
+
(scope.kind is not ScopeKind.TOPIC and (
|
|
977
|
+
scope.kind is not (ScopeKind.DIRECT if target_chat_kind == "p2p" else ScopeKind.GROUP)
|
|
978
|
+
)) or scope.key == source.scope_key
|
|
969
979
|
or not native_thread_id or native_thread_id == source.native_thread_id
|
|
970
980
|
or source.native_thread_id is None or not root_message_id
|
|
971
981
|
or expected_project_revision < 1
|
|
972
982
|
or target_chat_kind not in {"group", "p2p"}
|
|
973
983
|
):
|
|
974
|
-
raise ValueError("fork requires a new native Thread and a
|
|
984
|
+
raise ValueError("fork requires a new native Thread and a distinct valid destination")
|
|
975
985
|
if self.get_scope(source.scope_key).app_id != scope.app_id:
|
|
976
986
|
raise ScopeConflict("分支必须属于同一个飞书应用。")
|
|
977
987
|
context_mode = (
|
|
@@ -986,7 +996,7 @@ class BindingStore:
|
|
|
986
996
|
context_anchor=context_anchor if context_mode is MentionContextMode.CATCH_UP else None,
|
|
987
997
|
expected_project_revision=expected_project_revision,
|
|
988
998
|
native_thread_id=native_thread_id,
|
|
989
|
-
empty_topic_root_message_id=root_message_id,
|
|
999
|
+
empty_topic_root_message_id=root_message_id if scope.kind is ScopeKind.TOPIC else None,
|
|
990
1000
|
working_cwd=source.working_cwd,
|
|
991
1001
|
worktree_id=source.worktree_id,
|
|
992
1002
|
)
|
|
@@ -1009,7 +1019,7 @@ class BindingStore:
|
|
|
1009
1019
|
empty_topic_root_message_id: str | None = None,
|
|
1010
1020
|
working_cwd: str | None = None,
|
|
1011
1021
|
worktree_id: str | None = None,
|
|
1012
|
-
) ->
|
|
1022
|
+
) -> BindingCreation:
|
|
1013
1023
|
if not project_alias or not creator_id:
|
|
1014
1024
|
raise ValueError("Binding Project and creator must not be empty")
|
|
1015
1025
|
if working_cwd is not None and (
|
|
@@ -1059,6 +1069,7 @@ class BindingStore:
|
|
|
1059
1069
|
_SCOPE_SELECT + " WHERE scope_key = ?",
|
|
1060
1070
|
(scope.key,),
|
|
1061
1071
|
).fetchone()
|
|
1072
|
+
previous_id = scope_row["active_binding_id"] if scope_row is not None else None
|
|
1062
1073
|
if scope_row is None:
|
|
1063
1074
|
self._connection.execute(
|
|
1064
1075
|
"""
|
|
@@ -1164,7 +1175,7 @@ class BindingStore:
|
|
|
1164
1175
|
self.schedules._set_run(
|
|
1165
1176
|
scheduled_run_id, phase="binding_ready", binding_id=binding_id,
|
|
1166
1177
|
)
|
|
1167
|
-
return self.get(binding_id)
|
|
1178
|
+
return BindingCreation(self.get(binding_id), previous_id)
|
|
1168
1179
|
|
|
1169
1180
|
def create_scheduled_binding(
|
|
1170
1181
|
self, *, run_id: str, scope: FeishuScope,
|
|
@@ -1185,7 +1196,7 @@ class BindingStore:
|
|
|
1185
1196
|
context_anchor=context_anchor, expected_project_revision=expected_project_revision,
|
|
1186
1197
|
working_cwd=working_cwd, worktree_id=worktree_id,
|
|
1187
1198
|
scheduled_run_id=run_id,
|
|
1188
|
-
)
|
|
1199
|
+
).binding
|
|
1189
1200
|
|
|
1190
1201
|
def find_by_native_thread_id(self, native_thread_id: str) -> ThreadBinding | None:
|
|
1191
1202
|
with self._lock:
|
|
@@ -42,13 +42,17 @@ if TYPE_CHECKING:
|
|
|
42
42
|
from ..management.chat_directory import AvailableChat
|
|
43
43
|
|
|
44
44
|
|
|
45
|
-
_VERSION =
|
|
46
|
-
_MODE_FIELD = "
|
|
47
|
-
_TARGET_FIELD = "
|
|
48
|
-
_ID_FIELD = "
|
|
49
|
-
_NAME_FIELD = "
|
|
50
|
-
_QUERY_FIELD = "
|
|
51
|
-
_PAGE_FIELD = "
|
|
45
|
+
_VERSION = 6
|
|
46
|
+
_MODE_FIELD = "fork_mode_v6"
|
|
47
|
+
_TARGET_FIELD = "fork_target_v6"
|
|
48
|
+
_ID_FIELD = "fork_chat_id_v6"
|
|
49
|
+
_NAME_FIELD = "fork_name_v6"
|
|
50
|
+
_QUERY_FIELD = "fork_query_v6"
|
|
51
|
+
_PAGE_FIELD = "fork_page_v6"
|
|
52
|
+
_LANDING_FIELD = "fork_landing_v6"
|
|
53
|
+
_SOURCE_ACTION_FIELD = "fork_source_action_v6"
|
|
54
|
+
_DRAFT_FIELDS = {_MODE_FIELD, _TARGET_FIELD, _ID_FIELD, _NAME_FIELD, _QUERY_FIELD,
|
|
55
|
+
_LANDING_FIELD, _SOURCE_ACTION_FIELD}
|
|
52
56
|
_SOURCE_FIELDS = {
|
|
53
57
|
"binding_id", "native_thread_id", "settings_revision", "context_revision",
|
|
54
58
|
"feedback_revision", "project_revision",
|
|
@@ -57,6 +61,8 @@ _STATE_FIELDS = {"kind", "v", "scope", "source", "action"}
|
|
|
57
61
|
_ACTION_FIELDS = {
|
|
58
62
|
"create": {"nonce"}, "search": {"nonce"},
|
|
59
63
|
"page": {"nonce", "snapshot"},
|
|
64
|
+
"confirm": {"nonce", "draft"},
|
|
65
|
+
"back": {"nonce", "draft"},
|
|
60
66
|
}
|
|
61
67
|
_ID = re.compile(r"[A-Za-z0-9][A-Za-z0-9._-]{0,191}")
|
|
62
68
|
_BINDING_ID = re.compile(r"[A-Za-z0-9][A-Za-z0-9-]{0,127}")
|
|
@@ -89,6 +95,8 @@ class ForkCardAction:
|
|
|
89
95
|
search_requested: bool = False
|
|
90
96
|
chat_snapshot: ChatSearchSnapshot | None = None
|
|
91
97
|
chat_page: int = 0
|
|
98
|
+
landing: str = "topic"
|
|
99
|
+
source_action: str = "keep"
|
|
92
100
|
|
|
93
101
|
|
|
94
102
|
class ForkFormValidationError(CardActionError):
|
|
@@ -151,6 +159,11 @@ def _validate_state(scope: FeishuScope, state: Any) -> tuple[ForkSource, ChatSea
|
|
|
151
159
|
raise CardActionError("分支卡片与来源会话位置不一致。")
|
|
152
160
|
if not _valid_callback_nonce(state["nonce"]):
|
|
153
161
|
raise CardActionError("分支卡片动作无效,请重新发送 /fork。")
|
|
162
|
+
if action in {"confirm", "back"} and (
|
|
163
|
+
not isinstance(state["draft"], Mapping)
|
|
164
|
+
or set(state["draft"]) != _DRAFT_FIELDS
|
|
165
|
+
):
|
|
166
|
+
raise CardActionError("分支确认草稿无效,请重新发送 /fork。")
|
|
154
167
|
snapshot = decode_chat_snapshot(state["snapshot"]) if action == "page" else None
|
|
155
168
|
return _source(state["source"]), snapshot
|
|
156
169
|
|
|
@@ -158,7 +171,7 @@ def _validate_state(scope: FeishuScope, state: Any) -> tuple[ForkSource, ChatSea
|
|
|
158
171
|
def is_fork_card_action(value: Any, form: Any = None) -> bool:
|
|
159
172
|
return (isinstance(value, Mapping) and value.get("kind") == "netizen_fork") or (
|
|
160
173
|
isinstance(form, Mapping) and any(
|
|
161
|
-
name in
|
|
174
|
+
name in _DRAFT_FIELDS | {_PAGE_FIELD}
|
|
162
175
|
for name in form
|
|
163
176
|
)
|
|
164
177
|
)
|
|
@@ -167,13 +180,22 @@ def is_fork_card_action(value: Any, form: Any = None) -> bool:
|
|
|
167
180
|
def decode_fork_action(scope: FeishuScope, value: Any, form: Any = None) -> ForkCardAction:
|
|
168
181
|
"""Read public callback value and form_value; callers verify card Scope."""
|
|
169
182
|
source, snapshot = _validate_state(scope, value)
|
|
183
|
+
action = value["action"]
|
|
184
|
+
if action in {"confirm", "back"}:
|
|
185
|
+
if form is not None and form != {}:
|
|
186
|
+
raise CardActionError("只读分支确认卡不能提交表单字段。")
|
|
187
|
+
form = value["draft"]
|
|
170
188
|
if not isinstance(form, Mapping) or _MODE_FIELD not in form or (
|
|
171
|
-
set(form) -
|
|
189
|
+
set(form) - (_DRAFT_FIELDS | {_PAGE_FIELD})
|
|
172
190
|
):
|
|
173
191
|
raise CardActionError("分支表单缺少字段或混入其他操作。")
|
|
174
192
|
target_draft = read_chat_target(form, mode_field=_MODE_FIELD,
|
|
175
193
|
choice_field=_TARGET_FIELD, id_field=_ID_FIELD)
|
|
176
|
-
|
|
194
|
+
landing, source_action = form.get(_LANDING_FIELD), form.get(_SOURCE_ACTION_FIELD)
|
|
195
|
+
if not isinstance(landing, str) or landing not in {"topic", "main"}:
|
|
196
|
+
raise CardActionError("请选择有效的分支落点。")
|
|
197
|
+
if not isinstance(source_action, str) or source_action not in {"keep", "archive"}:
|
|
198
|
+
raise CardActionError("请选择有效的来源会话处理方式。")
|
|
177
199
|
name_input = form.get(_NAME_FIELD, "")
|
|
178
200
|
name = _name("" if name_input is None else name_input, create=False)
|
|
179
201
|
query_input = form.get(_QUERY_FIELD, "")
|
|
@@ -184,8 +206,15 @@ def decode_fork_action(scope: FeishuScope, value: Any, form: Any = None) -> Fork
|
|
|
184
206
|
"results", source, name=name, query=query,
|
|
185
207
|
target_mode=target_draft.mode, target_choice=target_draft.choice,
|
|
186
208
|
target_id=target_draft.chat_id, query_input=query,
|
|
209
|
+
landing=landing, source_action=source_action,
|
|
187
210
|
)
|
|
188
|
-
if action == "
|
|
211
|
+
if action == "back":
|
|
212
|
+
return ForkCardAction(
|
|
213
|
+
"back", source, name=name, query=query, target_mode=target_draft.mode,
|
|
214
|
+
target_choice=target_draft.choice, target_id=target_draft.chat_id,
|
|
215
|
+
query_input=query, landing=landing, source_action=source_action,
|
|
216
|
+
)
|
|
217
|
+
if action in {"create", "confirm"}:
|
|
189
218
|
try:
|
|
190
219
|
target = resolve_chat_target(target_draft, current_chat_id=scope.chat_id,
|
|
191
220
|
choice_error="请选择创建位置。")
|
|
@@ -193,9 +222,10 @@ def decode_fork_action(scope: FeishuScope, value: Any, form: Any = None) -> Fork
|
|
|
193
222
|
except CardActionError as error:
|
|
194
223
|
raise ForkFormValidationError(str(error), draft) from None
|
|
195
224
|
return ForkCardAction(
|
|
196
|
-
|
|
225
|
+
action, source, target_chat_id=target, name=normalized_name, query=query,
|
|
197
226
|
target_mode=target_draft.mode, target_choice=target_draft.choice,
|
|
198
227
|
target_id=target_draft.chat_id, query_input=query,
|
|
228
|
+
landing=landing, source_action=source_action,
|
|
199
229
|
)
|
|
200
230
|
# Only Search applies edited text. Paging always follows its rendered
|
|
201
231
|
# result snapshot and retains the independent draft for a later search.
|
|
@@ -206,6 +236,7 @@ def decode_fork_action(scope: FeishuScope, value: Any, form: Any = None) -> Fork
|
|
|
206
236
|
"results", source, name=name, query=applied_query, target_mode=target_draft.mode,
|
|
207
237
|
target_choice=selected, target_id=target_draft.chat_id, query_input=query,
|
|
208
238
|
search_requested=action == "search", chat_snapshot=snapshot, chat_page=page,
|
|
239
|
+
landing=landing, source_action=source_action,
|
|
209
240
|
)
|
|
210
241
|
|
|
211
242
|
|
|
@@ -216,11 +247,14 @@ def _button(scope: FeishuScope, source: ForkSource, label: str, action: str, **e
|
|
|
216
247
|
}
|
|
217
248
|
value["nonce"] = _new_callback_nonce()
|
|
218
249
|
_validate_state(scope, value)
|
|
219
|
-
|
|
220
|
-
"tag": "button", "name": f"fork_{action}
|
|
221
|
-
"type": "primary_filled" if action
|
|
222
|
-
"
|
|
250
|
+
button = {
|
|
251
|
+
"tag": "button", "name": f"fork_{action}_v6", "text": _plain_text(label),
|
|
252
|
+
"type": "primary_filled" if action in {"create", "confirm"} else "default", "width": "fill",
|
|
253
|
+
"behaviors": [{"type": "callback", "value": value}],
|
|
223
254
|
}
|
|
255
|
+
if action not in {"confirm", "back"}:
|
|
256
|
+
button["form_action_type"] = "submit"
|
|
257
|
+
return button
|
|
224
258
|
|
|
225
259
|
|
|
226
260
|
def _label(value: str, limit: int = 80) -> str:
|
|
@@ -236,12 +270,46 @@ def _element_count(value: Any) -> int:
|
|
|
236
270
|
return 0
|
|
237
271
|
|
|
238
272
|
|
|
273
|
+
def _checked_card(card: dict[str, Any]) -> OutboundCard:
|
|
274
|
+
if len(json.dumps(card, ensure_ascii=False).encode("utf-8")) > TURN_FILE_CARD_JSON_LIMIT_BYTES or (
|
|
275
|
+
_element_count(card) > _CARD_ELEMENT_LIMIT
|
|
276
|
+
):
|
|
277
|
+
raise ForkCardCapacityError("完整群聊结果超过分支卡片容量,请缩小群名关键词范围后重新查找。")
|
|
278
|
+
return OutboundCard(card=card)
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
def fork_confirmation_card(scope: FeishuScope, intent: ForkCardAction, *,
|
|
282
|
+
target_title: str, current_title: str, current_short_id: str,
|
|
283
|
+
current_status: str) -> OutboundCard:
|
|
284
|
+
"""Read-only replacement consent; draft lives only in callback values."""
|
|
285
|
+
draft = {
|
|
286
|
+
_MODE_FIELD: intent.target_mode, _TARGET_FIELD: intent.target_choice,
|
|
287
|
+
_ID_FIELD: intent.target_id, _NAME_FIELD: intent.name, _QUERY_FIELD: intent.query_input or "",
|
|
288
|
+
_LANDING_FIELD: intent.landing, _SOURCE_ACTION_FIELD: intent.source_action,
|
|
289
|
+
}
|
|
290
|
+
builder = _builder("确认创建主线分支", _label(intent.name or "", 120))
|
|
291
|
+
builder.raw(_plain(f"目标聊天:{_label(target_title, 120)}\n聊天 ID:{intent.target_chat_id}\n"
|
|
292
|
+
f"当前会话:{_label(current_title, 120)} · {current_short_id}\n"
|
|
293
|
+
f"运行状态:{_label(current_status, 120)}"))
|
|
294
|
+
builder.raw(_notice(
|
|
295
|
+
"确认将替换提交时该主线的当前会话(如有)。\n"
|
|
296
|
+
"原会话保留在 /sessions,可随时切回。\n"
|
|
297
|
+
"若原会话正在等待提问回答,需要切回后作答。\n"
|
|
298
|
+
"原会话如有定时计划,这些定时计划会自动暂停。"
|
|
299
|
+
))
|
|
300
|
+
for label, action in (("确认创建", "confirm"), ("返回修改", "back")):
|
|
301
|
+
builder.raw(_button(scope, intent.source, label, action,
|
|
302
|
+
draft=draft))
|
|
303
|
+
return OutboundCard(card=builder.to_dict())
|
|
304
|
+
|
|
305
|
+
|
|
239
306
|
def fork_form_card(scope: FeishuScope, source: ForkSource, *, source_title: str,
|
|
240
307
|
project_alias: str, chats: Sequence[AvailableChat] = (),
|
|
241
308
|
avatar_keys: Mapping[str, str] | None = None,
|
|
242
309
|
name: str | None = None, target_chat_id: str | None = None,
|
|
243
310
|
target_mode: str | None = None, target_choice: str | None = None,
|
|
244
311
|
target_id: str = "",
|
|
312
|
+
landing: str = "topic", source_action: str = "keep",
|
|
245
313
|
query: str = "",
|
|
246
314
|
query_input: str | None = None,
|
|
247
315
|
chat_snapshot: ChatSearchSnapshot | None = None, chat_page: int = 0,
|
|
@@ -293,23 +361,29 @@ def fork_form_card(scope: FeishuScope, source: ForkSource, *, source_title: str,
|
|
|
293
361
|
{"tag": "input", "name": _NAME_FIELD, "width": "fill",
|
|
294
362
|
"label": _plain_text("分支名称"), "default_value": draft_name,
|
|
295
363
|
"max_length": MAX_THREAD_NAME_CHARS},
|
|
296
|
-
{"tag": "markdown", "content": "**分支位置**\n<font color='grey'
|
|
364
|
+
{"tag": "markdown", "content": "**分支位置**\n<font color='grey'>选择分支所在聊天</font>"},
|
|
297
365
|
*chat_target_elements(
|
|
298
366
|
mode_field=_MODE_FIELD, choice_field=_TARGET_FIELD, id_field=_ID_FIELD,
|
|
299
367
|
draft=ChatTargetDraft(target.mode, selection, target.chat_id), options=page_options,
|
|
300
368
|
search=search, group_details=True,
|
|
301
369
|
),
|
|
370
|
+
_plain("落点"),
|
|
371
|
+
{"tag": "select_static", "name": _LANDING_FIELD, "width": "fill",
|
|
372
|
+
"required": True, "initial_option": landing,
|
|
373
|
+
"options": [{"text": _plain_text(label), "value": value}
|
|
374
|
+
for label, value in (("新话题", "topic"), ("主线", "main"))]},
|
|
375
|
+
_plain("创建后"),
|
|
376
|
+
{"tag": "select_static", "name": _SOURCE_ACTION_FIELD, "width": "fill",
|
|
377
|
+
"required": True, "initial_option": source_action,
|
|
378
|
+
"options": [{"text": _plain_text(label), "value": value}
|
|
379
|
+
for label, value in (("保留当前会话", "keep"), ("归档当前会话", "archive"))]},
|
|
302
380
|
_button(scope, source, "创建分支", "create"),
|
|
303
381
|
]
|
|
304
|
-
builder.raw({"tag": "form", "name": "
|
|
382
|
+
builder.raw({"tag": "form", "name": "fork_form_v6", "elements": fields})
|
|
305
383
|
card = builder.to_dict()
|
|
306
384
|
# Check the actual SDK serialization, including the single snapshot
|
|
307
385
|
# callback and avatar keys; never truncate a complete search result.
|
|
308
|
-
|
|
309
|
-
_element_count(card) > _CARD_ELEMENT_LIMIT
|
|
310
|
-
):
|
|
311
|
-
raise ForkCardCapacityError("完整群聊结果超过分支卡片容量,请缩小群名关键词范围后重新查找。")
|
|
312
|
-
return OutboundCard(card=card)
|
|
386
|
+
return _checked_card(card)
|
|
313
387
|
|
|
314
388
|
card = render(chat_page, target.choice)
|
|
315
389
|
if chat_snapshot is not None:
|
|
@@ -326,27 +400,37 @@ def fork_status_card(*, name: str, source_title: str, project_alias: str,
|
|
|
326
400
|
status: Literal["creating", "success", "failed"],
|
|
327
401
|
topic_url: str | None = None, detail: str | None = None,
|
|
328
402
|
native_thread_id: str | None = None,
|
|
329
|
-
binding_saved: bool = False
|
|
403
|
+
binding_saved: bool = False, landing: str = "topic",
|
|
404
|
+
replaced_session: str | None = None, source_action: str = "keep",
|
|
405
|
+
archive_result: str | None = None) -> OutboundCard:
|
|
330
406
|
"""Status pages cannot resubmit; only the source receipt gets a topic URL."""
|
|
331
407
|
titles = {"creating": "会话分支创建中", "success": "会话分支已创建", "failed": "会话分支创建未完成"}
|
|
332
408
|
title, subtitle = (name, titles[status]) if status == "success" else (titles[status], name)
|
|
333
409
|
builder = _builder(title, subtitle, template="red" if status == "failed" else "blue")
|
|
334
410
|
builder.raw(_plain(f"来源:{source_title}\nProject:{project_alias}"))
|
|
335
411
|
if status == "creating":
|
|
412
|
+
if landing == "main":
|
|
413
|
+
builder.raw(_plain("正在目标聊天主线创建分支。"))
|
|
336
414
|
builder.raw(_notice("请等待创建完成后再发送消息。"))
|
|
337
415
|
elif status == "success":
|
|
338
|
-
location = "
|
|
339
|
-
|
|
416
|
+
location = ("目标聊天主线" if topic_url else "本聊天主线") if landing == "main" else (
|
|
417
|
+
"新话题" if topic_url else "本话题")
|
|
418
|
+
source_note = ";来源会话保持不变。" if source_action == "keep" else "。"
|
|
419
|
+
builder.raw(_plain(f"在{location}中发送消息即可继续。两个会话独立管理,共享项目文件{source_note}"))
|
|
340
420
|
if topic_url:
|
|
341
|
-
builder.raw({"tag": "button", "text": _plain_text("进入新话题"), "type": "primary_filled",
|
|
421
|
+
builder.raw({"tag": "button", "text": _plain_text("进入聊天主线" if landing == "main" else "进入新话题"), "type": "primary_filled",
|
|
342
422
|
"behaviors": [{"type": "open_url", "default_url": topic_url}]})
|
|
343
423
|
elif native_thread_id is not None:
|
|
344
424
|
builder.raw(_notice(
|
|
345
425
|
"Codex 分支和本地会话已保存,但创建交接未完成。请先核查,不要重新创建。"
|
|
346
|
-
if binding_saved else "Codex
|
|
426
|
+
if binding_saved else f"Codex 分支已创建,但{'主线' if landing == 'main' else '新话题'}会话绑定未完成或结果未确认。请先人工核查,不要直接重试。",
|
|
347
427
|
error=True,
|
|
348
428
|
))
|
|
349
429
|
builder.raw(_plain(f"Codex 会话:{native_thread_id}"))
|
|
430
|
+
if landing == "main" and replaced_session and (status == "success" or binding_saved):
|
|
431
|
+
builder.raw(_plain(f"已替换当前会话:{replaced_session}。\n原会话保留,可通过 /sessions 切回。"))
|
|
350
432
|
if detail:
|
|
351
433
|
builder.raw(_notice(detail, error=status == "failed"))
|
|
434
|
+
if archive_result:
|
|
435
|
+
builder.raw(_notice(archive_result))
|
|
352
436
|
return OutboundCard(card=builder.to_dict())
|
|
@@ -16,6 +16,7 @@ from lark_channel import (
|
|
|
16
16
|
|
|
17
17
|
from .base import CHANNEL_LOGGER_NAME
|
|
18
18
|
from ..bindings import (
|
|
19
|
+
BindingNotFound,
|
|
19
20
|
ProjectConflict,
|
|
20
21
|
ThreadBinding,
|
|
21
22
|
)
|
|
@@ -29,11 +30,12 @@ from .messages import public_chat_kind as _public_chat_kind
|
|
|
29
30
|
from .topics import TopicPublishError, complete_fresh_topic, send_topic_message
|
|
30
31
|
from ..cards.chat_target import ChatSearchSnapshot
|
|
31
32
|
from ..cards.fork import (
|
|
32
|
-
ForkCardAction, ForkCardCapacityError, ForkFormValidationError, ForkSource, decode_fork_action,
|
|
33
|
+
ForkCardAction, ForkCardCapacityError, ForkFormValidationError, ForkSource, decode_fork_action,
|
|
34
|
+
fork_confirmation_card, fork_form_card, fork_status_card,
|
|
33
35
|
)
|
|
34
|
-
from ..feishu_links import topic_open_url
|
|
36
|
+
from ..feishu_links import chat_open_url, topic_open_url
|
|
35
37
|
from ..runtime.contracts import (
|
|
36
|
-
ThreadNotMaterialized,
|
|
38
|
+
RuntimeClosed, ThreadLifecycleError, ThreadLifecycleStateUnknown, ThreadNotMaterialized,
|
|
37
39
|
)
|
|
38
40
|
from ..domain import (
|
|
39
41
|
ControlIntent,
|
|
@@ -43,6 +45,7 @@ from ..domain import (
|
|
|
43
45
|
)
|
|
44
46
|
from ..error_messages import describe_error
|
|
45
47
|
from ..management.chat_directory import AvailableChat
|
|
48
|
+
from ..management.service import ExactBindingTarget
|
|
46
49
|
|
|
47
50
|
from .app_values import (
|
|
48
51
|
_CardReplyConversation,
|
|
@@ -86,6 +89,7 @@ class ForkChannel(SideChannel):
|
|
|
86
89
|
self, scope: FeishuScope, source: ForkSource, binding: ThreadBinding, *,
|
|
87
90
|
name: str | None = None, target_chat_id: str | None = None,
|
|
88
91
|
target_mode: str | None = None, target_choice: str | None = None, target_id: str = "",
|
|
92
|
+
landing: str = "topic", source_action: str = "keep",
|
|
89
93
|
query: str = "", notice: str | None = None,
|
|
90
94
|
query_input: str | None = None, searched: bool = False,
|
|
91
95
|
chat_snapshot: ChatSearchSnapshot | None = None, chat_page: int = 0,
|
|
@@ -114,6 +118,7 @@ class ForkChannel(SideChannel):
|
|
|
114
118
|
if chat_snapshot is None else chat_snapshot.avatar_keys),
|
|
115
119
|
name=name, target_chat_id=target_chat_id, query=query, query_input=query_input,
|
|
116
120
|
target_mode=target_mode, target_choice=target_choice, target_id=target_id,
|
|
121
|
+
landing=landing, source_action=source_action,
|
|
117
122
|
)
|
|
118
123
|
try:
|
|
119
124
|
return fork_form_card(
|
|
@@ -170,15 +175,16 @@ class ForkChannel(SideChannel):
|
|
|
170
175
|
except ForkFormValidationError as error:
|
|
171
176
|
request, notice = error.draft, str(error)
|
|
172
177
|
source = self._require_fork_source(scope, request.source)
|
|
173
|
-
if request.action
|
|
178
|
+
if request.action in {"results", "back"}:
|
|
174
179
|
card = await self._fork_form(
|
|
175
180
|
scope, request.source, source, name=request.name, target_chat_id=request.target_chat_id,
|
|
176
181
|
target_mode=request.target_mode, target_choice=request.target_choice, target_id=request.target_id,
|
|
177
182
|
query=request.query or "", notice=notice,
|
|
178
183
|
query_input=request.query_input, searched=request.search_requested,
|
|
179
184
|
chat_snapshot=request.chat_snapshot, chat_page=request.chat_page,
|
|
185
|
+
landing=request.landing, source_action=request.source_action,
|
|
180
186
|
)
|
|
181
|
-
elif request.action
|
|
187
|
+
elif request.action in {"create", "confirm"}:
|
|
182
188
|
await self._create_fork_from_card(
|
|
183
189
|
intent=request, scope=scope, source=source, source_title=await self._fork_source_title(source),
|
|
184
190
|
message_id=message_id, sender_id=sender_id,
|
|
@@ -203,8 +209,16 @@ class ForkChannel(SideChannel):
|
|
|
203
209
|
) -> None:
|
|
204
210
|
assert intent.target_chat_id is not None and intent.name is not None
|
|
205
211
|
target_chat_id = intent.target_chat_id
|
|
212
|
+
destination = None
|
|
206
213
|
try:
|
|
207
214
|
target = await self._management.validate_chat_target(target_chat_id)
|
|
215
|
+
if intent.landing == "main":
|
|
216
|
+
destination = FeishuScope(self._app_id, target_chat_id,
|
|
217
|
+
ScopeKind.DIRECT if target.chat_kind == "p2p" else ScopeKind.GROUP)
|
|
218
|
+
if destination.key == scope.key:
|
|
219
|
+
raise ChatTargetError("same_scope", "来源已在该聊天主线,请选择新话题或其他聊天。")
|
|
220
|
+
if target.topic_mode:
|
|
221
|
+
raise ChatTargetError("topic_mode", "话题群没有聊天主线,请选择新话题或其他聊天。")
|
|
208
222
|
except ChatTargetError as error:
|
|
209
223
|
# This is before any native or topic creation. Only this boundary
|
|
210
224
|
# can restore a submit button; unknown creation results must not.
|
|
@@ -213,21 +227,41 @@ class ForkChannel(SideChannel):
|
|
|
213
227
|
target_mode=intent.target_mode, target_choice=intent.target_choice, target_id=intent.target_id,
|
|
214
228
|
query=intent.query or "", notice=str(error),
|
|
215
229
|
query_input=intent.query_input,
|
|
230
|
+
landing=intent.landing, source_action=intent.source_action,
|
|
216
231
|
)
|
|
217
232
|
if not await self._safe_update_card(message_id, card):
|
|
218
233
|
raise CardActionError("目标校验未通过,表单恢复失败;本次未创建分支,请重新发送 /fork。") from error
|
|
219
234
|
return
|
|
235
|
+
if destination is not None:
|
|
236
|
+
current = self._bindings.active_binding(destination.key)
|
|
237
|
+
if current is not None and intent.action != "confirm":
|
|
238
|
+
current_title = await self._fork_source_title(current)
|
|
239
|
+
try:
|
|
240
|
+
async with asyncio.timeout(3):
|
|
241
|
+
projection = await self._management.binding_status_exact(current.id)
|
|
242
|
+
current_status = projection.primary_status or "状态暂不可读"
|
|
243
|
+
except Exception:
|
|
244
|
+
current_status = "状态暂不可读"
|
|
245
|
+
chat = await self._card_display_group(target_chat_id) if target.chat_kind == "group" else None
|
|
246
|
+
card = fork_confirmation_card(scope, intent, target_title=chat.name if chat else target_chat_id,
|
|
247
|
+
current_title=current_title, current_short_id=current.short_id, current_status=current_status)
|
|
248
|
+
if not await self._safe_update_card(message_id, card):
|
|
249
|
+
raise CardActionError("主线替换确认卡更新未确认;本次未创建分支,请重新发送 /fork。")
|
|
250
|
+
return
|
|
220
251
|
project = self._bindings.get_project(source.project_alias)
|
|
221
252
|
self._bindings.require_project_not_deleting(project.alias)
|
|
222
253
|
if not project.enabled:
|
|
223
254
|
raise ProjectConflict("Project 已停用,不能创建分支。")
|
|
224
255
|
if project.revision != intent.source.project_revision:
|
|
225
256
|
raise CardActionError("来源 Project 已变化,请重新发送 /fork。")
|
|
226
|
-
common = {"name": intent.name, "source_title": source_title, "project_alias": project.alias
|
|
257
|
+
common = {"name": intent.name, "source_title": source_title, "project_alias": project.alias,
|
|
258
|
+
"landing": intent.landing, "source_action": intent.source_action}
|
|
227
259
|
thread = root = binding = None
|
|
228
260
|
topic_url = None
|
|
229
261
|
status = "failed"
|
|
230
262
|
detail = None
|
|
263
|
+
previous_id = None
|
|
264
|
+
replaced_session = None
|
|
231
265
|
async with self._runtime.track_fork_creation(project.alias):
|
|
232
266
|
try:
|
|
233
267
|
await self._safe_update_card(message_id, fork_status_card(status="creating", **common))
|
|
@@ -246,28 +280,43 @@ class ForkChannel(SideChannel):
|
|
|
246
280
|
root = await send_topic_message(self._channel, target_chat_id,
|
|
247
281
|
fork_status_card(status="creating", **common),
|
|
248
282
|
SendOpts(receive_id_type="chat_id", uuid=hashlib.sha256(
|
|
249
|
-
("netizen-fork-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
283
|
+
(("netizen-fork-main:v1\0" if intent.landing == "main" else "netizen-fork-root:v1\0")
|
|
284
|
+
+ thread.id).encode()).hexdigest()[:32]))
|
|
285
|
+
if intent.landing == "main":
|
|
286
|
+
if root.thread_id is not None or root.parent_id is not None or root.root_id not in {None, root.message_id}:
|
|
287
|
+
raise TopicPublishError("飞书未确认消息发布到聊天主线,本次未绑定分支。", unknown=True)
|
|
288
|
+
assert destination is not None
|
|
289
|
+
origin = root
|
|
290
|
+
topic_url = chat_open_url(target_chat_id)
|
|
291
|
+
else:
|
|
292
|
+
origin = await complete_fresh_topic(
|
|
293
|
+
self._channel, root,
|
|
294
|
+
seed_content="分支创建结果请查看话题顶部卡片。创建成功后,可在本话题发送消息继续。",
|
|
295
|
+
seed_uuid=hashlib.sha256(("netizen-fork-seed:v1\0" + thread.id).encode()).hexdigest()[:32],
|
|
296
|
+
)
|
|
297
|
+
if origin.thread_id is None or (target_chat_id == scope.chat_id and origin.thread_id == scope.topic_id):
|
|
298
|
+
raise TopicPublishError("飞书未创建新的普通话题,本次未绑定分支。", unknown=True)
|
|
299
|
+
destination = FeishuScope(self._app_id, target_chat_id, ScopeKind.TOPIC, origin.thread_id)
|
|
300
|
+
topic_url = topic_open_url(target_chat_id, origin.thread_id)
|
|
259
301
|
anchor = await self._resolve_context_anchor(destination, origin.message_id) if (
|
|
260
302
|
target.chat_kind == "group" and source.message_context_mode is MentionContextMode.CATCH_UP
|
|
261
303
|
) else None
|
|
262
304
|
async with self._scope_coordinator.hold(destination.key):
|
|
263
305
|
self._runtime.require_fork_creation_open(project.alias)
|
|
264
|
-
|
|
306
|
+
created = self._bindings.create_fork_binding(
|
|
265
307
|
scope=destination, source=source, native_thread_id=thread.id,
|
|
266
308
|
root_message_id=root.message_id, creator_id=sender_id,
|
|
267
309
|
expected_project_revision=project.revision, context_anchor=anchor,
|
|
268
310
|
target_chat_kind=target.chat_kind,
|
|
269
311
|
)
|
|
270
|
-
|
|
312
|
+
binding, previous_id = created.binding, created.previous_active_binding_id
|
|
313
|
+
try:
|
|
314
|
+
named = await self._runtime.adopt_fork(binding, thread, name=intent.name)
|
|
315
|
+
finally:
|
|
316
|
+
if intent.landing == "main":
|
|
317
|
+
# The persisted pointer already changed, as with /new;
|
|
318
|
+
# reconcile subscriptions even if adoption failed.
|
|
319
|
+
await self._runtime.binding_pointer_changed(previous_id, binding.id)
|
|
271
320
|
status = "success"
|
|
272
321
|
if not named:
|
|
273
322
|
detail = "会话已创建;Codex 名称更新未确认,可稍后使用 /rename 修改。"
|
|
@@ -281,17 +330,49 @@ class ForkChannel(SideChannel):
|
|
|
281
330
|
finally:
|
|
282
331
|
if thread is not None and binding is None:
|
|
283
332
|
await self._runtime.release_unbound_fork(thread)
|
|
333
|
+
if previous_id is not None:
|
|
334
|
+
replaced_session = previous_id[:8]
|
|
335
|
+
try:
|
|
336
|
+
previous = self._bindings.get(previous_id)
|
|
337
|
+
replaced_session = f"{await self._fork_source_title(previous)} · {previous.short_id}"
|
|
338
|
+
except Exception:
|
|
339
|
+
pass
|
|
284
340
|
result = dict(status=status, detail=detail,
|
|
285
341
|
native_thread_id=None if thread is None else thread.id,
|
|
286
|
-
binding_saved=binding is not None, **common)
|
|
342
|
+
binding_saved=binding is not None, replaced_session=replaced_session, **common)
|
|
287
343
|
if root is not None:
|
|
288
344
|
await self._safe_update_card(root.message_id, fork_status_card(**result))
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
345
|
+
if status != "success" or intent.source_action != "archive":
|
|
346
|
+
await self._deliver_fork_receipt(scope, message_id, fork_status_card(topic_url=topic_url, **result))
|
|
347
|
+
return
|
|
348
|
+
# Source archive has its own lifecycle admission and shutdown semantics;
|
|
349
|
+
# it must not extend fork ownership or recheck the source's idle snapshot.
|
|
350
|
+
await self._safe_update_card(message_id, fork_status_card(
|
|
351
|
+
topic_url=topic_url, archive_result="正在归档来源会话,完成后更新本卡片。", **result,
|
|
352
|
+
))
|
|
353
|
+
archive_result = None
|
|
354
|
+
try:
|
|
355
|
+
await self._management.archive_exact_binding(target=ExactBindingTarget(
|
|
356
|
+
scope_key=source.scope_key, binding_id=source.id, expected_active_binding_id=None,
|
|
357
|
+
))
|
|
358
|
+
archive_result = "来源会话已归档,可在 /sessions archived 中恢复。"
|
|
359
|
+
except ThreadLifecycleStateUnknown as error:
|
|
360
|
+
archive_result = "来源会话归档结果未知;分支已保留。" + describe_error(error)
|
|
361
|
+
except ThreadLifecycleError as error:
|
|
362
|
+
archive_result = "来源会话归档未完成;分支已保留。" + describe_error(error)
|
|
363
|
+
except (RuntimeClosed, BindingNotFound) as error:
|
|
364
|
+
archive_result = "来源会话本次未归档;分支已保留。" + describe_error(error)
|
|
365
|
+
except Exception as error:
|
|
366
|
+
archive_result = "来源会话归档结果未知;分支已保留。" + describe_error(error)
|
|
367
|
+
card = fork_status_card(topic_url=topic_url, archive_result=archive_result, **result)
|
|
368
|
+
await self._deliver_fork_receipt(scope, message_id, card)
|
|
369
|
+
|
|
370
|
+
async def _deliver_fork_receipt(self, scope: FeishuScope, message_id: str, card: OutboundCard) -> None:
|
|
371
|
+
if not await self._safe_update_card(message_id, card):
|
|
372
|
+
reply_target = _CardReplyTarget(message_id, message_id, scope.chat_id, _CardReplyConversation(scope.topic_id))
|
|
373
|
+
try:
|
|
374
|
+
await self._reply(reply_target, card)
|
|
375
|
+
except Exception:
|
|
376
|
+
# Delivery cannot undo a known Binding or replace its
|
|
377
|
+
# success/partial-result notice with a generic error.
|
|
378
|
+
logger.warning("fork result receipt was not delivered", exc_info=True)
|