@bike4mind/cli 0.2.3 → 0.2.4-feat-questmaster-external-integrations.17091
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/{artifactExtractor-GXQ5YZF7.js → artifactExtractor-4IM3MJQF.js} +1 -1
- package/dist/{chunk-LYNNVNEC.js → chunk-2IW5ZJXR.js} +1 -1
- package/dist/{chunk-6AJODFPC.js → chunk-3BPXGCV5.js} +2 -2
- package/dist/{chunk-LEG2UM5Q.js → chunk-7OJVF5WR.js} +2 -2
- package/dist/chunk-AMDXHL6S.js +0 -0
- package/dist/chunk-BDQBOLYG.js +0 -0
- package/dist/chunk-BPFEGDC7.js +0 -0
- package/dist/chunk-PDX44BCA.js +0 -0
- package/dist/{chunk-WR6YZRQV.js → chunk-PVLFZFW3.js} +0 -0
- package/dist/{chunk-WNBKV4FX.js → chunk-UHTQGQB4.js} +2 -2
- package/dist/{create-LOAAI36O.js → create-RWWL6EXD.js} +3 -3
- package/dist/formatConverter-I7EIUVDY.js +0 -0
- package/dist/index.js +149 -138
- package/dist/{llmMarkdownGenerator-4ZR3FLEQ.js → llmMarkdownGenerator-7UGLXJ5K.js} +1 -1
- package/dist/{markdownGenerator-7WE7WKME.js → markdownGenerator-CPWWVGPS.js} +1 -1
- package/dist/{mementoService-XGFAWC5F.js → mementoService-QMM4Y5VF.js} +3 -3
- package/dist/notificationDeduplicator-UW7D75QS.js +0 -0
- package/dist/{src-6J6LFPZ6.js → src-EUJME44O.js} +1 -1
- package/dist/{src-32Z2VZMC.js → src-GX3IH4MQ.js} +2 -2
- package/dist/{subtractCredits-VMGWNJS7.js → subtractCredits-V7WHQTMA.js} +3 -3
- package/dist/utils-JPMDGUBL.js +0 -0
- package/package.json +18 -16
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
dayjsConfig_default,
|
|
17
17
|
extractSnippetMeta,
|
|
18
18
|
settingsMap
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-PVLFZFW3.js";
|
|
20
20
|
|
|
21
21
|
// ../../b4m-core/packages/utils/dist/src/storage/S3Storage.js
|
|
22
22
|
import { S3Client, PutObjectCommand, DeleteObjectCommand, GetObjectCommand, HeadObjectCommand } from "@aws-sdk/client-s3";
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
getSettingsMap,
|
|
8
8
|
getSettingsValue,
|
|
9
9
|
secureParameters
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2IW5ZJXR.js";
|
|
11
11
|
import {
|
|
12
12
|
KnowledgeType,
|
|
13
13
|
SupportedFabFileMimeTypes
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-PVLFZFW3.js";
|
|
15
15
|
|
|
16
16
|
// ../../b4m-core/packages/services/dist/src/fabFileService/create.js
|
|
17
17
|
import { z } from "zod";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
BadRequestError,
|
|
4
4
|
secureParameters
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2IW5ZJXR.js";
|
|
6
6
|
import {
|
|
7
7
|
GenericCreditDeductTransaction,
|
|
8
8
|
ImageEditUsageTransaction,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
RealtimeVoiceUsageTransaction,
|
|
11
11
|
TextGenerationUsageTransaction,
|
|
12
12
|
TransferCreditTransaction
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-PVLFZFW3.js";
|
|
14
14
|
|
|
15
15
|
// ../../b4m-core/packages/services/dist/src/creditService/subtractCredits.js
|
|
16
16
|
import { z } from "zod";
|
package/dist/chunk-AMDXHL6S.js
CHANGED
|
File without changes
|
package/dist/chunk-BDQBOLYG.js
CHANGED
|
File without changes
|
package/dist/chunk-BPFEGDC7.js
CHANGED
|
File without changes
|
package/dist/chunk-PDX44BCA.js
CHANGED
|
File without changes
|
|
File without changes
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
getSettingsByNames,
|
|
7
7
|
obfuscateApiKey,
|
|
8
8
|
secureParameters
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2IW5ZJXR.js";
|
|
10
10
|
import {
|
|
11
11
|
ApiKeyType,
|
|
12
12
|
MementoTier,
|
|
13
13
|
isSupportedEmbeddingModel
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-PVLFZFW3.js";
|
|
15
15
|
|
|
16
16
|
// ../../b4m-core/packages/services/dist/src/apiKeyService/get.js
|
|
17
17
|
import { z } from "zod";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
createFabFile,
|
|
4
4
|
createFabFileSchema
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-3BPXGCV5.js";
|
|
6
|
+
import "./chunk-2IW5ZJXR.js";
|
|
7
7
|
import "./chunk-AMDXHL6S.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-PVLFZFW3.js";
|
|
9
9
|
import "./chunk-PDX44BCA.js";
|
|
10
10
|
export {
|
|
11
11
|
createFabFile,
|
|
File without changes
|
package/dist/index.js
CHANGED
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
getEffectiveApiKey,
|
|
5
5
|
getOpenWeatherKey,
|
|
6
6
|
getSerperKey
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-UHTQGQB4.js";
|
|
8
|
+
import "./chunk-7OJVF5WR.js";
|
|
9
|
+
import "./chunk-3BPXGCV5.js";
|
|
10
10
|
import {
|
|
11
11
|
BFLImageService,
|
|
12
12
|
BaseStorage,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
OpenAIBackend,
|
|
16
16
|
OpenAIImageService,
|
|
17
17
|
XAIImageService
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-2IW5ZJXR.js";
|
|
19
19
|
import {
|
|
20
20
|
Logger
|
|
21
21
|
} from "./chunk-AMDXHL6S.js";
|
|
@@ -73,7 +73,7 @@ import {
|
|
|
73
73
|
XAI_IMAGE_MODELS,
|
|
74
74
|
b4mLLMTools,
|
|
75
75
|
getMcpProviderMetadata
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-PVLFZFW3.js";
|
|
77
77
|
import {
|
|
78
78
|
__require
|
|
79
79
|
} from "./chunk-PDX44BCA.js";
|
|
@@ -4094,6 +4094,16 @@ var updateQuestStatusSchema = z134.object({
|
|
|
4094
4094
|
completionNote: z134.string().max(500).optional()
|
|
4095
4095
|
});
|
|
4096
4096
|
|
|
4097
|
+
// ../../b4m-core/packages/services/dist/src/questMasterService/syncToGitHub.js
|
|
4098
|
+
import { z as z135 } from "zod";
|
|
4099
|
+
var syncToGitHubSchema = z135.object({
|
|
4100
|
+
repository: z135.string().regex(/^[^/]+\/[^/]+$/, "Repository must be in owner/repo format"),
|
|
4101
|
+
questId: z135.string().optional(),
|
|
4102
|
+
// Optional: sync specific quest, otherwise sync entire plan
|
|
4103
|
+
labels: z135.array(z135.string()).optional(),
|
|
4104
|
+
assignees: z135.array(z135.string()).optional()
|
|
4105
|
+
});
|
|
4106
|
+
|
|
4097
4107
|
// ../../b4m-core/packages/services/dist/src/dataLakeService/opensearchClient.js
|
|
4098
4108
|
import { Client } from "@opensearch-project/opensearch";
|
|
4099
4109
|
import { defaultProvider } from "@aws-sdk/credential-provider-node";
|
|
@@ -4111,63 +4121,63 @@ import { v4 as uuidv44 } from "uuid";
|
|
|
4111
4121
|
import { randomUUID as randomUUID5 } from "crypto";
|
|
4112
4122
|
|
|
4113
4123
|
// ../../b4m-core/packages/services/dist/src/emailIngestionService/types.js
|
|
4114
|
-
import { z as
|
|
4115
|
-
var processIngestedEmailOptionsSchema =
|
|
4116
|
-
platformDomain:
|
|
4117
|
-
isNewsletter:
|
|
4124
|
+
import { z as z136 } from "zod";
|
|
4125
|
+
var processIngestedEmailOptionsSchema = z136.object({
|
|
4126
|
+
platformDomain: z136.string().optional(),
|
|
4127
|
+
isNewsletter: z136.boolean().optional()
|
|
4118
4128
|
}).optional();
|
|
4119
|
-
var emailAttachmentSchema =
|
|
4120
|
-
filename:
|
|
4121
|
-
contentType:
|
|
4122
|
-
contentDisposition:
|
|
4123
|
-
size:
|
|
4124
|
-
content:
|
|
4125
|
-
related:
|
|
4126
|
-
});
|
|
4127
|
-
var parsedEmailObjectSchema =
|
|
4128
|
-
messageId:
|
|
4129
|
-
inReplyTo:
|
|
4130
|
-
references:
|
|
4131
|
-
from:
|
|
4129
|
+
var emailAttachmentSchema = z136.object({
|
|
4130
|
+
filename: z136.string().optional(),
|
|
4131
|
+
contentType: z136.string().optional(),
|
|
4132
|
+
contentDisposition: z136.string().optional(),
|
|
4133
|
+
size: z136.number().min(0),
|
|
4134
|
+
content: z136.instanceof(Buffer),
|
|
4135
|
+
related: z136.boolean().optional()
|
|
4136
|
+
});
|
|
4137
|
+
var parsedEmailObjectSchema = z136.object({
|
|
4138
|
+
messageId: z136.string().optional(),
|
|
4139
|
+
inReplyTo: z136.string().optional(),
|
|
4140
|
+
references: z136.union([z136.string(), z136.array(z136.string())]).optional(),
|
|
4141
|
+
from: z136.any().optional(),
|
|
4132
4142
|
// Complex email address object
|
|
4133
|
-
to:
|
|
4134
|
-
cc:
|
|
4135
|
-
bcc:
|
|
4136
|
-
subject:
|
|
4137
|
-
date:
|
|
4138
|
-
text:
|
|
4139
|
-
html:
|
|
4140
|
-
attachments:
|
|
4141
|
-
});
|
|
4142
|
-
var processIngestedEmailSchema =
|
|
4143
|
+
to: z136.any().optional(),
|
|
4144
|
+
cc: z136.any().optional(),
|
|
4145
|
+
bcc: z136.any().optional(),
|
|
4146
|
+
subject: z136.string().optional(),
|
|
4147
|
+
date: z136.date().optional(),
|
|
4148
|
+
text: z136.string().optional(),
|
|
4149
|
+
html: z136.string().optional(),
|
|
4150
|
+
attachments: z136.array(emailAttachmentSchema).optional()
|
|
4151
|
+
});
|
|
4152
|
+
var processIngestedEmailSchema = z136.object({
|
|
4143
4153
|
parsedEmail: parsedEmailObjectSchema,
|
|
4144
|
-
rawEmailS3Key:
|
|
4154
|
+
rawEmailS3Key: z136.string().min(1, "rawEmailS3Key cannot be empty"),
|
|
4145
4155
|
options: processIngestedEmailOptionsSchema
|
|
4146
4156
|
});
|
|
4147
4157
|
|
|
4148
4158
|
// ../../b4m-core/packages/services/dist/src/emailAnalysisService/types.js
|
|
4149
|
-
import { z as
|
|
4150
|
-
var llmAnalysisResponseSchema =
|
|
4151
|
-
summary:
|
|
4152
|
-
entities:
|
|
4153
|
-
companies:
|
|
4154
|
-
people:
|
|
4155
|
-
products:
|
|
4156
|
-
technologies:
|
|
4159
|
+
import { z as z137 } from "zod";
|
|
4160
|
+
var llmAnalysisResponseSchema = z137.object({
|
|
4161
|
+
summary: z137.string().min(1, "Summary cannot be empty"),
|
|
4162
|
+
entities: z137.object({
|
|
4163
|
+
companies: z137.array(z137.string()).default([]),
|
|
4164
|
+
people: z137.array(z137.string()).default([]),
|
|
4165
|
+
products: z137.array(z137.string()).default([]),
|
|
4166
|
+
technologies: z137.array(z137.string()).default([])
|
|
4157
4167
|
}),
|
|
4158
|
-
sentiment:
|
|
4159
|
-
actionItems:
|
|
4160
|
-
description:
|
|
4161
|
-
deadline:
|
|
4168
|
+
sentiment: z137.enum(["positive", "neutral", "negative", "urgent"]),
|
|
4169
|
+
actionItems: z137.array(z137.object({
|
|
4170
|
+
description: z137.string(),
|
|
4171
|
+
deadline: z137.string().optional()
|
|
4162
4172
|
// ISO date string from LLM
|
|
4163
4173
|
})).default([]),
|
|
4164
|
-
privacyRecommendation:
|
|
4165
|
-
embargoDetected:
|
|
4166
|
-
suggestedTags:
|
|
4174
|
+
privacyRecommendation: z137.enum(["public", "team", "private"]),
|
|
4175
|
+
embargoDetected: z137.boolean().default(false),
|
|
4176
|
+
suggestedTags: z137.array(z137.string()).default([])
|
|
4167
4177
|
});
|
|
4168
4178
|
|
|
4169
4179
|
// ../../b4m-core/packages/services/dist/src/llm/ChatCompletion.js
|
|
4170
|
-
import { z as
|
|
4180
|
+
import { z as z139 } from "zod";
|
|
4171
4181
|
|
|
4172
4182
|
// ../../b4m-core/packages/services/dist/src/llm/ChatCompletionInvoke.js
|
|
4173
4183
|
import { fromZodError } from "zod-validation-error";
|
|
@@ -5227,17 +5237,17 @@ var rechartsTool = {
|
|
|
5227
5237
|
};
|
|
5228
5238
|
|
|
5229
5239
|
// ../../b4m-core/packages/services/dist/src/llm/tools/implementation/editFile/index.js
|
|
5230
|
-
import { z as
|
|
5240
|
+
import { z as z138 } from "zod";
|
|
5231
5241
|
import { diffLines as diffLines2 } from "diff";
|
|
5232
|
-
var editFileSchema =
|
|
5233
|
-
fileId:
|
|
5234
|
-
instruction:
|
|
5235
|
-
selection:
|
|
5236
|
-
start:
|
|
5237
|
-
end:
|
|
5242
|
+
var editFileSchema = z138.object({
|
|
5243
|
+
fileId: z138.string().describe("The ID of the file to edit"),
|
|
5244
|
+
instruction: z138.string().describe("Natural language instruction describing the changes to make"),
|
|
5245
|
+
selection: z138.object({
|
|
5246
|
+
start: z138.number().describe("Starting character position of the selection"),
|
|
5247
|
+
end: z138.number().describe("Ending character position of the selection")
|
|
5238
5248
|
}).optional().describe("Optional selection range to edit within the file"),
|
|
5239
|
-
preserveFormatting:
|
|
5240
|
-
returnDiff:
|
|
5249
|
+
preserveFormatting: z138.boolean().optional().default(true).describe("Whether to preserve the original formatting style"),
|
|
5250
|
+
returnDiff: z138.boolean().optional().default(true).describe("Whether to return a diff of the changes")
|
|
5241
5251
|
});
|
|
5242
5252
|
function generateSimpleDiff(original, modified) {
|
|
5243
5253
|
const differences = diffLines2(original, modified);
|
|
@@ -6996,8 +7006,8 @@ var getHeliocentricCoords = (planet, T) => {
|
|
|
6996
7006
|
const sinNode = Math.sin(longNode);
|
|
6997
7007
|
const x = r * (cosNode * cosOmega - sinNode * sinOmega * cosI);
|
|
6998
7008
|
const y = r * (sinNode * cosOmega + cosNode * sinOmega * cosI);
|
|
6999
|
-
const
|
|
7000
|
-
return { x, y, z:
|
|
7009
|
+
const z145 = r * sinOmega * sinI;
|
|
7010
|
+
return { x, y, z: z145, r };
|
|
7001
7011
|
};
|
|
7002
7012
|
var getGeocentricEcliptic = (planet, earth) => {
|
|
7003
7013
|
const dx = planet.x - earth.x;
|
|
@@ -8022,42 +8032,42 @@ var DISABLE_SERVER_THROTTLING = process.env.DISABLE_SERVER_THROTTLING === "true"
|
|
|
8022
8032
|
var questSaveMutex = new Mutex();
|
|
8023
8033
|
|
|
8024
8034
|
// ../../b4m-core/packages/services/dist/src/llm/ChatCompletion.js
|
|
8025
|
-
var QuestStartBodySchema =
|
|
8026
|
-
userId:
|
|
8027
|
-
sessionId:
|
|
8028
|
-
questId:
|
|
8029
|
-
message:
|
|
8030
|
-
messageFileIds:
|
|
8031
|
-
historyCount:
|
|
8032
|
-
fabFileIds:
|
|
8035
|
+
var QuestStartBodySchema = z139.object({
|
|
8036
|
+
userId: z139.string(),
|
|
8037
|
+
sessionId: z139.string(),
|
|
8038
|
+
questId: z139.string(),
|
|
8039
|
+
message: z139.string(),
|
|
8040
|
+
messageFileIds: z139.array(z139.string()),
|
|
8041
|
+
historyCount: z139.number(),
|
|
8042
|
+
fabFileIds: z139.array(z139.string()),
|
|
8033
8043
|
params: ChatCompletionCreateInputSchema,
|
|
8034
8044
|
dashboardParams: DashboardParamsSchema.optional(),
|
|
8035
|
-
enableQuestMaster:
|
|
8036
|
-
enableMementos:
|
|
8037
|
-
enableArtifacts:
|
|
8038
|
-
enableAgents:
|
|
8045
|
+
enableQuestMaster: z139.boolean().optional(),
|
|
8046
|
+
enableMementos: z139.boolean().optional(),
|
|
8047
|
+
enableArtifacts: z139.boolean().optional(),
|
|
8048
|
+
enableAgents: z139.boolean().optional(),
|
|
8039
8049
|
promptMeta: PromptMetaZodSchema,
|
|
8040
|
-
tools:
|
|
8041
|
-
mcpServers:
|
|
8042
|
-
projectId:
|
|
8043
|
-
organizationId:
|
|
8050
|
+
tools: z139.array(z139.union([b4mLLMTools, z139.string()])).optional(),
|
|
8051
|
+
mcpServers: z139.array(z139.string()).optional(),
|
|
8052
|
+
projectId: z139.string().optional(),
|
|
8053
|
+
organizationId: z139.string().nullable().optional(),
|
|
8044
8054
|
questMaster: QuestMasterParamsSchema.optional(),
|
|
8045
|
-
toolPromptId:
|
|
8055
|
+
toolPromptId: z139.string().optional(),
|
|
8046
8056
|
researchMode: ResearchModeParamsSchema.optional(),
|
|
8047
|
-
fallbackModel:
|
|
8048
|
-
embeddingModel:
|
|
8049
|
-
queryComplexity:
|
|
8057
|
+
fallbackModel: z139.string().optional(),
|
|
8058
|
+
embeddingModel: z139.string().optional(),
|
|
8059
|
+
queryComplexity: z139.string(),
|
|
8050
8060
|
imageConfig: GenerateImageToolCallSchema.optional(),
|
|
8051
|
-
deepResearchConfig:
|
|
8052
|
-
maxDepth:
|
|
8053
|
-
duration:
|
|
8061
|
+
deepResearchConfig: z139.object({
|
|
8062
|
+
maxDepth: z139.number().optional(),
|
|
8063
|
+
duration: z139.number().optional(),
|
|
8054
8064
|
// Note: searchers are passed via ToolContext and not through this API schema
|
|
8055
|
-
searchers:
|
|
8065
|
+
searchers: z139.array(z139.any()).optional()
|
|
8056
8066
|
}).optional(),
|
|
8057
|
-
extraContextMessages:
|
|
8058
|
-
role:
|
|
8059
|
-
content:
|
|
8060
|
-
fabFileIds:
|
|
8067
|
+
extraContextMessages: z139.array(z139.object({
|
|
8068
|
+
role: z139.enum(["user", "assistant", "system", "function", "tool"]),
|
|
8069
|
+
content: z139.union([z139.string(), z139.array(z139.any())]),
|
|
8070
|
+
fabFileIds: z139.array(z139.string()).optional()
|
|
8061
8071
|
})).optional()
|
|
8062
8072
|
});
|
|
8063
8073
|
|
|
@@ -8065,30 +8075,9 @@ var QuestStartBodySchema = z138.object({
|
|
|
8065
8075
|
import axios8 from "axios";
|
|
8066
8076
|
import { fileTypeFromBuffer as fileTypeFromBuffer4 } from "file-type";
|
|
8067
8077
|
import { v4 as uuidv47 } from "uuid";
|
|
8068
|
-
import { z as
|
|
8078
|
+
import { z as z140 } from "zod";
|
|
8069
8079
|
import { fromZodError as fromZodError2 } from "zod-validation-error";
|
|
8070
8080
|
var ImageGenerationBodySchema = OpenAIImageGenerationInput.extend({
|
|
8071
|
-
sessionId: z139.string(),
|
|
8072
|
-
questId: z139.string(),
|
|
8073
|
-
userId: z139.string(),
|
|
8074
|
-
prompt: z139.string(),
|
|
8075
|
-
safety_tolerance: z139.number().min(BFL_SAFETY_TOLERANCE.MIN).max(BFL_SAFETY_TOLERANCE.MAX).optional().default(BFL_SAFETY_TOLERANCE.DEFAULT),
|
|
8076
|
-
prompt_upsampling: z139.boolean().optional().default(false),
|
|
8077
|
-
seed: z139.number().nullable().optional(),
|
|
8078
|
-
output_format: z139.enum(["jpeg", "png"]).nullable().optional().default("png"),
|
|
8079
|
-
width: z139.number().optional(),
|
|
8080
|
-
height: z139.number().optional(),
|
|
8081
|
-
aspect_ratio: z139.string().optional(),
|
|
8082
|
-
fabFileIds: z139.array(z139.string()).optional()
|
|
8083
|
-
});
|
|
8084
|
-
|
|
8085
|
-
// ../../b4m-core/packages/services/dist/src/llm/ImageEdit.js
|
|
8086
|
-
import axios9 from "axios";
|
|
8087
|
-
import { fileTypeFromBuffer as fileTypeFromBuffer5 } from "file-type";
|
|
8088
|
-
import { v4 as uuidv48 } from "uuid";
|
|
8089
|
-
import { z as z140 } from "zod";
|
|
8090
|
-
import { fromZodError as fromZodError3 } from "zod-validation-error";
|
|
8091
|
-
var ImageEditBodySchema = OpenAIImageGenerationInput.extend({
|
|
8092
8081
|
sessionId: z140.string(),
|
|
8093
8082
|
questId: z140.string(),
|
|
8094
8083
|
userId: z140.string(),
|
|
@@ -8096,35 +8085,56 @@ var ImageEditBodySchema = OpenAIImageGenerationInput.extend({
|
|
|
8096
8085
|
safety_tolerance: z140.number().min(BFL_SAFETY_TOLERANCE.MIN).max(BFL_SAFETY_TOLERANCE.MAX).optional().default(BFL_SAFETY_TOLERANCE.DEFAULT),
|
|
8097
8086
|
prompt_upsampling: z140.boolean().optional().default(false),
|
|
8098
8087
|
seed: z140.number().nullable().optional(),
|
|
8099
|
-
output_format: z140.enum(["jpeg", "png"]).optional().default("png"),
|
|
8088
|
+
output_format: z140.enum(["jpeg", "png"]).nullable().optional().default("png"),
|
|
8100
8089
|
width: z140.number().optional(),
|
|
8101
8090
|
height: z140.number().optional(),
|
|
8102
8091
|
aspect_ratio: z140.string().optional(),
|
|
8103
|
-
|
|
8104
|
-
fabFileIds: z140.array(z140.string()).optional(),
|
|
8105
|
-
image: z140.string()
|
|
8092
|
+
fabFileIds: z140.array(z140.string()).optional()
|
|
8106
8093
|
});
|
|
8107
8094
|
|
|
8108
|
-
// ../../b4m-core/packages/services/dist/src/llm/
|
|
8095
|
+
// ../../b4m-core/packages/services/dist/src/llm/ImageEdit.js
|
|
8096
|
+
import axios9 from "axios";
|
|
8097
|
+
import { fileTypeFromBuffer as fileTypeFromBuffer5 } from "file-type";
|
|
8098
|
+
import { v4 as uuidv48 } from "uuid";
|
|
8109
8099
|
import { z as z141 } from "zod";
|
|
8110
|
-
|
|
8111
|
-
|
|
8112
|
-
|
|
8100
|
+
import { fromZodError as fromZodError3 } from "zod-validation-error";
|
|
8101
|
+
var ImageEditBodySchema = OpenAIImageGenerationInput.extend({
|
|
8102
|
+
sessionId: z141.string(),
|
|
8103
|
+
questId: z141.string(),
|
|
8104
|
+
userId: z141.string(),
|
|
8105
|
+
prompt: z141.string(),
|
|
8106
|
+
safety_tolerance: z141.number().min(BFL_SAFETY_TOLERANCE.MIN).max(BFL_SAFETY_TOLERANCE.MAX).optional().default(BFL_SAFETY_TOLERANCE.DEFAULT),
|
|
8107
|
+
prompt_upsampling: z141.boolean().optional().default(false),
|
|
8108
|
+
seed: z141.number().nullable().optional(),
|
|
8109
|
+
output_format: z141.enum(["jpeg", "png"]).optional().default("png"),
|
|
8110
|
+
width: z141.number().optional(),
|
|
8111
|
+
height: z141.number().optional(),
|
|
8112
|
+
aspect_ratio: z141.string().optional(),
|
|
8113
|
+
size: z141.string().optional(),
|
|
8114
|
+
fabFileIds: z141.array(z141.string()).optional(),
|
|
8115
|
+
image: z141.string()
|
|
8116
|
+
});
|
|
8117
|
+
|
|
8118
|
+
// ../../b4m-core/packages/services/dist/src/llm/refineText.js
|
|
8119
|
+
import { z as z142 } from "zod";
|
|
8120
|
+
var refineTextLLMSchema = z142.object({
|
|
8121
|
+
text: z142.string(),
|
|
8122
|
+
context: z142.string().optional()
|
|
8113
8123
|
// tone: z.enum(['formal', 'informal', 'neutral']).optional(),
|
|
8114
8124
|
// style: z.enum(['technical', 'creative', 'academic', 'business', 'narrative']).optional(),
|
|
8115
8125
|
});
|
|
8116
8126
|
|
|
8117
8127
|
// ../../b4m-core/packages/services/dist/src/llm/MementoEvaluationService.js
|
|
8118
|
-
import { z as
|
|
8119
|
-
var SingleMementoEvalSchema =
|
|
8120
|
-
importance:
|
|
8128
|
+
import { z as z143 } from "zod";
|
|
8129
|
+
var SingleMementoEvalSchema = z143.object({
|
|
8130
|
+
importance: z143.number().min(1).max(10),
|
|
8121
8131
|
// 1-10 scale for personal info importance
|
|
8122
|
-
summary:
|
|
8123
|
-
tags:
|
|
8132
|
+
summary: z143.string(),
|
|
8133
|
+
tags: z143.array(z143.string()).optional()
|
|
8124
8134
|
});
|
|
8125
|
-
var MementoEvalResponseSchema =
|
|
8126
|
-
isPersonal:
|
|
8127
|
-
mementos:
|
|
8135
|
+
var MementoEvalResponseSchema = z143.object({
|
|
8136
|
+
isPersonal: z143.boolean(),
|
|
8137
|
+
mementos: z143.array(SingleMementoEvalSchema).optional()
|
|
8128
8138
|
// Array of distinct personal information
|
|
8129
8139
|
});
|
|
8130
8140
|
|
|
@@ -8361,8 +8371,8 @@ function generateCliTools(userId, llm, model, permissionManager, showPermissionP
|
|
|
8361
8371
|
}
|
|
8362
8372
|
|
|
8363
8373
|
// src/config/toolSafety.ts
|
|
8364
|
-
import { z as
|
|
8365
|
-
var ToolCategorySchema =
|
|
8374
|
+
import { z as z144 } from "zod";
|
|
8375
|
+
var ToolCategorySchema = z144.enum([
|
|
8366
8376
|
"auto_approve",
|
|
8367
8377
|
// Safe tools that run automatically without permission
|
|
8368
8378
|
"prompt_always",
|
|
@@ -8370,9 +8380,9 @@ var ToolCategorySchema = z143.enum([
|
|
|
8370
8380
|
"prompt_default"
|
|
8371
8381
|
// Tools that prompt by default but can be trusted
|
|
8372
8382
|
]);
|
|
8373
|
-
var ToolSafetyConfigSchema =
|
|
8374
|
-
categories:
|
|
8375
|
-
trustedTools:
|
|
8383
|
+
var ToolSafetyConfigSchema = z144.object({
|
|
8384
|
+
categories: z144.record(z144.string(), ToolCategorySchema),
|
|
8385
|
+
trustedTools: z144.array(z144.string())
|
|
8376
8386
|
});
|
|
8377
8387
|
var DEFAULT_TOOL_CATEGORIES = {
|
|
8378
8388
|
// ===== AUTO APPROVE (Safe tools) =====
|
|
@@ -9402,7 +9412,7 @@ import { isAxiosError as isAxiosError2 } from "axios";
|
|
|
9402
9412
|
// package.json
|
|
9403
9413
|
var package_default = {
|
|
9404
9414
|
name: "@bike4mind/cli",
|
|
9405
|
-
version: "0.2.
|
|
9415
|
+
version: "0.2.4-feat-questmaster-external-integrations.17091+24971cf66",
|
|
9406
9416
|
type: "module",
|
|
9407
9417
|
description: "Interactive CLI tool for Bike4Mind with ReAct agents",
|
|
9408
9418
|
license: "UNLICENSED",
|
|
@@ -9503,11 +9513,11 @@ var package_default = {
|
|
|
9503
9513
|
zustand: "^4.5.4"
|
|
9504
9514
|
},
|
|
9505
9515
|
devDependencies: {
|
|
9506
|
-
"@bike4mind/agents": "
|
|
9507
|
-
"@bike4mind/common": "
|
|
9508
|
-
"@bike4mind/mcp": "
|
|
9509
|
-
"@bike4mind/services": "
|
|
9510
|
-
"@bike4mind/utils": "
|
|
9516
|
+
"@bike4mind/agents": "0.1.0",
|
|
9517
|
+
"@bike4mind/common": "2.37.1-feat-questmaster-external-integrations.17091+24971cf66",
|
|
9518
|
+
"@bike4mind/mcp": "1.19.5-feat-questmaster-external-integrations.17091+24971cf66",
|
|
9519
|
+
"@bike4mind/services": "2.32.1-feat-questmaster-external-integrations.17091+24971cf66",
|
|
9520
|
+
"@bike4mind/utils": "2.1.1-feat-questmaster-external-integrations.17091+24971cf66",
|
|
9511
9521
|
"@types/diff": "^5.0.9",
|
|
9512
9522
|
"@types/jsonwebtoken": "^9.0.4",
|
|
9513
9523
|
"@types/node": "^22.9.0",
|
|
@@ -9518,7 +9528,8 @@ var package_default = {
|
|
|
9518
9528
|
tsx: "^4.21.0",
|
|
9519
9529
|
typescript: "^5.9.3",
|
|
9520
9530
|
vitest: "^3.2.4"
|
|
9521
|
-
}
|
|
9531
|
+
},
|
|
9532
|
+
gitHead: "24971cf669cd36bdfb4f1ebe54b1d002b01defd3"
|
|
9522
9533
|
};
|
|
9523
9534
|
|
|
9524
9535
|
// src/config/constants.ts
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
findMostSimilarMemento,
|
|
4
4
|
getRelevantMementos
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-UHTQGQB4.js";
|
|
6
|
+
import "./chunk-2IW5ZJXR.js";
|
|
7
7
|
import "./chunk-AMDXHL6S.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-PVLFZFW3.js";
|
|
9
9
|
import "./chunk-PDX44BCA.js";
|
|
10
10
|
export {
|
|
11
11
|
findMostSimilarMemento,
|
|
File without changes
|
|
@@ -120,7 +120,7 @@ import {
|
|
|
120
120
|
validateMermaidSyntax,
|
|
121
121
|
warmUpSettingsCache,
|
|
122
122
|
withRetry
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-2IW5ZJXR.js";
|
|
124
124
|
import {
|
|
125
125
|
Logger,
|
|
126
126
|
NotificationDeduplicator,
|
|
@@ -129,7 +129,7 @@ import {
|
|
|
129
129
|
postLowCreditsNotificationToSlack,
|
|
130
130
|
postMessageToSlack
|
|
131
131
|
} from "./chunk-AMDXHL6S.js";
|
|
132
|
-
import "./chunk-
|
|
132
|
+
import "./chunk-PVLFZFW3.js";
|
|
133
133
|
import "./chunk-PDX44BCA.js";
|
|
134
134
|
export {
|
|
135
135
|
AWSBackend,
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
SubtractCreditsSchema,
|
|
4
4
|
subtractCredits
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-7OJVF5WR.js";
|
|
6
|
+
import "./chunk-2IW5ZJXR.js";
|
|
7
7
|
import "./chunk-AMDXHL6S.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-PVLFZFW3.js";
|
|
9
9
|
import "./chunk-PDX44BCA.js";
|
|
10
10
|
export {
|
|
11
11
|
SubtractCreditsSchema,
|
package/dist/utils-JPMDGUBL.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bike4mind/cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4-feat-questmaster-external-integrations.17091+24971cf66",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Interactive CLI tool for Bike4Mind with ReAct agents",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -30,6 +30,15 @@
|
|
|
30
30
|
"dist",
|
|
31
31
|
"bin"
|
|
32
32
|
],
|
|
33
|
+
"scripts": {
|
|
34
|
+
"dev": "tsx src/index.tsx",
|
|
35
|
+
"build": "tsup",
|
|
36
|
+
"typecheck": "tsc --noEmit",
|
|
37
|
+
"test": "vitest run",
|
|
38
|
+
"test:watch": "vitest",
|
|
39
|
+
"start": "node dist/index.js",
|
|
40
|
+
"prepublishOnly": "pnpm build"
|
|
41
|
+
},
|
|
33
42
|
"dependencies": {
|
|
34
43
|
"@anthropic-ai/sdk": "^0.22.0",
|
|
35
44
|
"@aws-sdk/client-apigatewaymanagementapi": "3.654.0",
|
|
@@ -92,6 +101,11 @@
|
|
|
92
101
|
"zustand": "^4.5.4"
|
|
93
102
|
},
|
|
94
103
|
"devDependencies": {
|
|
104
|
+
"@bike4mind/agents": "0.1.0",
|
|
105
|
+
"@bike4mind/common": "2.37.1-feat-questmaster-external-integrations.17091+24971cf66",
|
|
106
|
+
"@bike4mind/mcp": "1.19.5-feat-questmaster-external-integrations.17091+24971cf66",
|
|
107
|
+
"@bike4mind/services": "2.32.1-feat-questmaster-external-integrations.17091+24971cf66",
|
|
108
|
+
"@bike4mind/utils": "2.1.1-feat-questmaster-external-integrations.17091+24971cf66",
|
|
95
109
|
"@types/diff": "^5.0.9",
|
|
96
110
|
"@types/jsonwebtoken": "^9.0.4",
|
|
97
111
|
"@types/node": "^22.9.0",
|
|
@@ -101,19 +115,7 @@
|
|
|
101
115
|
"tsup": "^8.5.1",
|
|
102
116
|
"tsx": "^4.21.0",
|
|
103
117
|
"typescript": "^5.9.3",
|
|
104
|
-
"vitest": "^3.2.4"
|
|
105
|
-
"@bike4mind/agents": "0.1.0",
|
|
106
|
-
"@bike4mind/common": "2.37.0",
|
|
107
|
-
"@bike4mind/mcp": "1.19.4",
|
|
108
|
-
"@bike4mind/services": "2.32.0",
|
|
109
|
-
"@bike4mind/utils": "2.1.0"
|
|
118
|
+
"vitest": "^3.2.4"
|
|
110
119
|
},
|
|
111
|
-
"
|
|
112
|
-
|
|
113
|
-
"build": "tsup",
|
|
114
|
-
"typecheck": "tsc --noEmit",
|
|
115
|
-
"test": "vitest run",
|
|
116
|
-
"test:watch": "vitest",
|
|
117
|
-
"start": "node dist/index.js"
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
+
"gitHead": "24971cf669cd36bdfb4f1ebe54b1d002b01defd3"
|
|
121
|
+
}
|