[251014] feat(actions): [251014] VUI 관련 app build
🕐 커밋 시간: 2025. 10. 14. 15:49:40 📊 변경 통계: • 총 파일: 4개 • 추가: +50줄 • 삭제: -2줄 📁 추가된 파일: + com.twin.app.shoptime/com.lgshop.app_2.0.0_all.ipk 📝 수정된 파일: ~ com.twin.app.shoptime/.gitignore ~ com.twin.app.shoptime/package.json ~ com.twin.app.shoptime/src/actions/voiceActions.js 🔧 함수 변경 내용: 📄 com.twin.app.shoptime/src/actions/voiceActions.js (javascript): ✅ Added: handleScrollIntent() 🔄 Modified: registerVoiceFramework() 🔧 주요 변경 내용: • 프로젝트 의존성 관리 개선 • 핵심 비즈니스 로직 개선 BREAKING CHANGE: API 또는 설정 변경으로 인한 호환성 영향 가능
This commit is contained in:
2
com.twin.app.shoptime/.gitignore
vendored
2
com.twin.app.shoptime/.gitignore
vendored
@@ -14,4 +14,4 @@ npm-debug.log
|
|||||||
|
|
||||||
# ipk file
|
# ipk file
|
||||||
srcBackup
|
srcBackup
|
||||||
com.lgshop.app_*.ipk
|
# com.lgshop.app_*.ipk
|
||||||
BIN
com.twin.app.shoptime/com.lgshop.app_2.0.0_all.ipk
Normal file
BIN
com.twin.app.shoptime/com.lgshop.app_2.0.0_all.ipk
Normal file
Binary file not shown.
@@ -14,7 +14,11 @@
|
|||||||
"license": "enact license",
|
"license": "enact license",
|
||||||
"test": "enact test",
|
"test": "enact test",
|
||||||
"test-watch": "enact test --watch",
|
"test-watch": "enact test --watch",
|
||||||
"postinstall": "patch-package"
|
"postinstall": "patch-package",
|
||||||
|
"package": "cp webos-meta/appinfo.json dist/ && ares-package dist",
|
||||||
|
"build-ipk": "npm run build && npm run package",
|
||||||
|
"install-tv": "ares-install com.lgshop.app_*.ipk -d tv",
|
||||||
|
"launch-tv": "ares-launch com.lgshop.app -d tv"
|
||||||
},
|
},
|
||||||
"license": "UNLICENSED",
|
"license": "UNLICENSED",
|
||||||
"private": true,
|
"private": true,
|
||||||
|
|||||||
@@ -192,9 +192,20 @@ export const sendVoiceIntents = (voiceTicket) => (dispatch, getState) => {
|
|||||||
payload: inAppIntents,
|
payload: inAppIntents,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Log the setContext request
|
||||||
|
dispatch(
|
||||||
|
addLog('REQUEST', 'Set Voice Context', {
|
||||||
|
voiceTicket,
|
||||||
|
intentCount: inAppIntents.length,
|
||||||
|
intents: inAppIntents,
|
||||||
|
})
|
||||||
|
);
|
||||||
|
|
||||||
lunaSend.setVoiceContext(voiceTicket, inAppIntents, {
|
lunaSend.setVoiceContext(voiceTicket, inAppIntents, {
|
||||||
onSuccess: (res) => {
|
onSuccess: (res) => {
|
||||||
console.log('[Voice] Voice context set successfully:', res);
|
console.log('[Voice] Voice context set successfully:', res);
|
||||||
|
// Log successful context setting
|
||||||
|
dispatch(addLog('RESPONSE', 'Set Voice Context Success', res, true));
|
||||||
dispatch({
|
dispatch({
|
||||||
type: types.VOICE_SET_CONTEXT_SUCCESS,
|
type: types.VOICE_SET_CONTEXT_SUCCESS,
|
||||||
payload: res,
|
payload: res,
|
||||||
@@ -203,6 +214,8 @@ export const sendVoiceIntents = (voiceTicket) => (dispatch, getState) => {
|
|||||||
|
|
||||||
onFailure: (err) => {
|
onFailure: (err) => {
|
||||||
console.error('[Voice] Failed to set voice context:', err);
|
console.error('[Voice] Failed to set voice context:', err);
|
||||||
|
// Log failed context setting
|
||||||
|
dispatch(addLog('ERROR', 'Set Voice Context Failed', err, false));
|
||||||
dispatch({
|
dispatch({
|
||||||
type: types.VOICE_SET_CONTEXT_FAILURE,
|
type: types.VOICE_SET_CONTEXT_FAILURE,
|
||||||
payload: err,
|
payload: err,
|
||||||
@@ -222,6 +235,15 @@ export const sendVoiceIntents = (voiceTicket) => (dispatch, getState) => {
|
|||||||
export const handleVoiceAction = (voiceTicket, action) => (dispatch, getState) => {
|
export const handleVoiceAction = (voiceTicket, action) => (dispatch, getState) => {
|
||||||
console.log('[Voice] Handling voice action:', action);
|
console.log('[Voice] Handling voice action:', action);
|
||||||
|
|
||||||
|
// Log that we're processing the action
|
||||||
|
dispatch(
|
||||||
|
addLog('ACTION', 'Processing Voice Action', {
|
||||||
|
intent: action.intent,
|
||||||
|
itemId: action.itemId,
|
||||||
|
fullAction: action,
|
||||||
|
})
|
||||||
|
);
|
||||||
|
|
||||||
let result = false;
|
let result = false;
|
||||||
let feedback = null;
|
let feedback = null;
|
||||||
|
|
||||||
@@ -250,6 +272,15 @@ export const handleVoiceAction = (voiceTicket, action) => (dispatch, getState) =
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Log the processing result before reporting
|
||||||
|
dispatch(
|
||||||
|
addLog('ACTION', 'Action Processing Complete', {
|
||||||
|
result,
|
||||||
|
feedback,
|
||||||
|
action: action.itemId,
|
||||||
|
})
|
||||||
|
);
|
||||||
|
|
||||||
// Report result to voice framework
|
// Report result to voice framework
|
||||||
dispatch(reportActionResult(voiceTicket, result, feedback));
|
dispatch(reportActionResult(voiceTicket, result, feedback));
|
||||||
};
|
};
|
||||||
@@ -320,9 +351,20 @@ export const reportActionResult =
|
|||||||
(dispatch, getState) => {
|
(dispatch, getState) => {
|
||||||
console.log('[Voice] Reporting action result:', { result, feedback });
|
console.log('[Voice] Reporting action result:', { result, feedback });
|
||||||
|
|
||||||
|
// Log the report request
|
||||||
|
dispatch(
|
||||||
|
addLog('ACTION', 'Reporting Action Result', {
|
||||||
|
voiceTicket,
|
||||||
|
result,
|
||||||
|
feedback,
|
||||||
|
})
|
||||||
|
);
|
||||||
|
|
||||||
lunaSend.reportVoiceActionResult(voiceTicket, result, feedback, {
|
lunaSend.reportVoiceActionResult(voiceTicket, result, feedback, {
|
||||||
onSuccess: (res) => {
|
onSuccess: (res) => {
|
||||||
console.log('[Voice] Action result reported successfully:', res);
|
console.log('[Voice] Action result reported successfully:', res);
|
||||||
|
// Log successful report
|
||||||
|
dispatch(addLog('RESPONSE', 'Report Action Result Success', res, true));
|
||||||
dispatch({
|
dispatch({
|
||||||
type: types.VOICE_REPORT_RESULT_SUCCESS,
|
type: types.VOICE_REPORT_RESULT_SUCCESS,
|
||||||
payload: { result, feedback },
|
payload: { result, feedback },
|
||||||
@@ -331,6 +373,8 @@ export const reportActionResult =
|
|||||||
|
|
||||||
onFailure: (err) => {
|
onFailure: (err) => {
|
||||||
console.error('[Voice] Failed to report action result:', err);
|
console.error('[Voice] Failed to report action result:', err);
|
||||||
|
// Log failed report
|
||||||
|
dispatch(addLog('ERROR', 'Report Action Result Failed', err, false));
|
||||||
dispatch({
|
dispatch({
|
||||||
type: types.VOICE_REPORT_RESULT_FAILURE,
|
type: types.VOICE_REPORT_RESULT_FAILURE,
|
||||||
payload: err,
|
payload: err,
|
||||||
|
|||||||
Reference in New Issue
Block a user