@common_ch/common 1.0.485 → 1.0.487
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/build/enums/plan.d.ts
CHANGED
|
@@ -22,6 +22,9 @@ export declare enum ToolsChatgpt {
|
|
|
22
22
|
imageGeneration = "image_generation"
|
|
23
23
|
}
|
|
24
24
|
export declare enum ToolsGrok {
|
|
25
|
+
webSearch = "web_search"
|
|
26
|
+
}
|
|
27
|
+
export declare enum ToolsClaude {
|
|
25
28
|
webSearch = "web_search",
|
|
26
29
|
fileSearch = "file_search",
|
|
27
30
|
codeInterpreter = "code_interpreter"
|
package/build/enums/plan.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ToolsGemini = exports.ToolsGrok = exports.ToolsChatgpt = exports.PlanOrgTypeEnum = exports.PlanOrgStatusEnum = exports.TypePayEnum = exports.PlanStatusEnum = void 0;
|
|
3
|
+
exports.ToolsGemini = exports.ToolsClaude = exports.ToolsGrok = exports.ToolsChatgpt = exports.PlanOrgTypeEnum = exports.PlanOrgStatusEnum = exports.TypePayEnum = exports.PlanStatusEnum = void 0;
|
|
4
4
|
var PlanStatusEnum;
|
|
5
5
|
(function (PlanStatusEnum) {
|
|
6
6
|
PlanStatusEnum["active"] = "active";
|
|
@@ -32,9 +32,13 @@ var ToolsChatgpt;
|
|
|
32
32
|
var ToolsGrok;
|
|
33
33
|
(function (ToolsGrok) {
|
|
34
34
|
ToolsGrok["webSearch"] = "web_search";
|
|
35
|
-
ToolsGrok["fileSearch"] = "file_search";
|
|
36
|
-
ToolsGrok["codeInterpreter"] = "code_interpreter";
|
|
37
35
|
})(ToolsGrok || (exports.ToolsGrok = ToolsGrok = {}));
|
|
36
|
+
var ToolsClaude;
|
|
37
|
+
(function (ToolsClaude) {
|
|
38
|
+
ToolsClaude["webSearch"] = "web_search";
|
|
39
|
+
ToolsClaude["fileSearch"] = "file_search";
|
|
40
|
+
ToolsClaude["codeInterpreter"] = "code_interpreter";
|
|
41
|
+
})(ToolsClaude || (exports.ToolsClaude = ToolsClaude = {}));
|
|
38
42
|
var ToolsGemini;
|
|
39
43
|
(function (ToolsGemini) {
|
|
40
44
|
ToolsGemini["googleSearch"] = "googleSearch";
|
|
@@ -77,6 +77,7 @@ export interface MessageAttrs {
|
|
|
77
77
|
messagesClaude?: MessageClaude[];
|
|
78
78
|
messagesGemini: ContentGemini[];
|
|
79
79
|
fileRefs: mongoose.Types.ObjectId[] | FileReferenceGeminiDoc[];
|
|
80
|
+
containerIdClaude?: string;
|
|
80
81
|
createdAt?: string;
|
|
81
82
|
updatedAt?: string;
|
|
82
83
|
}
|
|
@@ -107,6 +108,7 @@ export interface MessageDoc extends mongoose.Document {
|
|
|
107
108
|
messagesGemini: ContentGemini[];
|
|
108
109
|
messagesClaude?: MessageClaude[];
|
|
109
110
|
fileRefs: mongoose.Types.ObjectId[] | FileReferenceGeminiDoc[];
|
|
111
|
+
containerIdClaude?: string;
|
|
110
112
|
version: number;
|
|
111
113
|
createdAt?: string;
|
|
112
114
|
updatedAt?: string;
|
|
@@ -305,6 +305,10 @@ const messageSchema = new mongoose_1.default.Schema({
|
|
|
305
305
|
},
|
|
306
306
|
],
|
|
307
307
|
fileRefs: [{ type: mongoose_1.default.Schema.Types.ObjectId, ref: 'FileReferenceGemini' }],
|
|
308
|
+
containerIdClaude: {
|
|
309
|
+
type: String,
|
|
310
|
+
required: false,
|
|
311
|
+
},
|
|
308
312
|
createdAt: mongoose_1.default.Schema.Types.Date,
|
|
309
313
|
updatedAt: mongoose_1.default.Schema.Types.Date,
|
|
310
314
|
}, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import mongoose, { Types } from 'mongoose';
|
|
2
2
|
import { AiDoc } from './ai';
|
|
3
3
|
import { PlanTypeEnum } from '../../events/types_/plan';
|
|
4
|
-
import { PlanStatusEnum, ToolsChatgpt, ToolsGemini, ToolsGrok, TypePayEnum } from '../../enums/plan';
|
|
4
|
+
import { PlanStatusEnum, ToolsChatgpt, ToolsClaude, ToolsGemini, ToolsGrok, TypePayEnum } from '../../enums/plan';
|
|
5
5
|
import { AiOptionNamesEnum } from '../../enums/ai';
|
|
6
6
|
import { AiOptionDoc } from './ai-option';
|
|
7
7
|
export interface PlanAttrs {
|
|
@@ -18,6 +18,7 @@ export interface PlanAttrs {
|
|
|
18
18
|
chatgpt?: ToolsChatgpt[];
|
|
19
19
|
gemini?: ToolsGemini[];
|
|
20
20
|
grok?: ToolsGrok[];
|
|
21
|
+
claude?: ToolsClaude[];
|
|
21
22
|
};
|
|
22
23
|
models: AiOptionNamesEnum[];
|
|
23
24
|
defaultAiOption: Types.ObjectId;
|
|
@@ -49,6 +50,7 @@ export interface PlanDoc extends mongoose.Document {
|
|
|
49
50
|
chatgpt?: ToolsChatgpt[];
|
|
50
51
|
gemini?: ToolsGemini[];
|
|
51
52
|
grok?: ToolsGrok[];
|
|
53
|
+
claude?: ToolsClaude[];
|
|
52
54
|
};
|
|
53
55
|
models: AiOptionNamesEnum[];
|
|
54
56
|
defaultAiOption: Types.ObjectId | AiOptionDoc;
|
package/build/models/app/plan.js
CHANGED