@feedmepos/mf-remy-panel 0.16.0-dev.1 → 0.17.0-dev.1
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.
- package/dist/{HomeView-7c56daee.js → HomeView-4b829007.js} +53 -41
- package/dist/{RemyButton-66f83076.js → RemyButton-fa6467ad.js} +1 -1
- package/dist/api/connectedApps.d.ts +75 -0
- package/dist/api/memory.d.ts +123 -0
- package/dist/api/rcaActions.d.ts +59 -0
- package/dist/app-5820624d.js +30769 -0
- package/dist/app.js +1 -1
- package/dist/components/chatPanel/ChatMessages.vue.d.ts +4 -1
- package/dist/components/chatPanel/actionCards/NotifyTeamApprovalCard.vue.d.ts +15 -0
- package/dist/components/chatPanel/actionCards/RcaDriverPanel.vue.d.ts +24 -0
- package/dist/components/chatPanel/actionCards/RcaInsightCard.vue.d.ts +1 -0
- package/dist/components/expandedPanel/RcaExplorerSubpage.vue.d.ts +2 -0
- package/dist/components/expandedPanel/TasksSubpage.vue.d.ts +2 -0
- package/dist/components/integrations/ConnectedAppsManager.vue.d.ts +32 -0
- package/dist/components/memory/EpisodeTimeline.vue.d.ts +15 -0
- package/dist/components/memory/MemoryGraph.vue.d.ts +15 -0
- package/dist/components/memory/MemoryList.vue.d.ts +15 -0
- package/dist/components/memory/MemoryPanel.vue.d.ts +29 -0
- package/dist/stores/chatStore.d.ts +7 -0
- package/dist/stores/previewStore.d.ts +547 -4
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/types/chat.d.ts +36 -0
- package/dist/types/tasks.d.ts +69 -0
- package/dist/utils/navigation.d.ts +10 -0
- package/package.json +1 -1
- package/dist/app-2a76af28.js +0 -27384
package/dist/types/chat.d.ts
CHANGED
|
@@ -29,15 +29,45 @@ export interface ChartActionCardResult {
|
|
|
29
29
|
axes?: ChartAxis[];
|
|
30
30
|
summary: string;
|
|
31
31
|
}
|
|
32
|
+
export type RcaActionKind = 'notify' | 'task' | 'research' | 'watch' | 'report';
|
|
33
|
+
export interface RcaRecommendedAction {
|
|
34
|
+
id: string;
|
|
35
|
+
kind: RcaActionKind;
|
|
36
|
+
title: string;
|
|
37
|
+
description: string;
|
|
38
|
+
prefill?: {
|
|
39
|
+
recipient?: string;
|
|
40
|
+
subject?: string;
|
|
41
|
+
message?: string;
|
|
42
|
+
taskTitle?: string;
|
|
43
|
+
dueInDays?: number;
|
|
44
|
+
query?: string;
|
|
45
|
+
};
|
|
46
|
+
supported: boolean;
|
|
47
|
+
}
|
|
48
|
+
export interface RcaDriverImpact {
|
|
49
|
+
/** Preformatted signed value, e.g. "−RM 4,120.00" */
|
|
50
|
+
valueLabel: string;
|
|
51
|
+
/** Share of the total metric delta explained by this driver (0–100, signed) */
|
|
52
|
+
contributionSharePct?: number;
|
|
53
|
+
}
|
|
32
54
|
export interface RcaInsightDriver {
|
|
33
55
|
label: string;
|
|
34
56
|
type: 'demand' | 'aov' | 'mix' | 'refund' | 'discount' | 'operations' | 'inventory' | 'loyalty' | 'menu';
|
|
35
57
|
rank: 'primary' | 'secondary' | 'contributing' | 'unconfirmed';
|
|
36
58
|
confidence: 'high' | 'medium' | 'low';
|
|
37
59
|
evidence: string[];
|
|
60
|
+
rationale?: string;
|
|
61
|
+
impact?: RcaDriverImpact;
|
|
62
|
+
supportingQueryIds?: string[];
|
|
63
|
+
/** Chart-ready evidence hydrated server-side — rendered via ChartCard's chartConfig prop */
|
|
64
|
+
evidenceCharts?: ChartActionCardResult[];
|
|
65
|
+
actions?: RcaRecommendedAction[];
|
|
66
|
+
followUps?: string[];
|
|
38
67
|
}
|
|
39
68
|
export interface RcaInsightCardResult {
|
|
40
69
|
type: 'rca_insight';
|
|
70
|
+
rcaId?: string;
|
|
41
71
|
targetMetric: 'revenue' | 'order_count' | 'aov';
|
|
42
72
|
headline: string;
|
|
43
73
|
status: 'explained' | 'partially_explained' | 'inconclusive' | 'no_data';
|
|
@@ -61,6 +91,12 @@ export interface RcaInsightCardResult {
|
|
|
61
91
|
deltaPct: number;
|
|
62
92
|
};
|
|
63
93
|
};
|
|
94
|
+
localization?: Array<{
|
|
95
|
+
dimension: 'outlet' | 'daypart' | 'item' | 'category' | 'payment_method';
|
|
96
|
+
topContributor: string;
|
|
97
|
+
contributionSharePct: number;
|
|
98
|
+
supportingQueryId?: string;
|
|
99
|
+
}>;
|
|
64
100
|
drivers: RcaInsightDriver[];
|
|
65
101
|
gaps: string[];
|
|
66
102
|
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Task system v2 — delegation model (mirrored from backend task.types.ts).
|
|
3
|
+
*
|
|
4
|
+
* A Task is a work order: a delegation to a named executor (agent or human)
|
|
5
|
+
* with enough structure for that executor to act. No executor → no task.
|
|
6
|
+
* See docs/adr/ADR-001-task-as-delegation.md and docs/TASK_SYSTEM_DESIGN.md.
|
|
7
|
+
*/
|
|
8
|
+
export type TaskSource = 'rca' | 'manual';
|
|
9
|
+
/**
|
|
10
|
+
* Execution lifecycle, not board columns.
|
|
11
|
+
*
|
|
12
|
+
* Agent tasks auto-advance: pending → dispatched → executing → needs_review.
|
|
13
|
+
* Human tasks skip dispatched/needs_review: pending → executing → done.
|
|
14
|
+
*/
|
|
15
|
+
export type TaskStatus = 'pending' | 'dispatched' | 'executing' | 'needs_review' | 'done' | 'failed' | 'cancelled';
|
|
16
|
+
export type TaskExecutorType = 'agent' | 'human';
|
|
17
|
+
export interface TaskExecutor {
|
|
18
|
+
type: TaskExecutorType;
|
|
19
|
+
/** Agent runner name (e.g. "report") or userId. */
|
|
20
|
+
id: string;
|
|
21
|
+
}
|
|
22
|
+
/** Structured instructions an agent runner can act on without human interpretation. */
|
|
23
|
+
export interface TaskDirective {
|
|
24
|
+
/** Agent runner / skill to invoke, e.g. "report". */
|
|
25
|
+
skill: string;
|
|
26
|
+
/** Structured input, e.g. { driver: "...", instruction: "..." }. */
|
|
27
|
+
params: Record<string, unknown>;
|
|
28
|
+
/** Natural-language check for the result. */
|
|
29
|
+
successCriteria?: string;
|
|
30
|
+
}
|
|
31
|
+
export interface TaskResult {
|
|
32
|
+
/** Human-readable outcome. */
|
|
33
|
+
summary: string;
|
|
34
|
+
/** Structured payload (chart data, doc ref, …). */
|
|
35
|
+
output?: Record<string, unknown>;
|
|
36
|
+
/** Conversation message the result was posted to, if any. */
|
|
37
|
+
conversationMessageId?: string;
|
|
38
|
+
completedAt: string;
|
|
39
|
+
}
|
|
40
|
+
export interface TaskStatusHistoryEntry {
|
|
41
|
+
status: TaskStatus;
|
|
42
|
+
changedAt: string;
|
|
43
|
+
changedBy?: string;
|
|
44
|
+
reason?: string;
|
|
45
|
+
}
|
|
46
|
+
export interface Task {
|
|
47
|
+
id: string;
|
|
48
|
+
businessId: string;
|
|
49
|
+
userId: string;
|
|
50
|
+
title: string;
|
|
51
|
+
description?: string;
|
|
52
|
+
source: TaskSource;
|
|
53
|
+
sourceId?: string;
|
|
54
|
+
executor: TaskExecutor;
|
|
55
|
+
directive?: TaskDirective;
|
|
56
|
+
status: TaskStatus;
|
|
57
|
+
result?: TaskResult;
|
|
58
|
+
/** Dispatch retries (agent tasks). */
|
|
59
|
+
attempts?: number;
|
|
60
|
+
/** Last failure message. */
|
|
61
|
+
error?: string;
|
|
62
|
+
/** Human-executor tasks only. */
|
|
63
|
+
dueDate?: string;
|
|
64
|
+
/** rcaDriver, conversationId, messageId, … */
|
|
65
|
+
metadata?: Record<string, unknown>;
|
|
66
|
+
statusHistory: TaskStatusHistoryEntry[];
|
|
67
|
+
createdAt: string;
|
|
68
|
+
updatedAt: string;
|
|
69
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Router } from 'vue-router';
|
|
2
|
+
import type { usePreviewStore } from '@/stores/previewStore';
|
|
3
|
+
export interface NavigationResult {
|
|
4
|
+
pageName: string;
|
|
5
|
+
path?: string;
|
|
6
|
+
panelTarget?: 'integrations';
|
|
7
|
+
}
|
|
8
|
+
type PreviewStore = ReturnType<typeof usePreviewStore>;
|
|
9
|
+
export declare function handleNavigationResult(result: NavigationResult, previewStore: PreviewStore, router: Router | null): void;
|
|
10
|
+
export {};
|