launchway 0.2.75__tar.gz → 0.2.78__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.
- {launchway-0.2.75/launchway.egg-info → launchway-0.2.78}/PKG-INFO +4 -4
- {launchway-0.2.75 → launchway-0.2.78}/README.md +1 -1
- {launchway-0.2.75 → launchway-0.2.78}/launchway/__init__.py +1 -1
- {launchway-0.2.75 → launchway-0.2.78}/launchway/agent_bootstrap.py +21 -55
- {launchway-0.2.75 → launchway-0.2.78}/launchway/api_client.py +14 -9
- launchway-0.2.78/launchway/apply_url_resolver.py +776 -0
- {launchway-0.2.75 → launchway-0.2.78}/launchway/cli/agent.py +29 -12
- {launchway-0.2.75 → launchway-0.2.78}/launchway/cli/mixins/apply.py +825 -158
- {launchway-0.2.75 → launchway-0.2.78}/launchway/cli/mixins/continuous.py +235 -24
- {launchway-0.2.75 → launchway-0.2.78}/launchway/cli/mixins/history.py +29 -0
- {launchway-0.2.75 → launchway-0.2.78}/launchway/cli/mixins/job_search.py +227 -219
- {launchway-0.2.75 → launchway-0.2.78}/launchway/cli/mixins/profile.py +62 -9
- {launchway-0.2.75 → launchway-0.2.78}/launchway/cli/mixins/settings.py +18 -71
- {launchway-0.2.75 → launchway-0.2.78}/launchway/cli/mixins/tailoring.py +134 -108
- {launchway-0.2.75 → launchway-0.2.78}/launchway/config.py +18 -19
- launchway-0.2.78/launchway/encrypted_agents/__init__.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/agent_profile_service.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/bullet_generation/__init__.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/bullet_generation/project_bullet_generator.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/__init__.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/action_recorder.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/brains/__init__.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/brains/assist_messages.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/brains/gemini_button_brain.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/brains/gemini_field_mapper.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/brains/gemini_page_analyzer.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/custom_exceptions.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/detectors/__init__.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/detectors/account_creation_detector.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/detectors/application_form_detector.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/detectors/apply_detector.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/detectors/auth_page_detector.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/detectors/next_button_detector.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/detectors/popup_detector.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/detectors/required_field_detector.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/detectors/section_detector.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/detectors/sensitive_field_detector.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/detectors/submit_detector.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/detectors/verification_detector.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/exceptions/__init__.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/exceptions/field_exceptions.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/executors/__init__.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/executors/account_creation_handler.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/executors/ats_dropdown_handlers_v2.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/executors/click_executor.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/executors/cmp_consent.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/executors/deterministic_field_mapper.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/executors/dom_pattern_mapper.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/executors/dom_pattern_recorder.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/executors/field_interactor_v2.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/executors/generic_form_filler_v2_enhanced.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/executors/human_behavior.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/executors/iframe_helper.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/executors/intelligent_dropdown_selector.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/executors/learned_patterns_mapper.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/executors/popup_executor.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/executors/question_extractor.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/executors/section_filler.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/executors/semantic_field_mapper.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/human_fill_tracker.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/pattern_recorder.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/router/__init__.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/router/state_machine.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/services/__init__.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/services/company_credentials_service.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/session/__init__.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/session/session_manager.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/state/__init__.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/state/field_completion_tracker.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/user_override_profiler.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/user_pattern_recorder.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/utils/__init__.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/utils/google_docs_converter.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/validators/__init__.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/validators/field_value_validator.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/components/validators/nav_validator.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/cover_letter_tailoring.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/fill_debug_reporter.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/gemini_compat.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/gemini_key_manager.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/gemini_prompt_response_debug.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/gemini_query_optimizer.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/gemini_rate_limiter.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/hidden_browser_manager.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/improved_char_calc.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/job_api_adapters.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/job_application_agent.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/job_application_agent_debug_prompts.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/job_relevance_scorer.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/jobspy_adapter.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/latex_tailoring_agent.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/multi_source_job_discovery_agent.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/persistent_browser_manager.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/project_selection/__init__.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/project_selection/relevance_engine.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/proxy_manager.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/resume_keyword_extractor.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/resume_tailoring_agent.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/space_borrowing.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/systematic_tailoring_complete.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/validation/__init__.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/validation/hallucination_detector.enc +1 -0
- launchway-0.2.78/launchway/encrypted_agents/validation/semantic_validator.enc +1 -0
- launchway-0.2.78/launchway/encrypted_support/credentials.json.enc +1 -0
- launchway-0.2.78/launchway/privacy.py +63 -0
- {launchway-0.2.75 → launchway-0.2.78}/launchway/session.py +4 -0
- {launchway-0.2.75 → launchway-0.2.78/launchway.egg-info}/PKG-INFO +4 -4
- {launchway-0.2.75 → launchway-0.2.78}/launchway.egg-info/SOURCES.txt +5 -0
- {launchway-0.2.75 → launchway-0.2.78}/pyproject.toml +7 -3
- launchway-0.2.75/launchway/encrypted_agents/__init__.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/agent_profile_service.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/bullet_generation/__init__.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/bullet_generation/project_bullet_generator.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/__init__.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/action_recorder.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/brains/__init__.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/brains/gemini_button_brain.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/brains/gemini_field_mapper.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/brains/gemini_page_analyzer.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/custom_exceptions.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/detectors/__init__.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/detectors/account_creation_detector.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/detectors/application_form_detector.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/detectors/apply_detector.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/detectors/auth_page_detector.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/detectors/next_button_detector.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/detectors/popup_detector.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/detectors/required_field_detector.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/detectors/section_detector.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/detectors/sensitive_field_detector.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/detectors/submit_detector.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/exceptions/__init__.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/exceptions/field_exceptions.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/executors/__init__.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/executors/account_creation_handler.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/executors/ats_dropdown_handlers_v2.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/executors/click_executor.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/executors/cmp_consent.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/executors/deterministic_field_mapper.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/executors/dom_pattern_mapper.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/executors/dom_pattern_recorder.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/executors/field_interactor_v2.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/executors/generic_form_filler_v2_enhanced.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/executors/iframe_helper.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/executors/intelligent_dropdown_selector.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/executors/learned_patterns_mapper.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/executors/popup_executor.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/executors/question_extractor.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/executors/section_filler.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/executors/semantic_field_mapper.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/human_fill_tracker.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/pattern_recorder.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/router/__init__.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/router/state_machine.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/services/__init__.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/services/company_credentials_service.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/session/__init__.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/session/session_manager.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/state/__init__.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/state/field_completion_tracker.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/user_override_profiler.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/user_pattern_recorder.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/utils/__init__.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/utils/google_docs_converter.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/validators/__init__.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/validators/field_value_validator.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/components/validators/nav_validator.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/cover_letter_tailoring.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/fill_debug_reporter.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/gemini_compat.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/gemini_key_manager.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/gemini_prompt_response_debug.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/gemini_query_optimizer.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/gemini_rate_limiter.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/hidden_browser_manager.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/improved_char_calc.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/job_api_adapters.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/job_application_agent.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/job_application_agent_debug_prompts.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/job_relevance_scorer.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/jobspy_adapter.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/latex_tailoring_agent.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/multi_source_job_discovery_agent.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/persistent_browser_manager.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/project_selection/__init__.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/project_selection/relevance_engine.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/proxy_manager.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/resume_keyword_extractor.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/resume_tailoring_agent.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/space_borrowing.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/systematic_tailoring_complete.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/validation/__init__.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/validation/hallucination_detector.enc +0 -1
- launchway-0.2.75/launchway/encrypted_agents/validation/semantic_validator.enc +0 -1
- launchway-0.2.75/launchway/encrypted_support/credentials.json.enc +0 -1
- {launchway-0.2.75 → launchway-0.2.78}/LICENSE +0 -0
- {launchway-0.2.75 → launchway-0.2.78}/MANIFEST.in +0 -0
- {launchway-0.2.75 → launchway-0.2.78}/launchway/__main__.py +0 -0
- {launchway-0.2.75 → launchway-0.2.78}/launchway/cli/__init__.py +0 -0
- {launchway-0.2.75 → launchway-0.2.78}/launchway/cli/mixins/__init__.py +0 -0
- {launchway-0.2.75 → launchway-0.2.78}/launchway/cli/mixins/auth.py +0 -0
- {launchway-0.2.75 → launchway-0.2.78}/launchway/cli/mixins/browser_setup.py +0 -0
- {launchway-0.2.75 → launchway-0.2.78}/launchway/cli/utils.py +0 -0
- {launchway-0.2.75 → launchway-0.2.78}/launchway/encrypted_agents/key_fingerprint.txt +0 -0
- {launchway-0.2.75 → launchway-0.2.78}/launchway/postinstall.py +0 -0
- {launchway-0.2.75 → launchway-0.2.78}/launchway.egg-info/dependency_links.txt +0 -0
- {launchway-0.2.75 → launchway-0.2.78}/launchway.egg-info/entry_points.txt +0 -0
- {launchway-0.2.75 → launchway-0.2.78}/launchway.egg-info/requires.txt +0 -0
- {launchway-0.2.75 → launchway-0.2.78}/launchway.egg-info/top_level.txt +0 -0
- {launchway-0.2.75 → launchway-0.2.78}/setup.cfg +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: launchway
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.78
|
|
4
4
|
Summary: AI-powered job application automation - tailor resumes, find jobs, apply autonomously.
|
|
5
5
|
Author-email: Launchway <noreply@tailor-mycareer.online>
|
|
6
6
|
License-Expression: MIT
|
|
7
7
|
Project-URL: Homepage, https://launchway.app
|
|
8
8
|
Project-URL: Documentation, https://launchway.app/docs
|
|
9
|
-
Project-URL: Repository, https://github.com/
|
|
10
|
-
Project-URL: Bug Tracker, https://github.com/
|
|
9
|
+
Project-URL: Repository, https://github.com/protocorn/job_application_agent
|
|
10
|
+
Project-URL: Bug Tracker, https://github.com/protocorn/job_application_agent/issues
|
|
11
11
|
Keywords: job-search,resume,automation,cli,ai,playwright
|
|
12
12
|
Classifier: Development Status :: 3 - Alpha
|
|
13
13
|
Classifier: Environment :: Console
|
|
@@ -124,7 +124,7 @@ Launchway works **out of the box with no API key**. On first launch you will be
|
|
|
124
124
|
3. Skip for now - decide later
|
|
125
125
|
```
|
|
126
126
|
|
|
127
|
-
**Option 1 (default):** Launchway's built-in AI handles
|
|
127
|
+
**Option 1 (default):** Launchway's built-in AI handles search, tailoring, and auto-apply. No key is stored on your computer. Auto-apply sends form questions to Launchway's server, which calls Gemini and returns the answers.
|
|
128
128
|
|
|
129
129
|
**Option 2:** Bring your own free [Google Gemini API key](https://aistudio.google.com).
|
|
130
130
|
Useful for power users who want full control over their own AI quota.
|
|
@@ -53,7 +53,7 @@ Launchway works **out of the box with no API key**. On first launch you will be
|
|
|
53
53
|
3. Skip for now - decide later
|
|
54
54
|
```
|
|
55
55
|
|
|
56
|
-
**Option 1 (default):** Launchway's built-in AI handles
|
|
56
|
+
**Option 1 (default):** Launchway's built-in AI handles search, tailoring, and auto-apply. No key is stored on your computer. Auto-apply sends form questions to Launchway's server, which calls Gemini and returns the answers.
|
|
57
57
|
|
|
58
58
|
**Option 2:** Bring your own free [Google Gemini API key](https://aistudio.google.com).
|
|
59
59
|
Useful for power users who want full control over their own AI quota.
|
|
@@ -67,19 +67,20 @@ def _apply_env_defaults():
|
|
|
67
67
|
if not os.getenv(key):
|
|
68
68
|
os.environ[key] = default_value
|
|
69
69
|
|
|
70
|
-
#
|
|
71
|
-
#
|
|
70
|
+
# Drop any shared Gemini key saved by older CLI builds. Only a key the
|
|
71
|
+
# user put in their own environment may be used.
|
|
72
|
+
_discard_cached_shared_gemini_key()
|
|
73
|
+
|
|
72
74
|
existing_gemini_key = os.getenv("GOOGLE_API_KEY") or os.getenv("GEMINI_API_KEY")
|
|
73
75
|
if existing_gemini_key:
|
|
74
76
|
_set_gemini_env(existing_gemini_key, source="user")
|
|
75
77
|
return
|
|
76
78
|
|
|
77
|
-
#
|
|
78
|
-
#
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
logger.debug("Restored Gemini API key env vars from local cache")
|
|
79
|
+
# Shared AI stays on the server. Auto-apply calls POST /api/cli/gemini
|
|
80
|
+
# with the saved login instead of embedding the key in this process.
|
|
81
|
+
logger.info(
|
|
82
|
+
"No local Gemini key. Auto-apply will use the account AI Engine through the Launchway server."
|
|
83
|
+
)
|
|
83
84
|
|
|
84
85
|
|
|
85
86
|
# ── Constants ────────────────────────────────────────────────────────────────
|
|
@@ -88,7 +89,6 @@ _KEY_CACHE_PATH = Path.home() / ".launchway" / ".rkey"
|
|
|
88
89
|
_GEMINI_KEY_CACHE = Path.home() / ".launchway" / ".gemini_key"
|
|
89
90
|
_PERSISTENT_MODEL_CACHE = Path.home() / ".launchway" / ".model_cache"
|
|
90
91
|
_KEY_MAX_AGE_SEC = 24 * 3600 # refresh key every 24 hours
|
|
91
|
-
_GEMINI_KEY_MAX_AGE_SEC = 3600 # refresh shared AI key more often
|
|
92
92
|
_ENC_ROOT = Path(__file__).parent / "encrypted_agents"
|
|
93
93
|
_KEY_FINGERPRINT_FILE = _ENC_ROOT / "key_fingerprint.txt"
|
|
94
94
|
|
|
@@ -100,10 +100,8 @@ _bootstrap_diag: dict = {
|
|
|
100
100
|
"loader_mode": "disk_decrypt",
|
|
101
101
|
"model_cache_mode": "none", # symlink|copy_sync|none
|
|
102
102
|
"model_cache_path": "",
|
|
103
|
-
"bundle_gemini_key": "",
|
|
104
103
|
"gemini_key_source": "none",
|
|
105
|
-
"
|
|
106
|
-
"effective_gemini_api_key": "",
|
|
104
|
+
"user_gemini_key_configured": False,
|
|
107
105
|
}
|
|
108
106
|
|
|
109
107
|
_import_finder = None
|
|
@@ -244,29 +242,14 @@ def _save_key(key_bytes: bytes) -> None:
|
|
|
244
242
|
pass
|
|
245
243
|
|
|
246
244
|
|
|
247
|
-
def
|
|
248
|
-
"""
|
|
249
|
-
if not _GEMINI_KEY_CACHE.exists():
|
|
250
|
-
return None
|
|
251
|
-
val = _GEMINI_KEY_CACHE.read_text(encoding="utf-8").strip()
|
|
252
|
-
return val if val else None
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
def _cached_gemini_key_is_stale() -> bool:
|
|
256
|
-
"""True when the shared Gemini key should be refreshed from the server."""
|
|
257
|
-
if not _GEMINI_KEY_CACHE.exists():
|
|
258
|
-
return True
|
|
259
|
-
return time.time() - _GEMINI_KEY_CACHE.stat().st_mtime > _GEMINI_KEY_MAX_AGE_SEC
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
def _save_gemini_key(key: str) -> None:
|
|
263
|
-
_GEMINI_KEY_CACHE.parent.mkdir(parents=True, exist_ok=True)
|
|
264
|
-
_GEMINI_KEY_CACHE.write_text(key, encoding="utf-8")
|
|
245
|
+
def _discard_cached_shared_gemini_key() -> None:
|
|
246
|
+
"""Delete a shared Gemini key written by an older CLI. Leave user .env keys alone."""
|
|
265
247
|
try:
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
248
|
+
if _GEMINI_KEY_CACHE.exists():
|
|
249
|
+
_GEMINI_KEY_CACHE.unlink()
|
|
250
|
+
logger.info("Removed cached shared Gemini API key from ~/.launchway/.gemini_key")
|
|
251
|
+
except Exception as exc:
|
|
252
|
+
logger.warning(f"Could not delete cached shared Gemini key: {exc}")
|
|
270
253
|
|
|
271
254
|
|
|
272
255
|
def _prepare_runtime_model_cache(runtime_agents_root: Path) -> tuple[str, Optional[tuple[Path, Path]]]:
|
|
@@ -391,10 +374,7 @@ def bootstrap_agents(api_client) -> bool:
|
|
|
391
374
|
# We re-set them every bootstrap even on cache hit, because os.environ resets each process
|
|
392
375
|
_apply_env_defaults()
|
|
393
376
|
|
|
394
|
-
should_fetch_bundle =
|
|
395
|
-
not key_bytes
|
|
396
|
-
or (_gemini_env_source != "user" and _cached_gemini_key_is_stale())
|
|
397
|
-
)
|
|
377
|
+
should_fetch_bundle = not key_bytes
|
|
398
378
|
|
|
399
379
|
if should_fetch_bundle:
|
|
400
380
|
logger.debug("Fetching runtime bundle from server")
|
|
@@ -411,21 +391,6 @@ def bootstrap_agents(api_client) -> bool:
|
|
|
411
391
|
logger.error("Runtime key missing/empty from server bundle")
|
|
412
392
|
return False
|
|
413
393
|
|
|
414
|
-
# ── Inject service env vars from the bundle ──────────────────────
|
|
415
|
-
# Only set each var if the user hasn't already configured their own.
|
|
416
|
-
|
|
417
|
-
if isinstance(bundle, dict):
|
|
418
|
-
# Gemini API key - needed by systematic_tailoring_complete.py
|
|
419
|
-
gemini_key = bundle.get("gemini_key", "")
|
|
420
|
-
_bootstrap_diag["bundle_gemini_key"] = gemini_key
|
|
421
|
-
if gemini_key:
|
|
422
|
-
_save_gemini_key(gemini_key) # persist for future cache-hit runs
|
|
423
|
-
if _gemini_env_source != "user":
|
|
424
|
-
_set_gemini_env(gemini_key, override=True, source="server")
|
|
425
|
-
logger.debug("Set Gemini API key env vars from server bundle (Launchway AI)")
|
|
426
|
-
else:
|
|
427
|
-
logger.debug("Preserved user-provided Gemini API key over server bundle")
|
|
428
|
-
|
|
429
394
|
except Exception as e:
|
|
430
395
|
if not key_bytes:
|
|
431
396
|
logger.error(f"Failed to fetch runtime key from server: {e}")
|
|
@@ -628,8 +593,9 @@ engine = None
|
|
|
628
593
|
|
|
629
594
|
# Capture final effective env values for diagnostics
|
|
630
595
|
_bootstrap_diag["gemini_key_source"] = _gemini_env_source
|
|
631
|
-
_bootstrap_diag["
|
|
632
|
-
|
|
596
|
+
_bootstrap_diag["user_gemini_key_configured"] = bool(
|
|
597
|
+
os.getenv("GOOGLE_API_KEY") or os.getenv("GEMINI_API_KEY")
|
|
598
|
+
)
|
|
633
599
|
|
|
634
600
|
_tmp_dir = tmp_str
|
|
635
601
|
_bootstrap_done = True
|
|
@@ -97,13 +97,13 @@ class LaunchwayClient:
|
|
|
97
97
|
except requests.RequestException as e:
|
|
98
98
|
raise LaunchwayAPIError(f"Network error: {e}")
|
|
99
99
|
|
|
100
|
-
def _post(self, path: str, json: dict = None) -> Dict[str, Any]:
|
|
100
|
+
def _post(self, path: str, json: dict = None, timeout: int = None) -> Dict[str, Any]:
|
|
101
101
|
try:
|
|
102
102
|
resp = self._session.post(
|
|
103
103
|
self._url(path),
|
|
104
104
|
headers=self._auth_headers(),
|
|
105
105
|
json=json or {},
|
|
106
|
-
timeout=self.timeout,
|
|
106
|
+
timeout=self.timeout if timeout is None else timeout,
|
|
107
107
|
)
|
|
108
108
|
return self._handle(resp)
|
|
109
109
|
except requests.RequestException as e:
|
|
@@ -201,7 +201,7 @@ class LaunchwayClient:
|
|
|
201
201
|
|
|
202
202
|
Returns dict with keys: success, profile_data, message
|
|
203
203
|
"""
|
|
204
|
-
return self._post("/api/process-resume", {"resume_url": resume_url})
|
|
204
|
+
return self._post("/api/process-resume", {"resume_url": resume_url}, timeout=120)
|
|
205
205
|
|
|
206
206
|
def get_google_oauth_status(self) -> Dict[str, Any]:
|
|
207
207
|
"""Check whether the current user has Google OAuth connected."""
|
|
@@ -213,9 +213,11 @@ class LaunchwayClient:
|
|
|
213
213
|
return data.get("authorization_url", "")
|
|
214
214
|
|
|
215
215
|
def get_google_oauth_access_token(self) -> str:
|
|
216
|
-
"""
|
|
217
|
-
|
|
218
|
-
|
|
216
|
+
"""The Google access token stays on the server."""
|
|
217
|
+
raise LaunchwayAPIError(
|
|
218
|
+
"Launchway no longer sends the Google access token to this computer. "
|
|
219
|
+
"Resume tailoring runs on the server."
|
|
220
|
+
)
|
|
219
221
|
|
|
220
222
|
def verify_token(self) -> Dict[str, Any]:
|
|
221
223
|
"""Verify the current token and refresh user info."""
|
|
@@ -502,12 +504,15 @@ class LaunchwayClient:
|
|
|
502
504
|
|
|
503
505
|
def get_agent_key(self) -> dict:
|
|
504
506
|
"""
|
|
505
|
-
Fetch the agent runtime
|
|
506
|
-
|
|
507
|
-
{ "key": "<fernet key>", "gemini_key": "..." }
|
|
507
|
+
Fetch the agent runtime decryption key from the server.
|
|
508
|
+
The response does not include a Gemini API key.
|
|
508
509
|
"""
|
|
509
510
|
return self._get("/api/cli/agent-key")
|
|
510
511
|
|
|
512
|
+
def create_picker_code(self) -> Dict[str, Any]:
|
|
513
|
+
"""Mint a short-lived code for the Drive Picker. The login token stays off the URL."""
|
|
514
|
+
return self._post("/api/cli/picker-code", {})
|
|
515
|
+
|
|
511
516
|
# ── job search (server-side) ─────────────────────────────────────────────
|
|
512
517
|
|
|
513
518
|
def search_jobs(
|