@agentpulselabs/agentforce-review-client 0.1.0 → 0.2.0

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/README.md CHANGED
@@ -22,3 +22,9 @@ const result = await agentforce_review.agentsClassify(payload);
22
22
  | Method | Op | Summary |
23
23
  | --- | --- | --- |
24
24
  | `agentsClassify` | `agents-classify` | Classify one of the acting team's connected agents (by dev name) as agentscript \| planner \| legacy. |
25
+ | `widgetAvg_health` | `widget:avg_health` | Mean health of each org agent's latest complete review and its change in 30 days (home widget). |
26
+ | `widgetFindings` | `widget:findings` | Findings on each org agent's latest complete review, by severity and by area (home widget). |
27
+ | `widgetFix_pipeline` | `widget:fix_pipeline` | Finding fixes per week: deployed, ready, in progress, failed; last 6 weeks (home widget). |
28
+ | `widgetHealth_trend` | `widget:health_trend` | Average health and complete reviews per week, last 8 weeks (home widget). |
29
+ | `widgetNeeds_attention` | `widget:needs_attention` | The four org agents with the lowest health on their latest complete review (home widget). |
30
+ | `widgetOpen_critical` | `widget:open_critical` | Critical findings on each org agent's latest complete review (home widget). |
package/index.d.ts CHANGED
@@ -9,18 +9,83 @@ export interface Bridge {
9
9
  }
10
10
 
11
11
  export interface AgentsClassifyInput {
12
- accessToken: string;
13
12
  agentDevName: string;
14
- instanceUrl: string;
13
+ connectionId: string;
15
14
  }
16
15
 
17
16
  export interface AgentsClassifyOutput {
18
17
  kind: string | null;
19
18
  }
20
19
 
20
+ export interface WidgetAvg_healthOutput {
21
+ amber: number;
22
+ empty: string;
23
+ href: string;
24
+ kind: string;
25
+ lines: unknown[];
26
+ max: number;
27
+ red: number;
28
+ value: number;
29
+ worse: string;
30
+ }
31
+
32
+ export interface WidgetFindingsOutput {
33
+ defaultType: string;
34
+ empty: string;
35
+ id: string;
36
+ kind: string;
37
+ tone: string;
38
+ views: unknown[];
39
+ }
40
+
41
+ export interface WidgetFix_pipelineOutput {
42
+ empty: string;
43
+ keys: unknown[];
44
+ kind: string;
45
+ rows: unknown[];
46
+ }
47
+
48
+ export interface WidgetHealth_trendOutput {
49
+ defaultType: string;
50
+ empty: string;
51
+ id: string;
52
+ kind: string;
53
+ tone: string;
54
+ views: unknown[];
55
+ }
56
+
57
+ export interface WidgetNeeds_attentionOutput {
58
+ empty: string;
59
+ items: unknown[];
60
+ kind: string;
61
+ }
62
+
63
+ export interface WidgetOpen_criticalOutput {
64
+ chip: string;
65
+ context: string;
66
+ detail: string;
67
+ empty: string;
68
+ href: string;
69
+ kind: string;
70
+ tone: string;
71
+ value: string;
72
+ }
73
+
21
74
  export interface AgentforceReviewClient {
22
75
  /** Classify one of the acting team's connected agents (by dev name) as agentscript | planner | legacy. */
23
76
  agentsClassify(payload: AgentsClassifyInput): Promise<AgentsClassifyOutput>;
77
+ /** Mean health of each org agent's latest complete review and its change in 30 days (home widget). */
78
+ widgetAvg_health(payload: Record<string, unknown>): Promise<WidgetAvg_healthOutput>;
79
+ /** Findings on each org agent's latest complete review, by severity and by area (home widget). */
80
+ widgetFindings(payload: Record<string, unknown>): Promise<WidgetFindingsOutput>;
81
+ /** Finding fixes per week: deployed, ready, in progress, failed; last 6 weeks (home widget). */
82
+ widgetFix_pipeline(payload: Record<string, unknown>): Promise<WidgetFix_pipelineOutput>;
83
+ /** Average health and complete reviews per week, last 8 weeks (home widget). */
84
+ widgetHealth_trend(payload: Record<string, unknown>): Promise<WidgetHealth_trendOutput>;
85
+ /** The four org agents with the lowest health on their latest complete review (home widget). */
86
+ widgetNeeds_attention(payload: Record<string, unknown>): Promise<WidgetNeeds_attentionOutput>;
87
+ /** Critical findings on each org agent's latest complete review (home widget). */
88
+ widgetOpen_critical(payload: Record<string, unknown>): Promise<WidgetOpen_criticalOutput>;
24
89
  }
25
90
 
26
91
  export declare function createClient(bridge: Bridge): AgentforceReviewClient;
package/index.js CHANGED
@@ -7,5 +7,11 @@ export function createClient(bridge) {
7
7
  if (!bridge) throw new Error('[agentforce-review-client] bridge is required');
8
8
  return {
9
9
  agentsClassify: (payload) => bridge.call({ targetApp: 'agentforce-review', operation: 'agents-classify', payload }),
10
+ widgetAvg_health: (payload) => bridge.call({ targetApp: 'agentforce-review', operation: 'widget:avg_health', payload }),
11
+ widgetFindings: (payload) => bridge.call({ targetApp: 'agentforce-review', operation: 'widget:findings', payload }),
12
+ widgetFix_pipeline: (payload) => bridge.call({ targetApp: 'agentforce-review', operation: 'widget:fix_pipeline', payload }),
13
+ widgetHealth_trend: (payload) => bridge.call({ targetApp: 'agentforce-review', operation: 'widget:health_trend', payload }),
14
+ widgetNeeds_attention: (payload) => bridge.call({ targetApp: 'agentforce-review', operation: 'widget:needs_attention', payload }),
15
+ widgetOpen_critical: (payload) => bridge.call({ targetApp: 'agentforce-review', operation: 'widget:open_critical', payload }),
10
16
  };
11
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentpulselabs/agentforce-review-client",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Typed AppBridge client for the agentforce-review app.",
5
5
  "type": "module",
6
6
  "main": "index.js",