@memberjunction/core-entities 2.92.0 → 2.93.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/dist/engines/component-metadata.d.ts +5 -1
- package/dist/engines/component-metadata.d.ts.map +1 -1
- package/dist/engines/component-metadata.js +16 -0
- package/dist/engines/component-metadata.js.map +1 -1
- package/dist/generated/entity_subclasses.d.ts +67 -0
- package/dist/generated/entity_subclasses.d.ts.map +1 -1
- package/dist/generated/entity_subclasses.js +104 -0
- package/dist/generated/entity_subclasses.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseEngine, IMetadataProvider, UserInfo } from "@memberjunction/core";
|
|
2
2
|
import { ComponentEntityExtended } from "../custom/ComponentEntityExtended";
|
|
3
|
-
import { ComponentLibraryEntity, ComponentLibraryLinkEntity } from "../generated/entity_subclasses";
|
|
3
|
+
import { ComponentLibraryEntity, ComponentLibraryLinkEntity, ComponentRegistryEntity, ComponentDependencyEntity } from "../generated/entity_subclasses";
|
|
4
4
|
/**
|
|
5
5
|
* Caching of metadata for components and related data
|
|
6
6
|
*/
|
|
@@ -12,9 +12,13 @@ export declare class ComponentMetadataEngine extends BaseEngine<ComponentMetadat
|
|
|
12
12
|
private _components;
|
|
13
13
|
private _componentLibraries;
|
|
14
14
|
private _componentLibraryLinks;
|
|
15
|
+
private _componentRegistries;
|
|
16
|
+
private _componentDependencies;
|
|
15
17
|
Config(forceRefresh?: boolean, contextUser?: UserInfo, provider?: IMetadataProvider): Promise<void>;
|
|
16
18
|
get Components(): ComponentEntityExtended[];
|
|
17
19
|
get ComponentLibraries(): ComponentLibraryEntity[];
|
|
18
20
|
get ComponentLibraryLinks(): ComponentLibraryLinkEntity[];
|
|
21
|
+
get ComponentRegistries(): ComponentRegistryEntity[];
|
|
22
|
+
get ComponentDependencies(): ComponentDependencyEntity[];
|
|
19
23
|
}
|
|
20
24
|
//# sourceMappingURL=component-metadata.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-metadata.d.ts","sourceRoot":"","sources":["../../src/engines/component-metadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA4B,iBAAiB,
|
|
1
|
+
{"version":3,"file":"component-metadata.d.ts","sourceRoot":"","sources":["../../src/engines/component-metadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA4B,iBAAiB,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACzG,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EACH,sBAAsB,EACtB,0BAA0B,EAC1B,uBAAuB,EACvB,yBAAyB,EAC5B,MAAM,gCAAgC,CAAC;AAExC;;GAEG;AACH,qBAAa,uBAAwB,SAAQ,UAAU,CAAC,uBAAuB,CAAC;IAC5E;;OAEG;IACH,WAAkB,QAAQ,IAAI,uBAAuB,CAEpD;IAED,OAAO,CAAC,WAAW,CAA4B;IAC/C,OAAO,CAAC,mBAAmB,CAA2B;IACtD,OAAO,CAAC,sBAAsB,CAA+B;IAC7D,OAAO,CAAC,oBAAoB,CAA4B;IACxD,OAAO,CAAC,sBAAsB,CAA8B;IAE/C,MAAM,CAAC,YAAY,CAAC,EAAE,OAAO,EAAE,WAAW,CAAC,EAAE,QAAQ,EAAE,QAAQ,CAAC,EAAE,iBAAiB;IA+BhG,IAAW,UAAU,IAAI,uBAAuB,EAAE,CAEjD;IAED,IAAW,kBAAkB,IAAI,sBAAsB,EAAE,CAExD;IAED,IAAW,qBAAqB,IAAI,0BAA0B,EAAE,CAE/D;IAED,IAAW,mBAAmB,IAAI,uBAAuB,EAAE,CAE1D;IAED,IAAW,qBAAqB,IAAI,yBAAyB,EAAE,CAE9D;CACJ"}
|
|
@@ -28,6 +28,16 @@ class ComponentMetadataEngine extends core_1.BaseEngine {
|
|
|
28
28
|
Type: 'entity',
|
|
29
29
|
EntityName: 'MJ: Component Library Links',
|
|
30
30
|
PropertyName: "_componentLibraryLinks"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
Type: 'entity',
|
|
34
|
+
EntityName: 'MJ: Component Registries',
|
|
35
|
+
PropertyName: "_componentRegistries"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
Type: 'entity',
|
|
39
|
+
EntityName: 'MJ: Component Dependencies',
|
|
40
|
+
PropertyName: "_componentDependencies"
|
|
31
41
|
}
|
|
32
42
|
];
|
|
33
43
|
await this.Load(c, provider, forceRefresh, contextUser);
|
|
@@ -41,6 +51,12 @@ class ComponentMetadataEngine extends core_1.BaseEngine {
|
|
|
41
51
|
get ComponentLibraryLinks() {
|
|
42
52
|
return this._componentLibraryLinks;
|
|
43
53
|
}
|
|
54
|
+
get ComponentRegistries() {
|
|
55
|
+
return this._componentRegistries;
|
|
56
|
+
}
|
|
57
|
+
get ComponentDependencies() {
|
|
58
|
+
return this._componentDependencies;
|
|
59
|
+
}
|
|
44
60
|
}
|
|
45
61
|
exports.ComponentMetadataEngine = ComponentMetadataEngine;
|
|
46
62
|
//# sourceMappingURL=component-metadata.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-metadata.js","sourceRoot":"","sources":["../../src/engines/component-metadata.ts"],"names":[],"mappings":";;;AAAA,+
|
|
1
|
+
{"version":3,"file":"component-metadata.js","sourceRoot":"","sources":["../../src/engines/component-metadata.ts"],"names":[],"mappings":";;;AAAA,+CAAyG;AASzG;;GAEG;AACH,MAAa,uBAAwB,SAAQ,iBAAmC;IAC5E;;OAEG;IACI,MAAM,KAAK,QAAQ;QACvB,OAAO,KAAK,CAAC,WAAW,EAA2B,CAAC;IACvD,CAAC;IAQM,KAAK,CAAC,MAAM,CAAC,YAAsB,EAAE,WAAsB,EAAE,QAA4B;QAC5F,MAAM,CAAC,GAAwC;YAC3C;gBACI,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE,gBAAgB;gBAC5B,YAAY,EAAE,aAAa;aAC9B;YACD;gBACI,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE,yBAAyB;gBACrC,YAAY,EAAE,qBAAqB;aACtC;YACD;gBACI,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE,6BAA6B;gBACzC,YAAY,EAAE,wBAAwB;aACzC;YACD;gBACI,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE,0BAA0B;gBACtC,YAAY,EAAE,sBAAsB;aACvC;YACD;gBACI,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE,4BAA4B;gBACxC,YAAY,EAAE,wBAAwB;aACzC;SACJ,CAAA;QACD,MAAM,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,QAAQ,EAAE,YAAY,EAAE,WAAW,CAAC,CAAC;IAC5D,CAAC;IAED,IAAW,UAAU;QACjB,OAAO,IAAI,CAAC,WAAW,CAAC;IAC5B,CAAC;IAED,IAAW,kBAAkB;QACzB,OAAO,IAAI,CAAC,mBAAmB,CAAC;IACpC,CAAC;IAED,IAAW,qBAAqB;QAC5B,OAAO,IAAI,CAAC,sBAAsB,CAAC;IACvC,CAAC;IAED,IAAW,mBAAmB;QAC1B,OAAO,IAAI,CAAC,oBAAoB,CAAC;IACrC,CAAC;IAED,IAAW,qBAAqB;QAC5B,OAAO,IAAI,CAAC,sBAAsB,CAAC;IACvC,CAAC;CACJ;AAhED,0DAgEC"}
|
|
@@ -4752,10 +4752,14 @@ export declare const AIAgentRunStepSchema: z.ZodObject<{
|
|
|
4752
4752
|
PayloadAtEnd: z.ZodNullable<z.ZodString>;
|
|
4753
4753
|
FinalPayloadValidationResult: z.ZodNullable<z.ZodString>;
|
|
4754
4754
|
FinalPayloadValidationMessages: z.ZodNullable<z.ZodString>;
|
|
4755
|
+
ParentID: z.ZodNullable<z.ZodString>;
|
|
4756
|
+
Comments: z.ZodNullable<z.ZodString>;
|
|
4755
4757
|
}, "strip", z.ZodTypeAny, {
|
|
4756
4758
|
ID?: string;
|
|
4759
|
+
Comments?: string;
|
|
4757
4760
|
__mj_CreatedAt?: Date;
|
|
4758
4761
|
__mj_UpdatedAt?: Date;
|
|
4762
|
+
ParentID?: string;
|
|
4759
4763
|
Status?: "Failed" | "Running" | "Completed" | "Cancelled";
|
|
4760
4764
|
StartedAt?: Date;
|
|
4761
4765
|
Success?: boolean;
|
|
@@ -4775,8 +4779,10 @@ export declare const AIAgentRunStepSchema: z.ZodObject<{
|
|
|
4775
4779
|
FinalPayloadValidationMessages?: string;
|
|
4776
4780
|
}, {
|
|
4777
4781
|
ID?: string;
|
|
4782
|
+
Comments?: string;
|
|
4778
4783
|
__mj_CreatedAt?: Date;
|
|
4779
4784
|
__mj_UpdatedAt?: Date;
|
|
4785
|
+
ParentID?: string;
|
|
4780
4786
|
Status?: "Failed" | "Running" | "Completed" | "Cancelled";
|
|
4781
4787
|
StartedAt?: Date;
|
|
4782
4788
|
Success?: boolean;
|
|
@@ -4837,6 +4843,8 @@ export declare const AIAgentRunSchema: z.ZodObject<{
|
|
|
4837
4843
|
Data: z.ZodNullable<z.ZodString>;
|
|
4838
4844
|
Verbose: z.ZodNullable<z.ZodBoolean>;
|
|
4839
4845
|
EffortLevel: z.ZodNullable<z.ZodNumber>;
|
|
4846
|
+
RunName: z.ZodNullable<z.ZodString>;
|
|
4847
|
+
Comments: z.ZodNullable<z.ZodString>;
|
|
4840
4848
|
Agent: z.ZodNullable<z.ZodString>;
|
|
4841
4849
|
Conversation: z.ZodNullable<z.ZodString>;
|
|
4842
4850
|
User: z.ZodNullable<z.ZodString>;
|
|
@@ -4845,6 +4853,7 @@ export declare const AIAgentRunSchema: z.ZodObject<{
|
|
|
4845
4853
|
OverrideVendor: z.ZodNullable<z.ZodString>;
|
|
4846
4854
|
}, "strip", z.ZodTypeAny, {
|
|
4847
4855
|
ID?: string;
|
|
4856
|
+
Comments?: string;
|
|
4848
4857
|
__mj_CreatedAt?: Date;
|
|
4849
4858
|
__mj_UpdatedAt?: Date;
|
|
4850
4859
|
Status?: "Failed" | "Running" | "Completed" | "Cancelled" | "Paused";
|
|
@@ -4885,10 +4894,12 @@ export declare const AIAgentRunSchema: z.ZodObject<{
|
|
|
4885
4894
|
OverrideVendorID?: string;
|
|
4886
4895
|
Data?: string;
|
|
4887
4896
|
Verbose?: boolean;
|
|
4897
|
+
RunName?: string;
|
|
4888
4898
|
OverrideModel?: string;
|
|
4889
4899
|
OverrideVendor?: string;
|
|
4890
4900
|
}, {
|
|
4891
4901
|
ID?: string;
|
|
4902
|
+
Comments?: string;
|
|
4892
4903
|
__mj_CreatedAt?: Date;
|
|
4893
4904
|
__mj_UpdatedAt?: Date;
|
|
4894
4905
|
Status?: "Failed" | "Running" | "Completed" | "Cancelled" | "Paused";
|
|
@@ -4929,6 +4940,7 @@ export declare const AIAgentRunSchema: z.ZodObject<{
|
|
|
4929
4940
|
OverrideVendorID?: string;
|
|
4930
4941
|
Data?: string;
|
|
4931
4942
|
Verbose?: boolean;
|
|
4943
|
+
RunName?: string;
|
|
4932
4944
|
OverrideModel?: string;
|
|
4933
4945
|
OverrideVendor?: string;
|
|
4934
4946
|
}>;
|
|
@@ -5506,6 +5518,8 @@ export declare const AIPromptRunSchema: z.ZodObject<{
|
|
|
5506
5518
|
CompletionTime: z.ZodNullable<z.ZodNumber>;
|
|
5507
5519
|
ModelSpecificResponseDetails: z.ZodNullable<z.ZodString>;
|
|
5508
5520
|
EffortLevel: z.ZodNullable<z.ZodNumber>;
|
|
5521
|
+
RunName: z.ZodNullable<z.ZodString>;
|
|
5522
|
+
Comments: z.ZodNullable<z.ZodString>;
|
|
5509
5523
|
Prompt: z.ZodString;
|
|
5510
5524
|
Model: z.ZodString;
|
|
5511
5525
|
Vendor: z.ZodString;
|
|
@@ -5516,6 +5530,7 @@ export declare const AIPromptRunSchema: z.ZodObject<{
|
|
|
5516
5530
|
ChildPrompt: z.ZodNullable<z.ZodString>;
|
|
5517
5531
|
}, "strip", z.ZodTypeAny, {
|
|
5518
5532
|
ID?: string;
|
|
5533
|
+
Comments?: string;
|
|
5519
5534
|
__mj_CreatedAt?: Date;
|
|
5520
5535
|
__mj_UpdatedAt?: Date;
|
|
5521
5536
|
ParentID?: string;
|
|
@@ -5555,6 +5570,7 @@ export declare const AIPromptRunSchema: z.ZodObject<{
|
|
|
5555
5570
|
Result?: string;
|
|
5556
5571
|
TotalCost?: number;
|
|
5557
5572
|
CancellationReason?: string;
|
|
5573
|
+
RunName?: string;
|
|
5558
5574
|
ExecutionTimeMS?: number;
|
|
5559
5575
|
Messages?: string;
|
|
5560
5576
|
TokensUsed?: number;
|
|
@@ -5606,6 +5622,7 @@ export declare const AIPromptRunSchema: z.ZodObject<{
|
|
|
5606
5622
|
ChildPrompt?: string;
|
|
5607
5623
|
}, {
|
|
5608
5624
|
ID?: string;
|
|
5625
|
+
Comments?: string;
|
|
5609
5626
|
__mj_CreatedAt?: Date;
|
|
5610
5627
|
__mj_UpdatedAt?: Date;
|
|
5611
5628
|
ParentID?: string;
|
|
@@ -5645,6 +5662,7 @@ export declare const AIPromptRunSchema: z.ZodObject<{
|
|
|
5645
5662
|
Result?: string;
|
|
5646
5663
|
TotalCost?: number;
|
|
5647
5664
|
CancellationReason?: string;
|
|
5665
|
+
RunName?: string;
|
|
5648
5666
|
ExecutionTimeMS?: number;
|
|
5649
5667
|
Messages?: string;
|
|
5650
5668
|
TokensUsed?: number;
|
|
@@ -22079,6 +22097,23 @@ detailed information about what validation rules failed.
|
|
|
22079
22097
|
*/
|
|
22080
22098
|
get FinalPayloadValidationMessages(): string | null;
|
|
22081
22099
|
set FinalPayloadValidationMessages(value: string | null);
|
|
22100
|
+
/**
|
|
22101
|
+
* * Field Name: ParentID
|
|
22102
|
+
* * Display Name: Parent ID
|
|
22103
|
+
* * SQL Data Type: uniqueidentifier
|
|
22104
|
+
* * Related Entity/Foreign Key: MJ: AI Agent Run Steps (vwAIAgentRunSteps.ID)
|
|
22105
|
+
* * Description: Optional reference to parent step for tracking hierarchical relationships like code->test->fix->code cycles
|
|
22106
|
+
*/
|
|
22107
|
+
get ParentID(): string | null;
|
|
22108
|
+
set ParentID(value: string | null);
|
|
22109
|
+
/**
|
|
22110
|
+
* * Field Name: Comments
|
|
22111
|
+
* * Display Name: Comments
|
|
22112
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
22113
|
+
* * Description: Human-readable notes and comments about this agent run step
|
|
22114
|
+
*/
|
|
22115
|
+
get Comments(): string | null;
|
|
22116
|
+
set Comments(value: string | null);
|
|
22082
22117
|
}
|
|
22083
22118
|
/**
|
|
22084
22119
|
* MJ: AI Agent Runs - strongly typed entity sub-class
|
|
@@ -22452,6 +22487,22 @@ each time the agent processes a prompt step.
|
|
|
22452
22487
|
get EffortLevel(): number | null;
|
|
22453
22488
|
set EffortLevel(value: number | null);
|
|
22454
22489
|
/**
|
|
22490
|
+
* * Field Name: RunName
|
|
22491
|
+
* * Display Name: Run Name
|
|
22492
|
+
* * SQL Data Type: nvarchar(255)
|
|
22493
|
+
* * Description: Optional name for the agent run to help identify and tag runs for easier reference
|
|
22494
|
+
*/
|
|
22495
|
+
get RunName(): string | null;
|
|
22496
|
+
set RunName(value: string | null);
|
|
22497
|
+
/**
|
|
22498
|
+
* * Field Name: Comments
|
|
22499
|
+
* * Display Name: Comments
|
|
22500
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
22501
|
+
* * Description: Human-readable notes and comments about this agent run
|
|
22502
|
+
*/
|
|
22503
|
+
get Comments(): string | null;
|
|
22504
|
+
set Comments(value: string | null);
|
|
22505
|
+
/**
|
|
22455
22506
|
* * Field Name: Agent
|
|
22456
22507
|
* * Display Name: Agent
|
|
22457
22508
|
* * SQL Data Type: nvarchar(255)
|
|
@@ -24768,6 +24819,22 @@ export declare class AIPromptRunEntity extends BaseEntity<AIPromptRunEntityType>
|
|
|
24768
24819
|
get EffortLevel(): number | null;
|
|
24769
24820
|
set EffortLevel(value: number | null);
|
|
24770
24821
|
/**
|
|
24822
|
+
* * Field Name: RunName
|
|
24823
|
+
* * Display Name: Run Name
|
|
24824
|
+
* * SQL Data Type: nvarchar(255)
|
|
24825
|
+
* * Description: Optional name for the prompt run to help identify and tag runs for easier reference
|
|
24826
|
+
*/
|
|
24827
|
+
get RunName(): string | null;
|
|
24828
|
+
set RunName(value: string | null);
|
|
24829
|
+
/**
|
|
24830
|
+
* * Field Name: Comments
|
|
24831
|
+
* * Display Name: Comments
|
|
24832
|
+
* * SQL Data Type: nvarchar(MAX)
|
|
24833
|
+
* * Description: Human-readable notes and comments about this prompt run
|
|
24834
|
+
*/
|
|
24835
|
+
get Comments(): string | null;
|
|
24836
|
+
set Comments(value: string | null);
|
|
24837
|
+
/**
|
|
24771
24838
|
* * Field Name: Prompt
|
|
24772
24839
|
* * Display Name: Prompt
|
|
24773
24840
|
* * SQL Data Type: nvarchar(255)
|