@adminforth/agent 1.53.2 → 2.0.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/build.log +2 -2
- package/custom/ChatFooter.vue +1 -1
- package/dist/custom/ChatFooter.vue +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +4 -3
- package/index.ts +3 -2
- package/package.json +3 -3
- package/pnpm-workspace.yaml +1 -1
package/build.log
CHANGED
|
@@ -63,5 +63,5 @@ custom/speech_recognition_frontend/voiceActivityDetection.ts
|
|
|
63
63
|
custom/speech_recognition_frontend/types/
|
|
64
64
|
custom/speech_recognition_frontend/types/voice-activity-detection.d.ts
|
|
65
65
|
|
|
66
|
-
sent 1,683,
|
|
67
|
-
total size is 1,679,
|
|
66
|
+
sent 1,683,304 bytes received 940 bytes 3,368,488.00 bytes/sec
|
|
67
|
+
total size is 1,679,043 speedup is 1.00
|
package/custom/ChatFooter.vue
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export type { AgentEvent, AgentEventEmitter } from "./agentEvents.js";
|
|
|
5
5
|
export default class AdminForthAgentPlugin extends AdminForthPlugin {
|
|
6
6
|
options: PluginOptions;
|
|
7
7
|
agentSystemPromptPromise: Promise<string>;
|
|
8
|
+
pluginsScope: "resource" | "global";
|
|
8
9
|
private checkpointer;
|
|
9
10
|
private sessionStore;
|
|
10
11
|
private agentTurnService;
|
|
@@ -14,7 +15,7 @@ export default class AdminForthAgentPlugin extends AdminForthPlugin {
|
|
|
14
15
|
private getCheckpointer;
|
|
15
16
|
private getInternalAgentResourceIds;
|
|
16
17
|
constructor(options: PluginOptions);
|
|
17
|
-
|
|
18
|
+
modifyGlobalConfig(adminforth: IAdminForth): Promise<void>;
|
|
18
19
|
validateConfigAfterDiscover(adminforth: IAdminForth, resourceConfig: AdminForthResource): void;
|
|
19
20
|
instanceUniqueRepresentation(pluginOptions: any): string;
|
|
20
21
|
setupEndpoints(server: IHttpServer): void;
|
package/dist/index.js
CHANGED
|
@@ -55,6 +55,7 @@ export default class AdminForthAgentPlugin extends AdminForthPlugin {
|
|
|
55
55
|
constructor(options) {
|
|
56
56
|
var _a;
|
|
57
57
|
super(options, import.meta.url);
|
|
58
|
+
this.pluginsScope = "global";
|
|
58
59
|
this.checkpointer = null;
|
|
59
60
|
this.options = options;
|
|
60
61
|
this.sessionStore = new AgentSessionStore(() => this.adminforth, this.options);
|
|
@@ -75,13 +76,13 @@ export default class AdminForthAgentPlugin extends AdminForthPlugin {
|
|
|
75
76
|
this.agentSystemPromptPromise = Promise.resolve(appendCustomSystemPrompt(DEFAULT_AGENT_SYSTEM_PROMPT, this.options.systemPrompt));
|
|
76
77
|
this.shouldHaveSingleInstancePerWholeApp = () => false;
|
|
77
78
|
}
|
|
78
|
-
|
|
79
|
+
modifyGlobalConfig(adminforth) {
|
|
79
80
|
const _super = Object.create(null, {
|
|
80
|
-
|
|
81
|
+
modifyGlobalConfig: { get: () => super.modifyGlobalConfig }
|
|
81
82
|
});
|
|
82
83
|
return __awaiter(this, void 0, void 0, function* () {
|
|
83
84
|
var _a, _b;
|
|
84
|
-
_super.
|
|
85
|
+
_super.modifyGlobalConfig.call(this, adminforth);
|
|
85
86
|
if (!((_a = this.options.modes) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
86
87
|
throw new Error("modes is required for AdminForthAgentPlugin");
|
|
87
88
|
}
|
package/index.ts
CHANGED
|
@@ -34,6 +34,7 @@ export type { AgentEvent, AgentEventEmitter } from "./agentEvents.js";
|
|
|
34
34
|
export default class AdminForthAgentPlugin extends AdminForthPlugin {
|
|
35
35
|
options: PluginOptions;
|
|
36
36
|
agentSystemPromptPromise: Promise<string>;
|
|
37
|
+
pluginsScope: "resource" | "global" = "global";
|
|
37
38
|
private checkpointer: BaseCheckpointSaver | null = null;
|
|
38
39
|
private sessionStore: AgentSessionStore;
|
|
39
40
|
private agentTurnService: AgentTurnService;
|
|
@@ -112,8 +113,8 @@ export default class AdminForthAgentPlugin extends AdminForthPlugin {
|
|
|
112
113
|
this.shouldHaveSingleInstancePerWholeApp = () => false;
|
|
113
114
|
}
|
|
114
115
|
|
|
115
|
-
async
|
|
116
|
-
super.
|
|
116
|
+
async modifyGlobalConfig(adminforth: IAdminForth) {
|
|
117
|
+
super.modifyGlobalConfig(adminforth);
|
|
117
118
|
if (!this.options.modes?.length) {
|
|
118
119
|
throw new Error("modes is required for AdminForthAgentPlugin");
|
|
119
120
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adminforth/agent",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"description": "AI agent plugin for AdminForth with tool-based workflows and persistent chat sessions",
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/node": "latest",
|
|
28
|
-
"adminforth": "^3.
|
|
28
|
+
"adminforth": "^3.5.0",
|
|
29
29
|
"semantic-release": "^24.2.1",
|
|
30
30
|
"semantic-release-slack-bot": "^4.0.2",
|
|
31
31
|
"typescript": "^5.7.3"
|
|
@@ -67,6 +67,6 @@
|
|
|
67
67
|
}
|
|
68
68
|
],
|
|
69
69
|
"peerDependencies": {
|
|
70
|
-
"adminforth": "^3.1.
|
|
70
|
+
"adminforth": "^3.1.0"
|
|
71
71
|
}
|
|
72
72
|
}
|
package/pnpm-workspace.yaml
CHANGED