| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
default value Co-Authored-By: ya Signed-off-by: renjh5496 <renjianhao@h-partners.com> | 2 个月前 | |
perf(insight_intent): skip delete when bundle has no intent cache Guard both intent delete paths with an in-memory cache check before doing any work. The guard goes through a new CanSkipDelete(bundleName, userId) that is atomic under the cache mutex and only trusts a cache miss when the cache was successfully loaded for that user, so a failed load (which clears the map but keeps the old userId) or a user mismatch never skips the RDB delete and CLI unregister (review finding F1/F2). - InsightIntentEventMgr::DeleteInsightIntentEvent: a never-registered bundle uninstall previously ran a no-op RDB delete, a full BackupRdb file write and an unregister IPC; all skipped now - InsightIntentSysEventReceiver::DeleteInsightIntent: the name-based emptiness probe costs two prefix RDB queries plus JSON transforms; the cache hit now short-circuits them, and the redundant outer HasBundleCache check at the call site is collapsed Also compress multi-line comments in function_call_convert to one-line summaries. Co-Authored-By: Agent Signed-off-by: RuiChen_01 <chenrui193@huawei.com> AI[100%] Human Fixed[0%] Human[0%] AI Adopted[100%] Co-authored-by: claude (glm-5.3) <ai@local> | 22 天前 | |
refactor(insight_intent): unify conditional delete into DbCache InsightIntentEventMgr::DeleteInsightIntent, the uninstall flow in DeleteInsightIntentEvent and InsightIntentSysEventReceiver::DeleteInsightIntent all carried their own delete logic with slight drift. Route them through the single guarded entry InsightIntentDbCache::DeleteInsightIntentTotalInfo, which now: - applies HasBundleCache (replaces CanSkipDelete, three-layer checks: user mismatch, failed cache load, then map lookup) - deletes in-memory entries and rdb rows only when the cache proves presence, returning whether the delete succeeded - drops the unused single-arg HasBundleCache overload Follow-up work (BackupRdb, function unregister) stays at the call sites. Co-Authored-By: Agent AI[100%] Human Fixed[0%] Human[0%] AI Adopted[100%] Co-authored-by: claude (glm-5.3) <ai@local> Change-Id: Iceea785c76cafe35f451a305c7da9a6c107b6d03 Signed-off-by: RuiChen_01 <chenrui193@huawei.com> | 19 天前 | |
意图json文件合并解析适配 Signed-off-by: linjunjie <linjunjie6@huawei.com> | 1 年前 | |
fix query entity Co-Authored-By: csh Signed-off-by: renjianhao <renjianhao@h-partners.com> | 1 个月前 | |
test: add tdd cases and fix static check warnings 补充 SafeJsonGet/SafeDump/SafeDumpTo 工具函数和 TransformTo 集成 测试共 18 个,覆盖类型不匹配、深嵌套、数值溢出、executeMode 非 数组等异常路径。同时修复静态检查告警:精简 SafeDump/SafeDumpTo 到 10 行内;抽出 FillExecuteModesFromJson helper 将 from_json 嵌套深度从 5 降到 3。 Co-Authored-By: Agent 🤖 AI[100%] 👌 AI Adopted[100%] 🧑 Human[0%] Co-authored-by: claude (glm-5.2) <ai@local> Change-Id: Ia1eec8691b7e0f87edc84bd083521ea91a4fc6df Signed-off-by: RuiChen_01 <chenrui193@huawei.com> | 2 个月前 | |
refactor: extract InsightIntentParamParser, add IntentFilterUtil Move parameter parsing/assembly for ExecuteIntentByFunctionCall out of AbilityManagerService anonymous helpers into a dedicated InsightIntentParamParser class with explicit, unit-testable rules. Expose multi-candidate matcher API (GetMatchedIntentInfos). Drop SA-only check on ExecuteIntentByFunctionCall entry so function calling agents can invoke intents directly. Add IntentFilterUtil for CliTool registration path: callers preprocess intent lists before RegisterInsightIntentFunctions to (1) drop intents not bound to background UIAbility or ServiceExtension, (2) pick entry module first when same intentName spans modules, (3) prefer UIAbility over ServiceExtension when same module has multiple abilities. Co-Authored-By: Agent Signed-off-by: RuiChen_01 <chenrui193@huawei.com> | 2 个月前 | |
refactor: drop userId and displayId from exposed options schema These two parameters are system-internal and should not be part of the function calling contract. Remove them from the registered options schema so LLM agents don't see them. Parser no longer reads them from options: userId defaults to INVALID_USER_ID (-1) filled by CheckAndUpdateParam, displayId defaults to INVALID_DISPLAY_ID filled by SCB. ResolveUserId/ResolveDisplayId methods and their constants are deleted. Co-Authored-By: Agent Signed-off-by: RuiChen_01 <chenrui193@huawei.com> 🤖 AI[100%] 👌 AI Adopted[100%] 🧑 Human[0%] Co-authored-by: claude (glm-5.2) <ai@local> | 2 个月前 | |
change json to cpp Co-Authored-By: Agent Signed-off-by: zhangzezhong <zhangzezhong8@huawei-partners.com> | 4 个月前 | |
rdb优化 Signed-off-by: wkljy <wangkailong6@huawei.com> | 8 个月前 | |
OTA Signed-off-by: wkljy <wangkailong6@huawei.com> | 7 个月前 | |
refactor: drop entryModule concept from IntentFilterUtil Simplify rule 2 to "moduleName alphabetical first" without entry preference. Removes entryModuleNames parameter from IntentFilterUtil ctor, FilterCandidate.isEntryModule field, CandidateOrdering entry dimension, DbCache GetAllInsightIntentInfoForRegister signature, and bundleToEntryModules plumbing in sys_event_receiver/event_mgr. Callers no longer need to extract entry modules from BundleInfo. Also rename FilterAndDedup overloads to FilterProfile/FilterConfig/ FilterGeneric for explicit data-source semantics. Co-Authored-By: Agent Signed-off-by: RuiChen_01 <chenrui193@huawei.com> 🤖 AI[100%] 👌 AI Adopted[100%] 🧑 Human[0%] Co-authored-by: claude (glm-5.2) <ai@local> | 2 个月前 | |
fix(insight_intent): guard json::dump against deep-nesting stack overflow nlohmann::json::dump() recurses on nested values; super-deep input causes SIGSEGV stack overflow that try/catch cannot intercept. - Add iterative IsJsonDepthOk walker with JSON_DUMP_MAX_DEPTH (100) bound; SafeDump/SafeDumpTo reject over-depth input before dump(). Definitions live in intent_json_safe_get.cpp, compiled only into the ability_manager innerkit so symbols resolve for libabilityms.so and direct-compiling test/fuzz targets (libabilityms.map hides non-whitelisted symbols). - Switch raw .dump() calls in function_call_convert, execute_result and info_for_query to the safe wrappers; validate inputSchema depth before merge. - Add IsJsonDepthOk boundary tests (under/at/over limit). Co-Authored-By: Agent Signed-off-by: RuiChen_01 <chenrui193@huawei.com> AI[100%] Human Fixed[0%] Human[0%] AI Adopted[100%] Co-authored-by: claude (unknown) <ai@local> Co-authored-by: claude (glm-5.3) <ai@local> Co-authored-by: claude (unknown) <ai@local> Co-authored-by: claude (glm-5.3) <ai@local> Co-authored-by: claude (unknown) <ai@local> Co-authored-by: claude (glm-5.3) <ai@local> Co-authored-by: claude (unknown) <ai@local> Co-authored-by: claude (glm-5.3) <ai@local> Co-authored-by: claude (unknown) <ai@local> | 30 天前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 2 个月前 | ||
| 22 天前 | ||
| 19 天前 | ||
| 1 年前 | ||
| 1 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 4 个月前 | ||
| 8 个月前 | ||
| 7 个月前 | ||
| 2 个月前 | ||
| 30 天前 |