@memberjunction/core-entities 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.
@@ -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,EAAY,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACnH,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EAAE,sBAAsB,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAEpG;;GAEG;AACH,qBAAa,uBAAwB,SAAQ,UAAU,CAAC,uBAAuB,CAAC;IAC5E;;OAEG;IACH,WAAkB,QAAQ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ED,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,+CAAmH;AAInH;;GAEG;AACH,MAAa,uBAAwB,SAAQ,iBAAmC;IAC5E;;OAEG;IACI,MAAM,KAAK,QAAQ;QACvB,OAAO,KAAK,CAAC,WAAW,EAA2B,CAAC;IACvD,CAAC;IAMM,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;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;CACJ;AA5CD,0DA4CC"}
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;
@@ -5852,6 +5870,7 @@ export declare const ComponentLibrarySchema: z.ZodObject<{
5852
5870
  __mj_UpdatedAt: z.ZodDate;
5853
5871
  Status: z.ZodUnion<[z.ZodLiteral<"Active">, z.ZodLiteral<"Deprecated">, z.ZodLiteral<"Disabled">]>;
5854
5872
  LintRules: z.ZodNullable<z.ZodString>;
5873
+ Dependencies: z.ZodNullable<z.ZodString>;
5855
5874
  }, "strip", z.ZodTypeAny, {
5856
5875
  ID?: string;
5857
5876
  __mj_CreatedAt?: Date;
@@ -5866,6 +5885,7 @@ export declare const ComponentLibrarySchema: z.ZodObject<{
5866
5885
  CDNUrl?: string;
5867
5886
  CDNCssUrl?: string;
5868
5887
  LintRules?: string;
5888
+ Dependencies?: string;
5869
5889
  }, {
5870
5890
  ID?: string;
5871
5891
  __mj_CreatedAt?: Date;
@@ -5880,6 +5900,7 @@ export declare const ComponentLibrarySchema: z.ZodObject<{
5880
5900
  CDNUrl?: string;
5881
5901
  CDNCssUrl?: string;
5882
5902
  LintRules?: string;
5903
+ Dependencies?: string;
5883
5904
  }>;
5884
5905
  export type ComponentLibraryEntityType = z.infer<typeof ComponentLibrarySchema>;
5885
5906
  /**
@@ -22079,6 +22100,23 @@ detailed information about what validation rules failed.
22079
22100
  */
22080
22101
  get FinalPayloadValidationMessages(): string | null;
22081
22102
  set FinalPayloadValidationMessages(value: string | null);
22103
+ /**
22104
+ * * Field Name: ParentID
22105
+ * * Display Name: Parent ID
22106
+ * * SQL Data Type: uniqueidentifier
22107
+ * * Related Entity/Foreign Key: MJ: AI Agent Run Steps (vwAIAgentRunSteps.ID)
22108
+ * * Description: Optional reference to parent step for tracking hierarchical relationships like code->test->fix->code cycles
22109
+ */
22110
+ get ParentID(): string | null;
22111
+ set ParentID(value: string | null);
22112
+ /**
22113
+ * * Field Name: Comments
22114
+ * * Display Name: Comments
22115
+ * * SQL Data Type: nvarchar(MAX)
22116
+ * * Description: Human-readable notes and comments about this agent run step
22117
+ */
22118
+ get Comments(): string | null;
22119
+ set Comments(value: string | null);
22082
22120
  }
22083
22121
  /**
22084
22122
  * MJ: AI Agent Runs - strongly typed entity sub-class
@@ -22452,6 +22490,22 @@ each time the agent processes a prompt step.
22452
22490
  get EffortLevel(): number | null;
22453
22491
  set EffortLevel(value: number | null);
22454
22492
  /**
22493
+ * * Field Name: RunName
22494
+ * * Display Name: Run Name
22495
+ * * SQL Data Type: nvarchar(255)
22496
+ * * Description: Optional name for the agent run to help identify and tag runs for easier reference
22497
+ */
22498
+ get RunName(): string | null;
22499
+ set RunName(value: string | null);
22500
+ /**
22501
+ * * Field Name: Comments
22502
+ * * Display Name: Comments
22503
+ * * SQL Data Type: nvarchar(MAX)
22504
+ * * Description: Human-readable notes and comments about this agent run
22505
+ */
22506
+ get Comments(): string | null;
22507
+ set Comments(value: string | null);
22508
+ /**
22455
22509
  * * Field Name: Agent
22456
22510
  * * Display Name: Agent
22457
22511
  * * SQL Data Type: nvarchar(255)
@@ -24768,6 +24822,22 @@ export declare class AIPromptRunEntity extends BaseEntity<AIPromptRunEntityType>
24768
24822
  get EffortLevel(): number | null;
24769
24823
  set EffortLevel(value: number | null);
24770
24824
  /**
24825
+ * * Field Name: RunName
24826
+ * * Display Name: Run Name
24827
+ * * SQL Data Type: nvarchar(255)
24828
+ * * Description: Optional name for the prompt run to help identify and tag runs for easier reference
24829
+ */
24830
+ get RunName(): string | null;
24831
+ set RunName(value: string | null);
24832
+ /**
24833
+ * * Field Name: Comments
24834
+ * * Display Name: Comments
24835
+ * * SQL Data Type: nvarchar(MAX)
24836
+ * * Description: Human-readable notes and comments about this prompt run
24837
+ */
24838
+ get Comments(): string | null;
24839
+ set Comments(value: string | null);
24840
+ /**
24771
24841
  * * Field Name: Prompt
24772
24842
  * * Display Name: Prompt
24773
24843
  * * SQL Data Type: nvarchar(255)
@@ -25353,6 +25423,14 @@ export declare class ComponentLibraryEntity extends BaseEntity<ComponentLibraryE
25353
25423
  */
25354
25424
  get LintRules(): string | null;
25355
25425
  set LintRules(value: string | null);
25426
+ /**
25427
+ * * Field Name: Dependencies
25428
+ * * Display Name: Dependencies
25429
+ * * SQL Data Type: nvarchar(MAX)
25430
+ * * 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.
25431
+ */
25432
+ get Dependencies(): string | null;
25433
+ set Dependencies(value: string | null);
25356
25434
  }
25357
25435
  /**
25358
25436
  * MJ: Component Library Links - strongly typed entity sub-class