@memberjunction/server 2.92.0 → 2.94.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 +40 -2
- package/dist/generated/generated.d.ts +23 -0
- package/dist/generated/generated.d.ts.map +1 -1
- package/dist/generated/generated.js +131 -0
- package/dist/generated/generated.js.map +1 -1
- package/dist/generic/RunViewResolver.d.ts +24 -0
- package/dist/generic/RunViewResolver.d.ts.map +1 -1
- package/dist/generic/RunViewResolver.js +67 -11
- package/dist/generic/RunViewResolver.js.map +1 -1
- package/dist/resolvers/ReportResolver.d.ts.map +1 -1
- package/dist/resolvers/ReportResolver.js +4 -5
- package/dist/resolvers/ReportResolver.js.map +1 -1
- package/dist/resolvers/RunAIAgentResolver.d.ts +5 -1
- package/dist/resolvers/RunAIAgentResolver.d.ts.map +1 -1
- package/dist/resolvers/RunAIAgentResolver.js +26 -2
- package/dist/resolvers/RunAIAgentResolver.js.map +1 -1
- package/dist/resolvers/RunAIPromptResolver.d.ts +34 -0
- package/dist/resolvers/RunAIPromptResolver.d.ts.map +1 -1
- package/dist/resolvers/RunAIPromptResolver.js +386 -2
- package/dist/resolvers/RunAIPromptResolver.js.map +1 -1
- package/package.json +39 -39
- package/src/generated/generated.ts +80 -0
- package/src/generic/RunViewResolver.ts +67 -8
- package/src/resolvers/ReportResolver.ts +5 -6
- package/src/resolvers/RunAIAgentResolver.ts +80 -13
- package/src/resolvers/RunAIPromptResolver.ts +568 -26
|
@@ -2485,6 +2485,8 @@ let AIAgentRun_ = class AIAgentRun_ {
|
|
|
2485
2485
|
Data;
|
|
2486
2486
|
Verbose;
|
|
2487
2487
|
EffortLevel;
|
|
2488
|
+
RunName;
|
|
2489
|
+
Comments;
|
|
2488
2490
|
Agent;
|
|
2489
2491
|
Conversation;
|
|
2490
2492
|
User;
|
|
@@ -2661,6 +2663,15 @@ __decorate([
|
|
|
2661
2663
|
Field(() => Int, { nullable: true, description: `Effort level that was actually used during this agent run execution (1-100, where 1=minimal effort, 100=maximum effort). This is the resolved effort level after applying the precedence hierarchy: runtime override > agent default > prompt defaults.` }),
|
|
2662
2664
|
__metadata("design:type", Number)
|
|
2663
2665
|
], AIAgentRun_.prototype, "EffortLevel", void 0);
|
|
2666
|
+
__decorate([
|
|
2667
|
+
Field({ nullable: true, description: `Optional name for the agent run to help identify and tag runs for easier reference` }),
|
|
2668
|
+
MaxLength(510),
|
|
2669
|
+
__metadata("design:type", String)
|
|
2670
|
+
], AIAgentRun_.prototype, "RunName", void 0);
|
|
2671
|
+
__decorate([
|
|
2672
|
+
Field({ nullable: true, description: `Human-readable notes and comments about this agent run` }),
|
|
2673
|
+
__metadata("design:type", String)
|
|
2674
|
+
], AIAgentRun_.prototype, "Comments", void 0);
|
|
2664
2675
|
__decorate([
|
|
2665
2676
|
Field({ nullable: true }),
|
|
2666
2677
|
MaxLength(510),
|
|
@@ -2743,6 +2754,8 @@ let CreateAIAgentRunInput = class CreateAIAgentRunInput {
|
|
|
2743
2754
|
Data;
|
|
2744
2755
|
Verbose;
|
|
2745
2756
|
EffortLevel;
|
|
2757
|
+
RunName;
|
|
2758
|
+
Comments;
|
|
2746
2759
|
};
|
|
2747
2760
|
__decorate([
|
|
2748
2761
|
Field({ nullable: true }),
|
|
@@ -2884,6 +2897,14 @@ __decorate([
|
|
|
2884
2897
|
Field(() => Int, { nullable: true }),
|
|
2885
2898
|
__metadata("design:type", Number)
|
|
2886
2899
|
], CreateAIAgentRunInput.prototype, "EffortLevel", void 0);
|
|
2900
|
+
__decorate([
|
|
2901
|
+
Field({ nullable: true }),
|
|
2902
|
+
__metadata("design:type", String)
|
|
2903
|
+
], CreateAIAgentRunInput.prototype, "RunName", void 0);
|
|
2904
|
+
__decorate([
|
|
2905
|
+
Field({ nullable: true }),
|
|
2906
|
+
__metadata("design:type", String)
|
|
2907
|
+
], CreateAIAgentRunInput.prototype, "Comments", void 0);
|
|
2887
2908
|
CreateAIAgentRunInput = __decorate([
|
|
2888
2909
|
InputType()
|
|
2889
2910
|
], CreateAIAgentRunInput);
|
|
@@ -2924,6 +2945,8 @@ let UpdateAIAgentRunInput = class UpdateAIAgentRunInput {
|
|
|
2924
2945
|
Data;
|
|
2925
2946
|
Verbose;
|
|
2926
2947
|
EffortLevel;
|
|
2948
|
+
RunName;
|
|
2949
|
+
Comments;
|
|
2927
2950
|
OldValues___;
|
|
2928
2951
|
};
|
|
2929
2952
|
__decorate([
|
|
@@ -3066,6 +3089,14 @@ __decorate([
|
|
|
3066
3089
|
Field(() => Int, { nullable: true }),
|
|
3067
3090
|
__metadata("design:type", Number)
|
|
3068
3091
|
], UpdateAIAgentRunInput.prototype, "EffortLevel", void 0);
|
|
3092
|
+
__decorate([
|
|
3093
|
+
Field({ nullable: true }),
|
|
3094
|
+
__metadata("design:type", String)
|
|
3095
|
+
], UpdateAIAgentRunInput.prototype, "RunName", void 0);
|
|
3096
|
+
__decorate([
|
|
3097
|
+
Field({ nullable: true }),
|
|
3098
|
+
__metadata("design:type", String)
|
|
3099
|
+
], UpdateAIAgentRunInput.prototype, "Comments", void 0);
|
|
3069
3100
|
__decorate([
|
|
3070
3101
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
3071
3102
|
__metadata("design:type", Array)
|
|
@@ -61546,6 +61577,7 @@ let ComponentLibrary_ = class ComponentLibrary_ {
|
|
|
61546
61577
|
_mj__UpdatedAt;
|
|
61547
61578
|
Status;
|
|
61548
61579
|
LintRules;
|
|
61580
|
+
Dependencies;
|
|
61549
61581
|
MJ_ComponentLibraryLinks_LibraryIDArray;
|
|
61550
61582
|
};
|
|
61551
61583
|
__decorate([
|
|
@@ -61611,6 +61643,10 @@ __decorate([
|
|
|
61611
61643
|
Field({ nullable: true, description: `JSON configuration for library-specific lint rules that are applied during component validation. This field contains structured rules that define how components using this library should be validated, including DOM element requirements, initialization patterns, lifecycle methods, and common error patterns. Example structure: {"initialization": {"constructorName": "Chart", "elementType": "canvas"}, "lifecycle": {"requiredMethods": ["render"], "cleanupMethods": ["destroy"]}}. The linter dynamically applies these rules based on the libraries referenced in a component spec, enabling extensible validation without hardcoding library-specific logic.` }),
|
|
61612
61644
|
__metadata("design:type", String)
|
|
61613
61645
|
], ComponentLibrary_.prototype, "LintRules", void 0);
|
|
61646
|
+
__decorate([
|
|
61647
|
+
Field({ nullable: true, description: `JSON object defining dependencies for this component library. Format: { "libraryName": "versionSpec", ... }. Version specifications follow NPM-style syntax (e.g., "~1.0.0", "^1.2.3", "2.3.4"). Dependencies are loaded before this library to ensure proper execution context.` }),
|
|
61648
|
+
__metadata("design:type", String)
|
|
61649
|
+
], ComponentLibrary_.prototype, "Dependencies", void 0);
|
|
61614
61650
|
__decorate([
|
|
61615
61651
|
Field(() => [ComponentLibraryLink_]),
|
|
61616
61652
|
__metadata("design:type", Array)
|
|
@@ -61631,6 +61667,7 @@ let CreateComponentLibraryInput = class CreateComponentLibraryInput {
|
|
|
61631
61667
|
Description;
|
|
61632
61668
|
Status;
|
|
61633
61669
|
LintRules;
|
|
61670
|
+
Dependencies;
|
|
61634
61671
|
};
|
|
61635
61672
|
__decorate([
|
|
61636
61673
|
Field({ nullable: true }),
|
|
@@ -61676,6 +61713,10 @@ __decorate([
|
|
|
61676
61713
|
Field({ nullable: true }),
|
|
61677
61714
|
__metadata("design:type", String)
|
|
61678
61715
|
], CreateComponentLibraryInput.prototype, "LintRules", void 0);
|
|
61716
|
+
__decorate([
|
|
61717
|
+
Field({ nullable: true }),
|
|
61718
|
+
__metadata("design:type", String)
|
|
61719
|
+
], CreateComponentLibraryInput.prototype, "Dependencies", void 0);
|
|
61679
61720
|
CreateComponentLibraryInput = __decorate([
|
|
61680
61721
|
InputType()
|
|
61681
61722
|
], CreateComponentLibraryInput);
|
|
@@ -61692,6 +61733,7 @@ let UpdateComponentLibraryInput = class UpdateComponentLibraryInput {
|
|
|
61692
61733
|
Description;
|
|
61693
61734
|
Status;
|
|
61694
61735
|
LintRules;
|
|
61736
|
+
Dependencies;
|
|
61695
61737
|
OldValues___;
|
|
61696
61738
|
};
|
|
61697
61739
|
__decorate([
|
|
@@ -61738,6 +61780,10 @@ __decorate([
|
|
|
61738
61780
|
Field({ nullable: true }),
|
|
61739
61781
|
__metadata("design:type", String)
|
|
61740
61782
|
], UpdateComponentLibraryInput.prototype, "LintRules", void 0);
|
|
61783
|
+
__decorate([
|
|
61784
|
+
Field({ nullable: true }),
|
|
61785
|
+
__metadata("design:type", String)
|
|
61786
|
+
], UpdateComponentLibraryInput.prototype, "Dependencies", void 0);
|
|
61741
61787
|
__decorate([
|
|
61742
61788
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
61743
61789
|
__metadata("design:type", Array)
|
|
@@ -66743,6 +66789,8 @@ let AIPromptRun_ = class AIPromptRun_ {
|
|
|
66743
66789
|
CompletionTime;
|
|
66744
66790
|
ModelSpecificResponseDetails;
|
|
66745
66791
|
EffortLevel;
|
|
66792
|
+
RunName;
|
|
66793
|
+
Comments;
|
|
66746
66794
|
Prompt;
|
|
66747
66795
|
Model;
|
|
66748
66796
|
Vendor;
|
|
@@ -67107,6 +67155,15 @@ __decorate([
|
|
|
67107
67155
|
Field(() => Int, { nullable: true, description: `Effort level that was actually used during this prompt run execution (1-100, where 1=minimal effort, 100=maximum effort). This is the resolved effort level after applying the precedence hierarchy: runtime override > agent default > prompt default > provider default.` }),
|
|
67108
67156
|
__metadata("design:type", Number)
|
|
67109
67157
|
], AIPromptRun_.prototype, "EffortLevel", void 0);
|
|
67158
|
+
__decorate([
|
|
67159
|
+
Field({ nullable: true, description: `Optional name for the prompt run to help identify and tag runs for easier reference` }),
|
|
67160
|
+
MaxLength(510),
|
|
67161
|
+
__metadata("design:type", String)
|
|
67162
|
+
], AIPromptRun_.prototype, "RunName", void 0);
|
|
67163
|
+
__decorate([
|
|
67164
|
+
Field({ nullable: true, description: `Human-readable notes and comments about this prompt run` }),
|
|
67165
|
+
__metadata("design:type", String)
|
|
67166
|
+
], AIPromptRun_.prototype, "Comments", void 0);
|
|
67110
67167
|
__decorate([
|
|
67111
67168
|
Field(),
|
|
67112
67169
|
MaxLength(510),
|
|
@@ -67239,6 +67296,8 @@ let CreateAIPromptRunInput = class CreateAIPromptRunInput {
|
|
|
67239
67296
|
CompletionTime;
|
|
67240
67297
|
ModelSpecificResponseDetails;
|
|
67241
67298
|
EffortLevel;
|
|
67299
|
+
RunName;
|
|
67300
|
+
Comments;
|
|
67242
67301
|
};
|
|
67243
67302
|
__decorate([
|
|
67244
67303
|
Field({ nullable: true }),
|
|
@@ -67556,6 +67615,14 @@ __decorate([
|
|
|
67556
67615
|
Field(() => Int, { nullable: true }),
|
|
67557
67616
|
__metadata("design:type", Number)
|
|
67558
67617
|
], CreateAIPromptRunInput.prototype, "EffortLevel", void 0);
|
|
67618
|
+
__decorate([
|
|
67619
|
+
Field({ nullable: true }),
|
|
67620
|
+
__metadata("design:type", String)
|
|
67621
|
+
], CreateAIPromptRunInput.prototype, "RunName", void 0);
|
|
67622
|
+
__decorate([
|
|
67623
|
+
Field({ nullable: true }),
|
|
67624
|
+
__metadata("design:type", String)
|
|
67625
|
+
], CreateAIPromptRunInput.prototype, "Comments", void 0);
|
|
67559
67626
|
CreateAIPromptRunInput = __decorate([
|
|
67560
67627
|
InputType()
|
|
67561
67628
|
], CreateAIPromptRunInput);
|
|
@@ -67640,6 +67707,8 @@ let UpdateAIPromptRunInput = class UpdateAIPromptRunInput {
|
|
|
67640
67707
|
CompletionTime;
|
|
67641
67708
|
ModelSpecificResponseDetails;
|
|
67642
67709
|
EffortLevel;
|
|
67710
|
+
RunName;
|
|
67711
|
+
Comments;
|
|
67643
67712
|
OldValues___;
|
|
67644
67713
|
};
|
|
67645
67714
|
__decorate([
|
|
@@ -67958,6 +68027,14 @@ __decorate([
|
|
|
67958
68027
|
Field(() => Int, { nullable: true }),
|
|
67959
68028
|
__metadata("design:type", Number)
|
|
67960
68029
|
], UpdateAIPromptRunInput.prototype, "EffortLevel", void 0);
|
|
68030
|
+
__decorate([
|
|
68031
|
+
Field({ nullable: true }),
|
|
68032
|
+
__metadata("design:type", String)
|
|
68033
|
+
], UpdateAIPromptRunInput.prototype, "RunName", void 0);
|
|
68034
|
+
__decorate([
|
|
68035
|
+
Field({ nullable: true }),
|
|
68036
|
+
__metadata("design:type", String)
|
|
68037
|
+
], UpdateAIPromptRunInput.prototype, "Comments", void 0);
|
|
67961
68038
|
__decorate([
|
|
67962
68039
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
67963
68040
|
__metadata("design:type", Array)
|
|
@@ -68169,6 +68246,9 @@ let AIAgentRunStep_ = class AIAgentRunStep_ {
|
|
|
68169
68246
|
PayloadAtEnd;
|
|
68170
68247
|
FinalPayloadValidationResult;
|
|
68171
68248
|
FinalPayloadValidationMessages;
|
|
68249
|
+
ParentID;
|
|
68250
|
+
Comments;
|
|
68251
|
+
MJ_AIAgentRunSteps_ParentIDArray;
|
|
68172
68252
|
};
|
|
68173
68253
|
__decorate([
|
|
68174
68254
|
Field({ description: `Unique identifier for this execution step` }),
|
|
@@ -68265,6 +68345,19 @@ __decorate([
|
|
|
68265
68345
|
detailed information about what validation rules failed.` }),
|
|
68266
68346
|
__metadata("design:type", String)
|
|
68267
68347
|
], AIAgentRunStep_.prototype, "FinalPayloadValidationMessages", void 0);
|
|
68348
|
+
__decorate([
|
|
68349
|
+
Field({ nullable: true, description: `Optional reference to parent step for tracking hierarchical relationships like code->test->fix->code cycles` }),
|
|
68350
|
+
MaxLength(16),
|
|
68351
|
+
__metadata("design:type", String)
|
|
68352
|
+
], AIAgentRunStep_.prototype, "ParentID", void 0);
|
|
68353
|
+
__decorate([
|
|
68354
|
+
Field({ nullable: true, description: `Human-readable notes and comments about this agent run step` }),
|
|
68355
|
+
__metadata("design:type", String)
|
|
68356
|
+
], AIAgentRunStep_.prototype, "Comments", void 0);
|
|
68357
|
+
__decorate([
|
|
68358
|
+
Field(() => [AIAgentRunStep_]),
|
|
68359
|
+
__metadata("design:type", Array)
|
|
68360
|
+
], AIAgentRunStep_.prototype, "MJ_AIAgentRunSteps_ParentIDArray", void 0);
|
|
68268
68361
|
AIAgentRunStep_ = __decorate([
|
|
68269
68362
|
ObjectType({ description: `Provides basic, step-by-step tracking of agent execution. Each step represents a discrete action within an agent run, such as prompt execution, tool usage, decision making, or sub-agent coordination.` })
|
|
68270
68363
|
], AIAgentRunStep_);
|
|
@@ -68288,6 +68381,8 @@ let CreateAIAgentRunStepInput = class CreateAIAgentRunStepInput {
|
|
|
68288
68381
|
PayloadAtEnd;
|
|
68289
68382
|
FinalPayloadValidationResult;
|
|
68290
68383
|
FinalPayloadValidationMessages;
|
|
68384
|
+
ParentID;
|
|
68385
|
+
Comments;
|
|
68291
68386
|
};
|
|
68292
68387
|
__decorate([
|
|
68293
68388
|
Field({ nullable: true }),
|
|
@@ -68361,6 +68456,14 @@ __decorate([
|
|
|
68361
68456
|
Field({ nullable: true }),
|
|
68362
68457
|
__metadata("design:type", String)
|
|
68363
68458
|
], CreateAIAgentRunStepInput.prototype, "FinalPayloadValidationMessages", void 0);
|
|
68459
|
+
__decorate([
|
|
68460
|
+
Field({ nullable: true }),
|
|
68461
|
+
__metadata("design:type", String)
|
|
68462
|
+
], CreateAIAgentRunStepInput.prototype, "ParentID", void 0);
|
|
68463
|
+
__decorate([
|
|
68464
|
+
Field({ nullable: true }),
|
|
68465
|
+
__metadata("design:type", String)
|
|
68466
|
+
], CreateAIAgentRunStepInput.prototype, "Comments", void 0);
|
|
68364
68467
|
CreateAIAgentRunStepInput = __decorate([
|
|
68365
68468
|
InputType()
|
|
68366
68469
|
], CreateAIAgentRunStepInput);
|
|
@@ -68384,6 +68487,8 @@ let UpdateAIAgentRunStepInput = class UpdateAIAgentRunStepInput {
|
|
|
68384
68487
|
PayloadAtEnd;
|
|
68385
68488
|
FinalPayloadValidationResult;
|
|
68386
68489
|
FinalPayloadValidationMessages;
|
|
68490
|
+
ParentID;
|
|
68491
|
+
Comments;
|
|
68387
68492
|
OldValues___;
|
|
68388
68493
|
};
|
|
68389
68494
|
__decorate([
|
|
@@ -68458,6 +68563,14 @@ __decorate([
|
|
|
68458
68563
|
Field({ nullable: true }),
|
|
68459
68564
|
__metadata("design:type", String)
|
|
68460
68565
|
], UpdateAIAgentRunStepInput.prototype, "FinalPayloadValidationMessages", void 0);
|
|
68566
|
+
__decorate([
|
|
68567
|
+
Field({ nullable: true }),
|
|
68568
|
+
__metadata("design:type", String)
|
|
68569
|
+
], UpdateAIAgentRunStepInput.prototype, "ParentID", void 0);
|
|
68570
|
+
__decorate([
|
|
68571
|
+
Field({ nullable: true }),
|
|
68572
|
+
__metadata("design:type", String)
|
|
68573
|
+
], UpdateAIAgentRunStepInput.prototype, "Comments", void 0);
|
|
68461
68574
|
__decorate([
|
|
68462
68575
|
Field(() => [KeyValuePairInput], { nullable: true }),
|
|
68463
68576
|
__metadata("design:type", Array)
|
|
@@ -68530,6 +68643,15 @@ let AIAgentRunStepResolver = class AIAgentRunStepResolver extends ResolverBase {
|
|
|
68530
68643
|
const result = this.MapFieldNamesToCodeNames('MJ: AI Agent Run Steps', rows && rows.length > 0 ? rows[0] : {});
|
|
68531
68644
|
return result;
|
|
68532
68645
|
}
|
|
68646
|
+
async MJ_AIAgentRunSteps_ParentIDArray(aiagentrunstep_, { dataSources, userPayload, providers }, pubSub) {
|
|
68647
|
+
this.CheckUserReadPermissions('MJ: AI Agent Run Steps', userPayload);
|
|
68648
|
+
const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
|
|
68649
|
+
const connPool = GetReadOnlyDataSource(dataSources, { allowFallbackToReadWrite: true });
|
|
68650
|
+
const sSQL = `SELECT * FROM [${Metadata.Provider.ConfigData.MJCoreSchemaName}].[vwAIAgentRunSteps] WHERE [ParentID]='${aiagentrunstep_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Run Steps', userPayload, EntityPermissionType.Read, 'AND');
|
|
68651
|
+
const rows = await SQLServerDataProvider.ExecuteSQLWithPool(connPool, sSQL, undefined, this.GetUserFromPayload(userPayload));
|
|
68652
|
+
const result = this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Run Steps', rows);
|
|
68653
|
+
return result;
|
|
68654
|
+
}
|
|
68533
68655
|
async CreateAIAgentRunStep(input, { providers, userPayload }, pubSub) {
|
|
68534
68656
|
const provider = GetReadWriteProvider(providers);
|
|
68535
68657
|
return this.CreateRecord('MJ: AI Agent Run Steps', input, provider, userPayload, pubSub);
|
|
@@ -68580,6 +68702,15 @@ __decorate([
|
|
|
68580
68702
|
__metadata("design:paramtypes", [String, Object, PubSubEngine]),
|
|
68581
68703
|
__metadata("design:returntype", Promise)
|
|
68582
68704
|
], AIAgentRunStepResolver.prototype, "AIAgentRunStep", null);
|
|
68705
|
+
__decorate([
|
|
68706
|
+
FieldResolver(() => [AIAgentRunStep_]),
|
|
68707
|
+
__param(0, Root()),
|
|
68708
|
+
__param(1, Ctx()),
|
|
68709
|
+
__param(2, PubSub()),
|
|
68710
|
+
__metadata("design:type", Function),
|
|
68711
|
+
__metadata("design:paramtypes", [AIAgentRunStep_, Object, PubSubEngine]),
|
|
68712
|
+
__metadata("design:returntype", Promise)
|
|
68713
|
+
], AIAgentRunStepResolver.prototype, "MJ_AIAgentRunSteps_ParentIDArray", null);
|
|
68583
68714
|
__decorate([
|
|
68584
68715
|
Mutation(() => AIAgentRunStep_),
|
|
68585
68716
|
__param(0, Arg('input', () => CreateAIAgentRunStepInput)),
|