cf5ebe9430
feat(openapi): app-run endpoints with auth pipeline
...
Ports service_api/app/{completion,workflow}.py to bearer-authed
/openapi/v1/apps/<app_id>/{info,chat-messages,completion-messages,workflows/run}.
Architecture:
- New controllers/openapi/auth/ package: Pipeline + Step protocol over
one mutable Context. Endpoints attach via @APP_PIPELINE.guard(scope=...)
— single attachment point; forgetting auth is structurally impossible.
- Pipeline order: BearerCheck -> ScopeCheck -> AppResolver -> AppAuthzCheck
-> CallerMount.
- Strategies vary along independent axes: AclStrategy (EE webapp-auth inner
API) vs MembershipStrategy (CE TenantAccountJoin); AccountMounter vs
EndUserMounter dispatched by SubjectType.
- App is in URL path (not header). Each non-GET has typed Pydantic Request;
each non-SSE response has typed Pydantic Response. Bearer-as-identity:
body 'user' field stripped, ignored if present.
Adds InvokeFrom.OPENAPI enum variant. Emits app.run.openapi audit log
on successful invocation via standard logger extra={"audit": True, ...}
convention.
2026-04-27 17:25:17 -07:00
97bb338e7d
fix: prevent double /v1 in MCP server URL causing 404 authorization failure ( #34596 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-20 02:42:59 +00:00
3e876e173a
chore(api): adapt Graphon 0.2.2 upgrade ( #35377 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-18 11:16:24 +00:00
881a9a1a08
refactor(api): move trace providers ( #35144 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-17 07:53:35 +00:00
a74e12809b
fix: move remote credential validation outside DB session to prevent … ( #35350 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-17 07:42:29 +00:00
0c41d0bf51
fix: guard against KeyError in update_prompt_message_tool loop ( #35150 )
...
Co-authored-by: Crazywoola <100913391+crazywoola@users.noreply.github.com >
2026-04-17 07:09:40 +00:00
af8ffa0654
refactor: use sessionmaker in api_tools_manage_service.py ( #34892 )
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-17 05:07:12 +00:00
3193e8a712
chore: reorg imports ( #35308 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-16 08:50:02 +00:00
54e51be665
fix: apply score threshold after reranking in hybrid search ( #35263 )
2026-04-16 06:21:11 +00:00
7e7b27fdec
refactor: replace bare dict with dict[str, Any] in response converter… ( #35212 )
...
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-14 19:45:04 +00:00
9c90c1c455
refactor: replace bare dict with dict[str, Any] in services and hosti… ( #35211 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-14 19:44:40 +00:00
ef28a63ad3
refactor(api): add null safety to extractor_processor and firecrawl ( #35209 )
...
Co-authored-by: tmimmanuel <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>
2026-04-14 18:23:20 +00:00
bd7a9b5fcf
refactor: replace bare dict with dict[str, Any] in model provider service and core modules ( #35122 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Crazywoola <100913391+crazywoola@users.noreply.github.com >
Co-authored-by: Asuka Minato <i@asukaminato.eu.org >
2026-04-14 09:18:30 +00:00
62bb830338
refactor: convert InvokeFrom if/elif to match/case ( #35143 )
2026-04-14 07:46:58 +00:00
f7c6270f74
refactor: use sessionmaker in tool_label_manager.py ( #34895 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-14 07:23:29 +00:00
fbedb60371
refactor: replace bare dict with typed annotations in core rag module ( #35097 )
2026-04-14 06:16:16 +00:00
974d2f1627
refactor: replace bare dict with typed annotations in llm_generator and prompt ( #35100 )
2026-04-14 06:15:52 +00:00
ed401728eb
refactor: replace bare dict with typed annotations in app_config/extension/provider ( #35099 )
2026-04-14 06:11:00 +00:00
fc389a54c5
refactor: replace bare dict with typed annotations in core tools module ( #35098 )
2026-04-14 06:09:55 +00:00
0f643bca76
refactor: replace bare dict with dict[str, Any] in core tools and runtime ( #35111 )
2026-04-14 03:03:13 +00:00
eeebedcfe8
refactor: replace bare dict with dict[str, Any] in core provider services and misc modules ( #35124 )
2026-04-14 03:03:08 +00:00
ed83f5369e
refactor: replace bare dict with dict[str, Any] in entities, workflow nodes, and tasks ( #35109 )
2026-04-14 03:02:39 +00:00
83b242be7b
refactor: replace bare dict with typed annotations in core plugin module ( #35096 )
2026-04-13 19:23:21 +00:00
ac2258c2dc
refactor: replace bare dict with dict[str, Any] in app_config managers ( #35087 )
2026-04-13 17:14:39 +00:00
3c279edcf2
refactor: replace bare dict with dict[str, Any] in app task_entities … ( #35084 )
2026-04-13 17:14:23 +00:00
9ed8a5ed73
refactor: replace bare dict with dict[str, Any] in model_manager and … ( #35083 )
2026-04-13 17:14:08 +00:00
3d4ddf4a6f
refactor: replace bare dict with dict[str, Any] in ops trace providers ( #35082 )
2026-04-13 17:13:46 +00:00
4e0273bb28
refactor: replace bare dict with dict[str, Any] in provider entities and plugin client ( #35077 )
2026-04-13 17:09:25 +00:00
7056d2ae99
refactor: replace bare dict with dict[str, Any] in moderation module ( #35076 )
2026-04-13 17:09:06 +00:00
2042ee453b
refactor: replace bare dict with dict[str, Any] in helper cache modules ( #35067 )
2026-04-13 14:05:50 +00:00
33c4e512f1
refactor: replace bare dict with dict[str, Any] in tools message_transformer ( #35069 )
2026-04-13 14:05:39 +00:00
253e8a3f98
refactor: replace bare dict with dict[str, Any] in ops_trace_manager ( #35070 )
2026-04-13 14:05:29 +00:00
06b63d65d1
refactor: replace bare dict with dict[str, Any] in rag extractors ( #35068 )
2026-04-13 14:05:21 +00:00
e243e8d8a3
refactor: replace bare dict with dict[str, Any] in datasource_entities ( #35062 )
2026-04-13 13:01:50 +00:00
1b935a367f
refactor: replace bare dict with dict[str, Any] in watercrawl client ( #35063 )
2026-04-13 13:01:32 +00:00
2edd083a71
refactor: replace bare dict with dict[str, Any] in OpenAPI tools parser ( #35061 )
2026-04-13 13:01:21 +00:00
ae898652b2
refactor: move vdb implementations to workspaces ( #34900 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: wangxiaolei <fatelei@gmail.com >
2026-04-13 08:56:43 +00:00
fc64427ae1
fix: fix qdrant delete size is too large ( #35042 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-13 07:59:06 +00:00
29bfa33d59
feat: support ttft report to langfuse ( #33344 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2026-04-13 06:21:58 +00:00
2108c44c8b
refactor(api): consolidate duplicate RerankingModelConfig and WeightedScoreConfig definitions ( #34747 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-13 05:53:45 +00:00
7dd507af04
refactor: migrate SegmentAttachmentBinding to TypeBase ( #34810 )
2026-04-13 05:22:43 +00:00
596559efc9
fix(rag): include is_summary and original_chunk_id in default vector projection ( #34950 )
...
Co-authored-by: VFootball Dev <vfootball@example.com >
2026-04-13 03:11:08 +00:00
d06bc2f2e1
refactor(api): type _build_log_dict return with LogDict TypedDict ( #34983 )
...
Co-authored-by: Asuka Minato <i@asukaminato.eu.org >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-04-13 01:06:36 +00:00
534fea7104
refactor: replace bare dict with typed annotations in external_data_tool ( #34996 )
2026-04-13 01:02:22 +00:00
602753b68a
refactor: replace bare dict with ActionDict TypedDict in cot_agent_runner ( #34997 )
2026-04-13 00:53:20 +00:00
0841b4c663
refactor(api): migrate tools, account, workflow and plugin services to SQLAlchemy 2.0 ( #34966 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-12 01:45:27 +00:00
12814b55d2
refactor(api): migrate core RAG layer to SQLAlchemy 2.0 select() API ( #34965 )
2026-04-11 16:32:20 +00:00
65d66768c1
fix: fix tool output duplicate ( #34962 )
2026-04-11 15:07:31 +00:00
e0d69204cd
refactor(api): type DatasourceInvokeMeta.to_dict with TypedDict ( #34940 )
2026-04-11 00:39:06 +00:00
f2d6275da4
refactor(api): type get_prompt_template with TypedDict ( #34943 )
2026-04-11 00:38:16 +00:00