@memberjunction/server 2.54.0 → 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memberjunction/server",
3
- "version": "2.54.0",
3
+ "version": "2.55.0",
4
4
  "description": "MemberJunction: This project provides API access via GraphQL to the common data store.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./src/index.ts",
@@ -22,30 +22,31 @@
22
22
  "dependencies": {
23
23
  "@apollo/server": "^4.9.1",
24
24
  "@graphql-tools/utils": "^10.0.1",
25
- "@memberjunction/actions": "2.54.0",
26
- "@memberjunction/ai": "2.54.0",
27
- "@memberjunction/ai-agents": "2.54.0",
28
- "@memberjunction/ai-mistral": "2.54.0",
29
- "@memberjunction/ai-openai": "2.54.0",
30
- "@memberjunction/ai-vectors-pinecone": "2.54.0",
31
- "@memberjunction/aiengine": "2.54.0",
32
- "@memberjunction/ai-prompts": "2.54.0",
33
- "@memberjunction/core": "2.54.0",
34
- "@memberjunction/core-actions": "2.54.0",
35
- "@memberjunction/core-entities": "2.54.0",
36
- "@memberjunction/core-entities-server": "2.54.0",
37
- "@memberjunction/data-context": "2.54.0",
38
- "@memberjunction/data-context-server": "2.54.0",
39
- "@memberjunction/doc-utils": "2.54.0",
40
- "@memberjunction/entity-communications-server": "2.54.0",
41
- "@memberjunction/external-change-detection": "2.54.0",
42
- "@memberjunction/global": "2.54.0",
43
- "@memberjunction/graphql-dataprovider": "2.54.0",
44
- "@memberjunction/queue": "2.54.0",
45
- "@memberjunction/skip-types": "2.54.0",
46
- "@memberjunction/sqlserver-dataprovider": "2.54.0",
47
- "@memberjunction/storage": "2.54.0",
48
- "@memberjunction/templates": "2.54.0",
25
+ "@memberjunction/actions": "2.55.0",
26
+ "@memberjunction/ai": "2.55.0",
27
+ "@memberjunction/ai-agents": "2.55.0",
28
+ "@memberjunction/ai-mistral": "2.55.0",
29
+ "@memberjunction/ai-openai": "2.55.0",
30
+ "@memberjunction/ai-vectors-pinecone": "2.55.0",
31
+ "@memberjunction/aiengine": "2.55.0",
32
+ "@memberjunction/ai-prompts": "2.55.0",
33
+ "@memberjunction/core": "2.55.0",
34
+ "@memberjunction/core-actions": "2.55.0",
35
+ "@memberjunction/core-entities": "2.55.0",
36
+ "@memberjunction/core-entities-server": "2.55.0",
37
+ "@memberjunction/data-context": "2.55.0",
38
+ "@memberjunction/data-context-server": "2.55.0",
39
+ "@memberjunction/doc-utils": "2.55.0",
40
+ "@memberjunction/entity-communications-server": "2.55.0",
41
+ "@memberjunction/external-change-detection": "2.55.0",
42
+ "@memberjunction/global": "2.55.0",
43
+ "@memberjunction/graphql-dataprovider": "2.55.0",
44
+ "@memberjunction/queue": "2.55.0",
45
+ "@memberjunction/skip-types": "2.55.0",
46
+ "@memberjunction/sqlserver-dataprovider": "2.55.0",
47
+ "@memberjunction/storage": "2.55.0",
48
+ "@memberjunction/templates": "2.55.0",
49
+ "@memberjunction/ai-agent-manager-actions": "2.55.0",
49
50
  "@types/compression": "^1.7.5",
50
51
  "@types/cors": "^2.8.13",
51
52
  "@types/jsonwebtoken": "9.0.6",
@@ -694,7 +694,7 @@ export class ExplorerNavigationItemResolver extends ResolverBase {
694
694
  //****************************************************************************
695
695
  // ENTITY CLASS for Generated Code Categories
696
696
  //****************************************************************************
697
- @ObjectType({ description: `Categorization for generated code, including optional parent-child relationships.` })
697
+ @ObjectType()
698
698
  export class GeneratedCodeCategory_ {
699
699
  @Field()
700
700
  @MaxLength(16)
@@ -37536,7 +37536,7 @@ export class AIPromptRun_ {
37536
37536
  @Field(() => Int, {nullable: true, description: `Number of tokens in the completion/result.`})
37537
37537
  TokensCompletion?: number;
37538
37538
 
37539
- @Field(() => Float, {nullable: true, description: `Total cost including this execution and all child/grandchild executions. For leaf nodes (no children), this equals Cost. For parent nodes, this includes the sum of all descendant costs. Note: This assumes all costs are in the same currency for accurate rollup. Currency conversions should be handled at the application layer if needed.`})
37539
+ @Field(() => Float, {nullable: true, description: `Total cost of this prompt run including its own cost plus all descendant costs. Calculated as Cost + DescendantCost. This value is stored (not computed) for query performance. Currency is specified in CostCurrency field.`})
37540
37540
  TotalCost?: number;
37541
37541
 
37542
37542
  @Field(() => Boolean, {description: `Whether the execution was successful.`})
@@ -37618,6 +37618,9 @@ export class AIPromptRun_ {
37618
37618
  @Field(() => Int, {nullable: true, description: `Number of top log probabilities requested per token (if LogProbs is true)`})
37619
37619
  TopLogProbs?: number;
37620
37620
 
37621
+ @Field(() => Float, {nullable: true, description: `The total cost of all descendant (child and grandchild) prompt runs, excluding this run's own cost. For leaf nodes (no children), this is 0. Updated when child costs change.`})
37622
+ DescendantCost?: number;
37623
+
37621
37624
  @Field()
37622
37625
  @MaxLength(510)
37623
37626
  Prompt: string;
@@ -37761,6 +37764,9 @@ export class CreateAIPromptRunInput {
37761
37764
 
37762
37765
  @Field(() => Int, { nullable: true })
37763
37766
  TopLogProbs: number | null;
37767
+
37768
+ @Field(() => Float, { nullable: true })
37769
+ DescendantCost: number | null;
37764
37770
  }
37765
37771
 
37766
37772
 
@@ -37880,6 +37886,9 @@ export class UpdateAIPromptRunInput {
37880
37886
  @Field(() => Int, { nullable: true })
37881
37887
  TopLogProbs?: number | null;
37882
37888
 
37889
+ @Field(() => Float, { nullable: true })
37890
+ DescendantCost?: number | null;
37891
+
37883
37892
  @Field(() => [KeyValuePairInput], { nullable: true })
37884
37893
  OldValues___?: KeyValuePairInput[];
37885
37894
  }