@memberjunction/ai-agent-manager 2.55.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.
@@ -0,0 +1,4 @@
1
+
2
+ > @memberjunction/ai-agent-manager@2.55.0 build
3
+ > tsc
4
+
package/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # @memberjunction/ai-agent-manager
2
+
3
+ ## 2.55.0
4
+
5
+ ### Minor Changes
6
+
7
+ - c3a49ff: Agent Manager + SQL Server fix + fix deps in core-entity-forms
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @module @memberjunction/agent-manager-core
3
+ *
4
+ * Core interfaces and types for the MemberJunction Agent Manager system
5
+ */
6
+ export * from './interfaces/agent-definition.interface';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,cAAc,yCAAyC,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ /**
3
+ * @module @memberjunction/agent-manager-core
4
+ *
5
+ * Core interfaces and types for the MemberJunction Agent Manager system
6
+ */
7
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
8
+ if (k2 === undefined) k2 = k;
9
+ var desc = Object.getOwnPropertyDescriptor(m, k);
10
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
11
+ desc = { enumerable: true, get: function() { return m[k]; } };
12
+ }
13
+ Object.defineProperty(o, k2, desc);
14
+ }) : (function(o, m, k, k2) {
15
+ if (k2 === undefined) k2 = k;
16
+ o[k2] = m[k];
17
+ }));
18
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
19
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
20
+ };
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ // Export all interfaces
23
+ __exportStar(require("./interfaces/agent-definition.interface"), exports);
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;AAEH,wBAAwB;AACxB,0EAAwD"}
@@ -0,0 +1,64 @@
1
+ /**
2
+ * Agent Definition Interface for MemberJunction Agent Manager
3
+ *
4
+ * This interface defines the complete structure for AI agents at any level
5
+ * of hierarchy. All text fields support markdown formatting for rich documentation.
6
+ *
7
+ * @module @memberjunction/agent-manager-core
8
+ */
9
+ /**
10
+ * Complete agent definition that supports n-levels of sub-agent hierarchy
11
+ * All text fields support markdown formatting for rich documentation
12
+ */
13
+ export interface AIAgentDefinition {
14
+ name: string;
15
+ description: string;
16
+ readonly type: 'Loop';
17
+ purpose: string;
18
+ requirements: {
19
+ businessGoal: string;
20
+ functionalRequirements: string;
21
+ technicalRequirements: string;
22
+ dataRequirements: string;
23
+ integrationRequirements: string;
24
+ assumptions: string;
25
+ risks: string;
26
+ outOfScope: string;
27
+ };
28
+ successCriteria: string;
29
+ design: {
30
+ actions: [
31
+ {
32
+ id: string;
33
+ name: string;
34
+ reason: string;
35
+ }
36
+ ];
37
+ subAgents?: AIAgentDefinition[];
38
+ };
39
+ prompt: {
40
+ systemPrompt: string;
41
+ templateVariables: string;
42
+ promptNotes: string;
43
+ };
44
+ }
45
+ /**
46
+ * Root context for the Agent Manager that tracks the entire creation process
47
+ */
48
+ export interface AIAgentManagerContext {
49
+ agent: AIAgentDefinition;
50
+ processStage: 'requirements' | 'design' | 'prompting' | 'implementation' | 'validation' | 'complete';
51
+ session: {
52
+ id: string;
53
+ startedAt: string;
54
+ userId: string;
55
+ userName: string;
56
+ purpose: string;
57
+ notes: string;
58
+ };
59
+ validation?: {
60
+ isValid: boolean;
61
+ report: string;
62
+ };
63
+ }
64
+ //# sourceMappingURL=agent-definition.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-definition.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/agent-definition.interface.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAEhC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,OAAO,EAAE,MAAM,CAAC;IAGhB,YAAY,EAAE;QACZ,YAAY,EAAE,MAAM,CAAC;QACrB,sBAAsB,EAAE,MAAM,CAAC;QAC/B,qBAAqB,EAAE,MAAM,CAAC;QAC9B,gBAAgB,EAAE,MAAM,CAAC;QACzB,uBAAuB,EAAE,MAAM,CAAC;QAChC,WAAW,EAAE,MAAM,CAAC;QACpB,KAAK,EAAE,MAAM,CAAC;QACd,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IAEF,eAAe,EAAE,MAAM,CAAC;IAGxB,MAAM,EAAE;QACN,OAAO,EAAE;YACP;gBACE,EAAE,EAAE,MAAM,CAAC;gBACX,IAAI,EAAE,MAAM,CAAC;gBACb,MAAM,EAAE,MAAM,CAAA;aACf;SACF,CAAC;QAEF,SAAS,CAAC,EAAE,iBAAiB,EAAE,CAAC;KACjC,CAAC;IAGF,MAAM,EAAE;QACN,YAAY,EAAE,MAAM,CAAC;QACrB,iBAAiB,EAAE,MAAM,CAAC;QAC1B,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;CACH;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAEpC,KAAK,EAAE,iBAAiB,CAAC;IAGzB,YAAY,EAAE,cAAc,GAAG,QAAQ,GAAG,WAAW,GAAG,gBAAgB,GAAG,YAAY,GAAG,UAAU,CAAC;IAGrG,OAAO,EAAE;QACP,EAAE,EAAE,MAAM,CAAC;QACX,SAAS,EAAE,MAAM,CAAC;QAClB,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IAGF,UAAU,CAAC,EAAE;QACX,OAAO,EAAE,OAAO,CAAC;QACjB,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;CACH"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ /**
3
+ * Agent Definition Interface for MemberJunction Agent Manager
4
+ *
5
+ * This interface defines the complete structure for AI agents at any level
6
+ * of hierarchy. All text fields support markdown formatting for rich documentation.
7
+ *
8
+ * @module @memberjunction/agent-manager-core
9
+ */
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ //# sourceMappingURL=agent-definition.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-definition.interface.js","sourceRoot":"","sources":["../../src/interfaces/agent-definition.interface.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG"}
package/package.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "@memberjunction/ai-agent-manager",
3
+ "version": "2.55.0",
4
+ "description": "Core interfaces and types for the MemberJunction Agent Manager system",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "scripts": {
8
+ "build": "tsc",
9
+ "watch": "tsc -w",
10
+ "clean": "rimraf dist",
11
+ "prepublishOnly": "npm run build"
12
+ },
13
+ "keywords": [
14
+ "memberjunction",
15
+ "agent-manager",
16
+ "ai-agents",
17
+ "interfaces"
18
+ ],
19
+ "author": "MemberJunction",
20
+ "license": "ISC",
21
+ "devDependencies": {
22
+ "@types/node": "^18.11.0",
23
+ "rimraf": "^3.0.2",
24
+ "typescript": "^5.0.0"
25
+ }
26
+ }
package/src/index.ts ADDED
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @module @memberjunction/agent-manager-core
3
+ *
4
+ * Core interfaces and types for the MemberJunction Agent Manager system
5
+ */
6
+
7
+ // Export all interfaces
8
+ export * from './interfaces/agent-definition.interface';
@@ -0,0 +1,81 @@
1
+ /**
2
+ * Agent Definition Interface for MemberJunction Agent Manager
3
+ *
4
+ * This interface defines the complete structure for AI agents at any level
5
+ * of hierarchy. All text fields support markdown formatting for rich documentation.
6
+ *
7
+ * @module @memberjunction/agent-manager-core
8
+ */
9
+
10
+ /**
11
+ * Complete agent definition that supports n-levels of sub-agent hierarchy
12
+ * All text fields support markdown formatting for rich documentation
13
+ */
14
+ export interface AIAgentDefinition {
15
+ // Basic Information
16
+ name: string;
17
+ description: string;
18
+ readonly type: 'Loop' // ONLY LOOP FOR NOW | 'Sequential' | 'Graph';
19
+ purpose: string;
20
+
21
+ // Requirements & Specifications
22
+ requirements: {
23
+ businessGoal: string;
24
+ functionalRequirements: string;
25
+ technicalRequirements: string;
26
+ dataRequirements: string;
27
+ integrationRequirements: string;
28
+ assumptions: string;
29
+ risks: string;
30
+ outOfScope: string;
31
+ };
32
+
33
+ successCriteria: string;
34
+
35
+ // Design & Architecture
36
+ design: {
37
+ actions: [
38
+ {
39
+ id: string, // id of the action from the available actions in our system
40
+ name: string, // name of the action
41
+ reason: string // Why this action is needed
42
+ }
43
+ ];
44
+ // Sub-Agents (recursive structure for n-level depth)
45
+ subAgents?: AIAgentDefinition[];
46
+ };
47
+
48
+ // Prompt Configuration
49
+ prompt: {
50
+ systemPrompt: string;
51
+ templateVariables: string;
52
+ promptNotes: string;
53
+ };
54
+ }
55
+
56
+ /**
57
+ * Root context for the Agent Manager that tracks the entire creation process
58
+ */
59
+ export interface AIAgentManagerContext {
60
+ // The main agent being created/edited
61
+ agent: AIAgentDefinition;
62
+
63
+ // Process tracking
64
+ processStage: 'requirements' | 'design' | 'prompting' | 'implementation' | 'validation' | 'complete';
65
+
66
+ // Session information
67
+ session: {
68
+ id: string;
69
+ startedAt: string;
70
+ userId: string;
71
+ userName: string;
72
+ purpose: string;
73
+ notes: string;
74
+ };
75
+
76
+ // Validation results
77
+ validation?: {
78
+ isValid: boolean;
79
+ report: string;
80
+ };
81
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,24 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2020",
4
+ "module": "commonjs",
5
+ "lib": ["ES2020"],
6
+ "outDir": "dist",
7
+ "rootDir": "src",
8
+ "strict": true,
9
+ "esModuleInterop": true,
10
+ "skipLibCheck": true,
11
+ "forceConsistentCasingInFileNames": true,
12
+ "declaration": true,
13
+ "declarationMap": true,
14
+ "sourceMap": true,
15
+ "resolveJsonModule": true
16
+ },
17
+ "include": [
18
+ "src/**/*"
19
+ ],
20
+ "exclude": [
21
+ "node_modules",
22
+ "dist"
23
+ ]
24
+ }