@agentpulselabs/agentforce-review-client 0.1.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 +24 -0
- package/index.d.ts +26 -0
- package/index.js +11 -0
- package/package.json +17 -0
package/README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# @agentpulselabs/agentforce-review-client
|
|
2
|
+
|
|
3
|
+
Typed [AppBridge](https://www.npmjs.com/package/@agentpulselabs/platform-sdk) client for the `agentforce-review` app. Bridge-injected — no runtime dependency on `agentforce-review` or `@agentpulse/platform`.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
npm i @agentpulselabs/agentforce-review-client
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```js
|
|
14
|
+
import { createClient } from '@agentpulselabs/agentforce-review-client';
|
|
15
|
+
|
|
16
|
+
const agentforce_review = createClient(Platform.Bridge);
|
|
17
|
+
const result = await agentforce_review.agentsClassify(payload);
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Operations (AgentforceReview)
|
|
21
|
+
|
|
22
|
+
| Method | Op | Summary |
|
|
23
|
+
| --- | --- | --- |
|
|
24
|
+
| `agentsClassify` | `agents-classify` | Classify one of the acting team's connected agents (by dev name) as agentscript \| planner \| legacy. |
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// GENERATED — DO NOT EDIT BY HAND.
|
|
2
|
+
// Source: Bridge.provide()/bridge.provide() calls in this app (scripts/lib/bridgeProvide.mjs).
|
|
3
|
+
// Regenerate: node scripts/generate-app-client-package.mjs --app-root <this-app>
|
|
4
|
+
// See docs/DESIGN_app-client-packages.md.
|
|
5
|
+
|
|
6
|
+
/** Minimal shape of the injected AppBridge facade this client is built on (Platform.Bridge). */
|
|
7
|
+
export interface Bridge {
|
|
8
|
+
call(req: { targetApp: string; operation: string; payload?: unknown }): Promise<unknown>;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface AgentsClassifyInput {
|
|
12
|
+
accessToken: string;
|
|
13
|
+
agentDevName: string;
|
|
14
|
+
instanceUrl: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface AgentsClassifyOutput {
|
|
18
|
+
kind: string | null;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface AgentforceReviewClient {
|
|
22
|
+
/** Classify one of the acting team's connected agents (by dev name) as agentscript | planner | legacy. */
|
|
23
|
+
agentsClassify(payload: AgentsClassifyInput): Promise<AgentsClassifyOutput>;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export declare function createClient(bridge: Bridge): AgentforceReviewClient;
|
package/index.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// GENERATED — DO NOT EDIT BY HAND.
|
|
2
|
+
// Source: Bridge.provide()/bridge.provide() calls in this app (scripts/lib/bridgeProvide.mjs).
|
|
3
|
+
// Regenerate: node scripts/generate-app-client-package.mjs --app-root <this-app>
|
|
4
|
+
// See docs/DESIGN_app-client-packages.md.
|
|
5
|
+
|
|
6
|
+
export function createClient(bridge) {
|
|
7
|
+
if (!bridge) throw new Error('[agentforce-review-client] bridge is required');
|
|
8
|
+
return {
|
|
9
|
+
agentsClassify: (payload) => bridge.call({ targetApp: 'agentforce-review', operation: 'agents-classify', payload }),
|
|
10
|
+
};
|
|
11
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@agentpulselabs/agentforce-review-client",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Typed AppBridge client for the agentforce-review app.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "index.js",
|
|
7
|
+
"types": "index.d.ts",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"files": [
|
|
10
|
+
"index.js",
|
|
11
|
+
"index.d.ts",
|
|
12
|
+
"README.md"
|
|
13
|
+
],
|
|
14
|
+
"publishConfig": {
|
|
15
|
+
"access": "public"
|
|
16
|
+
}
|
|
17
|
+
}
|