reportify-cli 0.1.45__tar.gz → 0.1.46__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.
- {reportify_cli-0.1.45 → reportify_cli-0.1.46}/PKG-INFO +1 -1
- {reportify_cli-0.1.45 → reportify_cli-0.1.46}/pyproject.toml +1 -1
- {reportify_cli-0.1.45 → reportify_cli-0.1.46}/src/commands/auth.py +3 -1
- {reportify_cli-0.1.45 → reportify_cli-0.1.46}/.gitignore +0 -0
- {reportify_cli-0.1.45 → reportify_cli-0.1.46}/Makefile +0 -0
- {reportify_cli-0.1.45 → reportify_cli-0.1.46}/README.md +0 -0
- {reportify_cli-0.1.45 → reportify_cli-0.1.46}/scripts/README.md +0 -0
- {reportify_cli-0.1.45 → reportify_cli-0.1.46}/scripts/bump_version.sh +0 -0
- {reportify_cli-0.1.45 → reportify_cli-0.1.46}/scripts/publish.sh +0 -0
- {reportify_cli-0.1.45 → reportify_cli-0.1.46}/skills/reportify-agent/SKILL.md +0 -0
- {reportify_cli-0.1.45 → reportify_cli-0.1.46}/skills/reportify-ai/SKILL.md +0 -0
- {reportify_cli-0.1.45 → reportify_cli-0.1.46}/skills/reportify-ai/references/API_REFERENCE.md +0 -0
- {reportify_cli-0.1.45 → reportify_cli-0.1.46}/skills/reportify-ai/references/COMMANDS.md +0 -0
- {reportify_cli-0.1.45 → reportify_cli-0.1.46}/src/__init__.py +0 -0
- {reportify_cli-0.1.45 → reportify_cli-0.1.46}/src/auth_config.py +0 -0
- {reportify_cli-0.1.45 → reportify_cli-0.1.46}/src/client.py +0 -0
- {reportify_cli-0.1.45 → reportify_cli-0.1.46}/src/commands/__init__.py +0 -0
- {reportify_cli-0.1.45 → reportify_cli-0.1.46}/src/commands/agent.py +0 -0
- {reportify_cli-0.1.45 → reportify_cli-0.1.46}/src/commands/channels.py +0 -0
- {reportify_cli-0.1.45 → reportify_cli-0.1.46}/src/commands/concepts.py +0 -0
- {reportify_cli-0.1.45 → reportify_cli-0.1.46}/src/commands/docs.py +0 -0
- {reportify_cli-0.1.45 → reportify_cli-0.1.46}/src/commands/following.py +0 -0
- {reportify_cli-0.1.45 → reportify_cli-0.1.46}/src/commands/kb.py +0 -0
- {reportify_cli-0.1.45 → reportify_cli-0.1.46}/src/commands/macro.py +0 -0
- {reportify_cli-0.1.45 → reportify_cli-0.1.46}/src/commands/quant.py +0 -0
- {reportify_cli-0.1.45 → reportify_cli-0.1.46}/src/commands/search.py +0 -0
- {reportify_cli-0.1.45 → reportify_cli-0.1.46}/src/commands/stock.py +0 -0
- {reportify_cli-0.1.45 → reportify_cli-0.1.46}/src/commands/timeline.py +0 -0
- {reportify_cli-0.1.45 → reportify_cli-0.1.46}/src/commands/user.py +0 -0
- {reportify_cli-0.1.45 → reportify_cli-0.1.46}/src/main.py +0 -0
- {reportify_cli-0.1.45 → reportify_cli-0.1.46}/src/output.py +0 -0
- {reportify_cli-0.1.45 → reportify_cli-0.1.46}/src/params.py +0 -0
- {reportify_cli-0.1.45 → reportify_cli-0.1.46}/src/settings.py +0 -0
- {reportify_cli-0.1.45 → reportify_cli-0.1.46}/src/utils.py +0 -0
- {reportify_cli-0.1.45 → reportify_cli-0.1.46}/tests/__init__.py +0 -0
- {reportify_cli-0.1.45 → reportify_cli-0.1.46}/tests/integration/test_docs_integration.py +0 -0
- {reportify_cli-0.1.45 → reportify_cli-0.1.46}/tests/integration/test_stock_integration.py +0 -0
- {reportify_cli-0.1.45 → reportify_cli-0.1.46}/tests/test_commands/__init__.py +0 -0
- {reportify_cli-0.1.45 → reportify_cli-0.1.46}/tests/test_commands/test_auth_commands.py +0 -0
- {reportify_cli-0.1.45 → reportify_cli-0.1.46}/tests/test_commands/test_auth_config.py +0 -0
- {reportify_cli-0.1.45 → reportify_cli-0.1.46}/tests/test_commands/test_docs.py +0 -0
- {reportify_cli-0.1.45 → reportify_cli-0.1.46}/tests/test_commands/test_quant.py +0 -0
- {reportify_cli-0.1.45 → reportify_cli-0.1.46}/tests/test_commands/test_search.py +0 -0
- {reportify_cli-0.1.45 → reportify_cli-0.1.46}/uv.lock +0 -0
|
@@ -128,9 +128,11 @@ def _poll_token(client: httpx.Client, device_code: str, interval: int, expires_i
|
|
|
128
128
|
|
|
129
129
|
|
|
130
130
|
def _ensure_api_key(client: httpx.Client, access_token: str) -> dict:
|
|
131
|
+
# reportify 的 TokenMiddleware 用 `X-Reportify-Token` 识别 web 登录态 token;
|
|
132
|
+
# `Authorization: Bearer` 那个 slot 给长期 api_key 用的。两个 header 不能混。
|
|
131
133
|
resp = client.post(
|
|
132
134
|
ENDPOINT_API_KEY_ENSURE,
|
|
133
|
-
headers={"
|
|
135
|
+
headers={"X-Reportify-Token": access_token},
|
|
134
136
|
json={"client_id": CLIENT_ID, "source": "cli"},
|
|
135
137
|
)
|
|
136
138
|
if resp.status_code != 200:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{reportify_cli-0.1.45 → reportify_cli-0.1.46}/skills/reportify-ai/references/API_REFERENCE.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|