@bike4mind/cli 0.2.5-feat-cli-dynamic-model-fetching.17089 → 0.2.5-ja-fix-confluence-table-data-5752.17099
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-AC5EEA44.js} +1 -1
- package/dist/{chunk-6AJODFPC.js → chunk-5C4N5XV6.js} +2 -2
- package/dist/{chunk-LEG2UM5Q.js → chunk-B37KE3DY.js} +2 -2
- package/dist/{chunk-WR6YZRQV.js → chunk-CPQLYJQO.js} +113 -30
- package/dist/{chunk-LYNNVNEC.js → chunk-ULYWSTJ2.js} +1 -1
- package/dist/{chunk-WNBKV4FX.js → chunk-W5TRKADC.js} +2 -2
- package/dist/{create-LOAAI36O.js → create-I7T6Z44W.js} +3 -3
- package/dist/index.js +108 -162
- package/dist/{llmMarkdownGenerator-4ZR3FLEQ.js → llmMarkdownGenerator-K62HBENC.js} +1 -1
- package/dist/{markdownGenerator-7WE7WKME.js → markdownGenerator-JEP35L6E.js} +1 -1
- package/dist/{mementoService-XGFAWC5F.js → mementoService-C6DRHUJ6.js} +3 -3
- package/dist/{src-32Z2VZMC.js → src-3DSF3X7S.js} +2 -2
- package/dist/{src-6J6LFPZ6.js → src-NRYW74CB.js} +1 -1
- package/dist/{subtractCredits-VMGWNJS7.js → subtractCredits-6ATO6IME.js} +3 -3
- package/package.json +6 -6
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
getSettingsMap,
|
|
8
8
|
getSettingsValue,
|
|
9
9
|
secureParameters
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ULYWSTJ2.js";
|
|
11
11
|
import {
|
|
12
12
|
KnowledgeType,
|
|
13
13
|
SupportedFabFileMimeTypes
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-CPQLYJQO.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-ULYWSTJ2.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-CPQLYJQO.js";
|
|
14
14
|
|
|
15
15
|
// ../../b4m-core/packages/services/dist/src/creditService/subtractCredits.js
|
|
16
16
|
import { z } from "zod";
|
|
@@ -5010,6 +5010,74 @@ function formatUserList(users) {
|
|
|
5010
5010
|
}
|
|
5011
5011
|
|
|
5012
5012
|
// ../../b4m-core/packages/common/dist/src/jira/api.js
|
|
5013
|
+
function wikiMarkupToAdf(text) {
|
|
5014
|
+
const lines = text.split("\n");
|
|
5015
|
+
const content = [];
|
|
5016
|
+
let currentTableRows = [];
|
|
5017
|
+
let inTable = false;
|
|
5018
|
+
for (const line of lines) {
|
|
5019
|
+
const trimmedLine = line.trim();
|
|
5020
|
+
if (trimmedLine.startsWith("||") && trimmedLine.endsWith("||")) {
|
|
5021
|
+
inTable = true;
|
|
5022
|
+
const cells = trimmedLine.slice(2, -2).split("||").map((cell) => cell.trim());
|
|
5023
|
+
const headerRow = {
|
|
5024
|
+
type: "tableRow",
|
|
5025
|
+
content: cells.map((cell) => ({
|
|
5026
|
+
type: "tableHeader",
|
|
5027
|
+
attrs: {},
|
|
5028
|
+
content: [{ type: "paragraph", content: [{ type: "text", text: cell || " " }] }]
|
|
5029
|
+
}))
|
|
5030
|
+
};
|
|
5031
|
+
currentTableRows.push(headerRow);
|
|
5032
|
+
continue;
|
|
5033
|
+
}
|
|
5034
|
+
if (trimmedLine.startsWith("|") && trimmedLine.endsWith("|") && !trimmedLine.startsWith("||")) {
|
|
5035
|
+
inTable = true;
|
|
5036
|
+
const cells = trimmedLine.slice(1, -1).split("|").map((cell) => cell.trim());
|
|
5037
|
+
const dataRow = {
|
|
5038
|
+
type: "tableRow",
|
|
5039
|
+
content: cells.map((cell) => ({
|
|
5040
|
+
type: "tableCell",
|
|
5041
|
+
attrs: {},
|
|
5042
|
+
content: [{ type: "paragraph", content: [{ type: "text", text: cell || " " }] }]
|
|
5043
|
+
}))
|
|
5044
|
+
};
|
|
5045
|
+
currentTableRows.push(dataRow);
|
|
5046
|
+
continue;
|
|
5047
|
+
}
|
|
5048
|
+
if (inTable && currentTableRows.length > 0) {
|
|
5049
|
+
const table = {
|
|
5050
|
+
type: "table",
|
|
5051
|
+
attrs: { isNumberColumnEnabled: false, layout: "default" },
|
|
5052
|
+
content: currentTableRows
|
|
5053
|
+
};
|
|
5054
|
+
content.push(table);
|
|
5055
|
+
currentTableRows = [];
|
|
5056
|
+
inTable = false;
|
|
5057
|
+
}
|
|
5058
|
+
if (trimmedLine) {
|
|
5059
|
+
content.push({
|
|
5060
|
+
type: "paragraph",
|
|
5061
|
+
content: [{ type: "text", text: trimmedLine }]
|
|
5062
|
+
});
|
|
5063
|
+
}
|
|
5064
|
+
}
|
|
5065
|
+
if (currentTableRows.length > 0) {
|
|
5066
|
+
const table = {
|
|
5067
|
+
type: "table",
|
|
5068
|
+
attrs: { isNumberColumnEnabled: false, layout: "default" },
|
|
5069
|
+
content: currentTableRows
|
|
5070
|
+
};
|
|
5071
|
+
content.push(table);
|
|
5072
|
+
}
|
|
5073
|
+
if (content.length === 0) {
|
|
5074
|
+
content.push({ type: "paragraph", content: [{ type: "text", text: " " }] });
|
|
5075
|
+
}
|
|
5076
|
+
return { type: "doc", version: 1, content };
|
|
5077
|
+
}
|
|
5078
|
+
function containsWikiTable(text) {
|
|
5079
|
+
return /^\|\|.+\|\|$/m.test(text) || /^\|[^|]+\|$/m.test(text);
|
|
5080
|
+
}
|
|
5013
5081
|
var JiraApi = class {
|
|
5014
5082
|
config;
|
|
5015
5083
|
constructor(config) {
|
|
@@ -5089,16 +5157,21 @@ var JiraApi = class {
|
|
|
5089
5157
|
...customFields
|
|
5090
5158
|
};
|
|
5091
5159
|
if (description) {
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
|
|
5100
|
-
|
|
5101
|
-
|
|
5160
|
+
if (containsWikiTable(description)) {
|
|
5161
|
+
console.log("[JIRA-ADF] Converting wiki table to ADF", { length: description.length });
|
|
5162
|
+
fields.description = wikiMarkupToAdf(description);
|
|
5163
|
+
} else {
|
|
5164
|
+
fields.description = {
|
|
5165
|
+
type: "doc",
|
|
5166
|
+
version: 1,
|
|
5167
|
+
content: [
|
|
5168
|
+
{
|
|
5169
|
+
type: "paragraph",
|
|
5170
|
+
content: [{ type: "text", text: description }]
|
|
5171
|
+
}
|
|
5172
|
+
]
|
|
5173
|
+
};
|
|
5174
|
+
}
|
|
5102
5175
|
}
|
|
5103
5176
|
if (assignee) {
|
|
5104
5177
|
fields.assignee = { id: assignee };
|
|
@@ -5124,16 +5197,21 @@ var JiraApi = class {
|
|
|
5124
5197
|
fields.summary = summary;
|
|
5125
5198
|
}
|
|
5126
5199
|
if (description) {
|
|
5127
|
-
|
|
5128
|
-
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
|
|
5133
|
-
|
|
5134
|
-
|
|
5135
|
-
|
|
5136
|
-
|
|
5200
|
+
if (containsWikiTable(description)) {
|
|
5201
|
+
console.log("[JIRA-ADF] Converting wiki table to ADF (update)", { length: description.length });
|
|
5202
|
+
fields.description = wikiMarkupToAdf(description);
|
|
5203
|
+
} else {
|
|
5204
|
+
fields.description = {
|
|
5205
|
+
type: "doc",
|
|
5206
|
+
version: 1,
|
|
5207
|
+
content: [
|
|
5208
|
+
{
|
|
5209
|
+
type: "paragraph",
|
|
5210
|
+
content: [{ type: "text", text: description }]
|
|
5211
|
+
}
|
|
5212
|
+
]
|
|
5213
|
+
};
|
|
5214
|
+
}
|
|
5137
5215
|
}
|
|
5138
5216
|
if (labels) {
|
|
5139
5217
|
fields.labels = labels;
|
|
@@ -5293,16 +5371,21 @@ var JiraApi = class {
|
|
|
5293
5371
|
issuetype: { name: issueTypeName }
|
|
5294
5372
|
};
|
|
5295
5373
|
if (description) {
|
|
5296
|
-
|
|
5297
|
-
|
|
5298
|
-
|
|
5299
|
-
|
|
5300
|
-
|
|
5301
|
-
|
|
5302
|
-
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
|
|
5374
|
+
if (containsWikiTable(description)) {
|
|
5375
|
+
console.log("[JIRA-ADF] Converting wiki table to ADF (bulk)", { length: description.length });
|
|
5376
|
+
fields.description = wikiMarkupToAdf(description);
|
|
5377
|
+
} else {
|
|
5378
|
+
fields.description = {
|
|
5379
|
+
type: "doc",
|
|
5380
|
+
version: 1,
|
|
5381
|
+
content: [
|
|
5382
|
+
{
|
|
5383
|
+
type: "paragraph",
|
|
5384
|
+
content: [{ type: "text", text: description }]
|
|
5385
|
+
}
|
|
5386
|
+
]
|
|
5387
|
+
};
|
|
5388
|
+
}
|
|
5306
5389
|
}
|
|
5307
5390
|
if (assignee) {
|
|
5308
5391
|
fields.assignee = { id: assignee };
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
dayjsConfig_default,
|
|
17
17
|
extractSnippetMeta,
|
|
18
18
|
settingsMap
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-CPQLYJQO.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";
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
getSettingsByNames,
|
|
7
7
|
obfuscateApiKey,
|
|
8
8
|
secureParameters
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ULYWSTJ2.js";
|
|
10
10
|
import {
|
|
11
11
|
ApiKeyType,
|
|
12
12
|
MementoTier,
|
|
13
13
|
isSupportedEmbeddingModel
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-CPQLYJQO.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-5C4N5XV6.js";
|
|
6
|
+
import "./chunk-ULYWSTJ2.js";
|
|
7
7
|
import "./chunk-AMDXHL6S.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-CPQLYJQO.js";
|
|
9
9
|
import "./chunk-PDX44BCA.js";
|
|
10
10
|
export {
|
|
11
11
|
createFabFile,
|
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-W5TRKADC.js";
|
|
8
|
+
import "./chunk-B37KE3DY.js";
|
|
9
|
+
import "./chunk-5C4N5XV6.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-ULYWSTJ2.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-CPQLYJQO.js";
|
|
77
77
|
import {
|
|
78
78
|
__require
|
|
79
79
|
} from "./chunk-PDX44BCA.js";
|
|
@@ -685,119 +685,100 @@ var EXPORT_FORMAT_OPTIONS = [
|
|
|
685
685
|
{ label: "markdown", value: "markdown" },
|
|
686
686
|
{ label: "json", value: "json" }
|
|
687
687
|
];
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
{
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
preferences
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
preferences
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
},
|
|
779
|
-
{
|
|
780
|
-
key: "exportFormat",
|
|
781
|
-
label: "Export Format",
|
|
782
|
-
type: "select",
|
|
783
|
-
options: EXPORT_FORMAT_OPTIONS,
|
|
784
|
-
getValue: (config) => config.preferences.exportFormat,
|
|
785
|
-
setValue: (config, value) => ({
|
|
786
|
-
...config,
|
|
787
|
-
preferences: {
|
|
788
|
-
...config.preferences,
|
|
789
|
-
exportFormat: value
|
|
790
|
-
}
|
|
791
|
-
})
|
|
792
|
-
}
|
|
793
|
-
];
|
|
794
|
-
}
|
|
795
|
-
function ConfigEditor({ config, availableModels, onSave, onClose }) {
|
|
688
|
+
var CONFIG_ITEMS = [
|
|
689
|
+
{
|
|
690
|
+
key: "maxIterations",
|
|
691
|
+
label: "Max Iterations",
|
|
692
|
+
type: "select",
|
|
693
|
+
options: MAX_ITERATIONS_OPTIONS,
|
|
694
|
+
getValue: (config) => config.preferences.maxIterations,
|
|
695
|
+
setValue: (config, value) => ({
|
|
696
|
+
...config,
|
|
697
|
+
preferences: {
|
|
698
|
+
...config.preferences,
|
|
699
|
+
maxIterations: value
|
|
700
|
+
}
|
|
701
|
+
})
|
|
702
|
+
},
|
|
703
|
+
{
|
|
704
|
+
key: "maxTokens",
|
|
705
|
+
label: "Max Tokens",
|
|
706
|
+
type: "number",
|
|
707
|
+
min: 256,
|
|
708
|
+
max: 128e3,
|
|
709
|
+
step: 256,
|
|
710
|
+
getValue: (config) => config.preferences.maxTokens,
|
|
711
|
+
setValue: (config, value) => ({
|
|
712
|
+
...config,
|
|
713
|
+
preferences: {
|
|
714
|
+
...config.preferences,
|
|
715
|
+
maxTokens: value
|
|
716
|
+
}
|
|
717
|
+
})
|
|
718
|
+
},
|
|
719
|
+
{
|
|
720
|
+
key: "temperature",
|
|
721
|
+
label: "Temperature",
|
|
722
|
+
type: "number",
|
|
723
|
+
min: 0,
|
|
724
|
+
max: 2,
|
|
725
|
+
step: 0.1,
|
|
726
|
+
getValue: (config) => config.preferences.temperature,
|
|
727
|
+
setValue: (config, value) => ({
|
|
728
|
+
...config,
|
|
729
|
+
preferences: {
|
|
730
|
+
...config.preferences,
|
|
731
|
+
temperature: value
|
|
732
|
+
}
|
|
733
|
+
})
|
|
734
|
+
},
|
|
735
|
+
{
|
|
736
|
+
key: "autoSave",
|
|
737
|
+
label: "Auto Save",
|
|
738
|
+
type: "boolean",
|
|
739
|
+
getValue: (config) => config.preferences.autoSave,
|
|
740
|
+
setValue: (config, value) => ({
|
|
741
|
+
...config,
|
|
742
|
+
preferences: {
|
|
743
|
+
...config.preferences,
|
|
744
|
+
autoSave: value
|
|
745
|
+
}
|
|
746
|
+
})
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
key: "theme",
|
|
750
|
+
label: "Theme",
|
|
751
|
+
type: "select",
|
|
752
|
+
options: THEME_OPTIONS,
|
|
753
|
+
getValue: (config) => config.preferences.theme,
|
|
754
|
+
setValue: (config, value) => ({
|
|
755
|
+
...config,
|
|
756
|
+
preferences: {
|
|
757
|
+
...config.preferences,
|
|
758
|
+
theme: value
|
|
759
|
+
}
|
|
760
|
+
})
|
|
761
|
+
},
|
|
762
|
+
{
|
|
763
|
+
key: "exportFormat",
|
|
764
|
+
label: "Export Format",
|
|
765
|
+
type: "select",
|
|
766
|
+
options: EXPORT_FORMAT_OPTIONS,
|
|
767
|
+
getValue: (config) => config.preferences.exportFormat,
|
|
768
|
+
setValue: (config, value) => ({
|
|
769
|
+
...config,
|
|
770
|
+
preferences: {
|
|
771
|
+
...config.preferences,
|
|
772
|
+
exportFormat: value
|
|
773
|
+
}
|
|
774
|
+
})
|
|
775
|
+
}
|
|
776
|
+
];
|
|
777
|
+
function ConfigEditor({ config, onSave, onClose }) {
|
|
796
778
|
const [selectedIndex, setSelectedIndex] = useState2(0);
|
|
797
779
|
const [editedConfig, setEditedConfig] = useState2(config);
|
|
798
780
|
const [saveError, setSaveError] = useState2(null);
|
|
799
781
|
const [isSaving, setIsSaving] = useState2(false);
|
|
800
|
-
const configItems = useMemo2(() => buildConfigItems(availableModels), [availableModels]);
|
|
801
782
|
const hasChanges = useMemo2(() => {
|
|
802
783
|
return JSON.stringify(config.preferences) !== JSON.stringify(editedConfig.preferences);
|
|
803
784
|
}, [config.preferences, editedConfig.preferences]);
|
|
@@ -817,13 +798,13 @@ function ConfigEditor({ config, availableModels, onSave, onClose }) {
|
|
|
817
798
|
onClose();
|
|
818
799
|
};
|
|
819
800
|
useInput2((input, key) => {
|
|
820
|
-
const currentItem =
|
|
801
|
+
const currentItem = CONFIG_ITEMS[selectedIndex];
|
|
821
802
|
if (key.upArrow) {
|
|
822
|
-
setSelectedIndex((prev) => prev > 0 ? prev - 1 :
|
|
803
|
+
setSelectedIndex((prev) => prev > 0 ? prev - 1 : CONFIG_ITEMS.length - 1);
|
|
823
804
|
return;
|
|
824
805
|
}
|
|
825
806
|
if (key.downArrow) {
|
|
826
|
-
setSelectedIndex((prev) => prev <
|
|
807
|
+
setSelectedIndex((prev) => prev < CONFIG_ITEMS.length - 1 ? prev + 1 : 0);
|
|
827
808
|
return;
|
|
828
809
|
}
|
|
829
810
|
if ((key.escape || input === "q") && !isSaving) {
|
|
@@ -881,7 +862,7 @@ function ConfigEditor({ config, availableModels, onSave, onClose }) {
|
|
|
881
862
|
}
|
|
882
863
|
return String(value);
|
|
883
864
|
};
|
|
884
|
-
return /* @__PURE__ */ React8.createElement(Box8, { flexDirection: "column", borderStyle: "round", borderColor: "cyan", paddingX: 2, paddingY: 1, marginY: 1 }, /* @__PURE__ */ React8.createElement(Box8, { justifyContent: "space-between", marginBottom: 1 }, /* @__PURE__ */ React8.createElement(Text7, { bold: true, color: "cyan" }, "Settings"), isSaving ? /* @__PURE__ */ React8.createElement(Text7, { color: "yellow" }, "Saving...") : hasChanges ? /* @__PURE__ */ React8.createElement(Text7, { dimColor: true, color: "yellow" }, "(unsaved changes)") : null), saveError && /* @__PURE__ */ React8.createElement(Box8, { marginBottom: 1 }, /* @__PURE__ */ React8.createElement(Text7, { color: "red" }, "Error: ", saveError)), /* @__PURE__ */ React8.createElement(Box8, { flexDirection: "column", marginBottom: 1 },
|
|
865
|
+
return /* @__PURE__ */ React8.createElement(Box8, { flexDirection: "column", borderStyle: "round", borderColor: "cyan", paddingX: 2, paddingY: 1, marginY: 1 }, /* @__PURE__ */ React8.createElement(Box8, { justifyContent: "space-between", marginBottom: 1 }, /* @__PURE__ */ React8.createElement(Text7, { bold: true, color: "cyan" }, "Settings"), isSaving ? /* @__PURE__ */ React8.createElement(Text7, { color: "yellow" }, "Saving...") : hasChanges ? /* @__PURE__ */ React8.createElement(Text7, { dimColor: true, color: "yellow" }, "(unsaved changes)") : null), saveError && /* @__PURE__ */ React8.createElement(Box8, { marginBottom: 1 }, /* @__PURE__ */ React8.createElement(Text7, { color: "red" }, "Error: ", saveError)), /* @__PURE__ */ React8.createElement(Box8, { flexDirection: "column", marginBottom: 1 }, CONFIG_ITEMS.map((item, index) => {
|
|
885
866
|
const isSelected = index === selectedIndex;
|
|
886
867
|
const value = item.getValue(editedConfig);
|
|
887
868
|
const displayValue = formatValue(item, value);
|
|
@@ -1011,7 +992,6 @@ function App({
|
|
|
1011
992
|
onPermissionResponse,
|
|
1012
993
|
commandHistory = [],
|
|
1013
994
|
config,
|
|
1014
|
-
availableModels = [],
|
|
1015
995
|
onSaveConfig
|
|
1016
996
|
}) {
|
|
1017
997
|
const messages = useCliStore((state) => state.session?.messages || []);
|
|
@@ -1053,15 +1033,7 @@ ${errorBlock}`;
|
|
|
1053
1033
|
},
|
|
1054
1034
|
[onMessage, onCommand, setIsThinking]
|
|
1055
1035
|
);
|
|
1056
|
-
return /* @__PURE__ */ React9.createElement(Box9, { flexDirection: "column" }, /* @__PURE__ */ React9.createElement(StatusBar, { sessionName, model: currentModel, tokenUsage: totalTokens }), showConfigEditor && config && onSaveConfig ? /* @__PURE__ */ React9.createElement(Box9, { flexDirection: "column", paddingX: 1 }, /* @__PURE__ */ React9.createElement(
|
|
1057
|
-
ConfigEditor,
|
|
1058
|
-
{
|
|
1059
|
-
config,
|
|
1060
|
-
availableModels,
|
|
1061
|
-
onSave: onSaveConfig,
|
|
1062
|
-
onClose: () => setShowConfigEditor(false)
|
|
1063
|
-
}
|
|
1064
|
-
)) : permissionPrompt ? /* @__PURE__ */ React9.createElement(Box9, { flexDirection: "column", paddingX: 1 }, /* @__PURE__ */ React9.createElement(
|
|
1036
|
+
return /* @__PURE__ */ React9.createElement(Box9, { flexDirection: "column" }, /* @__PURE__ */ React9.createElement(StatusBar, { sessionName, model: currentModel, tokenUsage: totalTokens }), showConfigEditor && config && onSaveConfig ? /* @__PURE__ */ React9.createElement(Box9, { flexDirection: "column", paddingX: 1 }, /* @__PURE__ */ React9.createElement(ConfigEditor, { config, onSave: onSaveConfig, onClose: () => setShowConfigEditor(false) })) : permissionPrompt ? /* @__PURE__ */ React9.createElement(Box9, { flexDirection: "column", paddingX: 1 }, /* @__PURE__ */ React9.createElement(
|
|
1065
1037
|
PermissionPrompt,
|
|
1066
1038
|
{
|
|
1067
1039
|
toolName: permissionPrompt.toolName,
|
|
@@ -9243,32 +9215,9 @@ var ServerLlmBackend = class {
|
|
|
9243
9215
|
}
|
|
9244
9216
|
/**
|
|
9245
9217
|
* Get available models from server
|
|
9246
|
-
*
|
|
9247
|
-
* Falls back to hardcoded list if API fails
|
|
9218
|
+
* For now, returns hardcoded list of supported models
|
|
9248
9219
|
*/
|
|
9249
9220
|
async getModelInfo() {
|
|
9250
|
-
try {
|
|
9251
|
-
logger.debug("[ServerLlmBackend] Fetching models from /api/models");
|
|
9252
|
-
const response = await this.apiClient.get("/api/models");
|
|
9253
|
-
const filteredModels = response.models.filter((model) => model.type === "text" && model.supportsTools === true);
|
|
9254
|
-
logger.debug(`[ServerLlmBackend] Fetched ${filteredModels.length} CLI-compatible models`);
|
|
9255
|
-
if (filteredModels.length === 0) {
|
|
9256
|
-
logger.warn("[ServerLlmBackend] No CLI-compatible models found from API, using fallback");
|
|
9257
|
-
return this.getFallbackModels();
|
|
9258
|
-
}
|
|
9259
|
-
return filteredModels;
|
|
9260
|
-
} catch (error) {
|
|
9261
|
-
logger.warn(
|
|
9262
|
-
`[ServerLlmBackend] Failed to fetch models from API, using fallback: ${error instanceof Error ? error.message : String(error)}`
|
|
9263
|
-
);
|
|
9264
|
-
return this.getFallbackModels();
|
|
9265
|
-
}
|
|
9266
|
-
}
|
|
9267
|
-
/**
|
|
9268
|
-
* Fallback models when API is unavailable
|
|
9269
|
-
* Returns hardcoded list of commonly supported models
|
|
9270
|
-
*/
|
|
9271
|
-
getFallbackModels() {
|
|
9272
9221
|
return [
|
|
9273
9222
|
{
|
|
9274
9223
|
id: "claude-sonnet-4-5-20250929",
|
|
@@ -9453,7 +9402,7 @@ import { isAxiosError as isAxiosError2 } from "axios";
|
|
|
9453
9402
|
// package.json
|
|
9454
9403
|
var package_default = {
|
|
9455
9404
|
name: "@bike4mind/cli",
|
|
9456
|
-
version: "0.2.5-
|
|
9405
|
+
version: "0.2.5-ja-fix-confluence-table-data-5752.17099+e0f9369ee",
|
|
9457
9406
|
type: "module",
|
|
9458
9407
|
description: "Interactive CLI tool for Bike4Mind with ReAct agents",
|
|
9459
9408
|
license: "UNLICENSED",
|
|
@@ -9555,10 +9504,10 @@ var package_default = {
|
|
|
9555
9504
|
},
|
|
9556
9505
|
devDependencies: {
|
|
9557
9506
|
"@bike4mind/agents": "0.1.0",
|
|
9558
|
-
"@bike4mind/common": "2.37.1-
|
|
9559
|
-
"@bike4mind/mcp": "1.19.6-
|
|
9560
|
-
"@bike4mind/services": "2.32.2-
|
|
9561
|
-
"@bike4mind/utils": "2.1.1-
|
|
9507
|
+
"@bike4mind/common": "2.37.1-ja-fix-confluence-table-data-5752.17099+e0f9369ee",
|
|
9508
|
+
"@bike4mind/mcp": "1.19.6-ja-fix-confluence-table-data-5752.17099+e0f9369ee",
|
|
9509
|
+
"@bike4mind/services": "2.32.2-ja-fix-confluence-table-data-5752.17099+e0f9369ee",
|
|
9510
|
+
"@bike4mind/utils": "2.1.1-ja-fix-confluence-table-data-5752.17099+e0f9369ee",
|
|
9562
9511
|
"@types/diff": "^5.0.9",
|
|
9563
9512
|
"@types/jsonwebtoken": "^9.0.4",
|
|
9564
9513
|
"@types/node": "^22.9.0",
|
|
@@ -9570,7 +9519,7 @@ var package_default = {
|
|
|
9570
9519
|
typescript: "^5.9.3",
|
|
9571
9520
|
vitest: "^3.2.4"
|
|
9572
9521
|
},
|
|
9573
|
-
gitHead: "
|
|
9522
|
+
gitHead: "e0f9369eec122dbd470f6018c164da6f08276d03"
|
|
9574
9523
|
};
|
|
9575
9524
|
|
|
9576
9525
|
// src/config/constants.ts
|
|
@@ -9853,10 +9802,8 @@ Remember: Use context from previous messages to understand follow-up questions.`
|
|
|
9853
9802
|
agent,
|
|
9854
9803
|
mcpManager,
|
|
9855
9804
|
permissionManager,
|
|
9856
|
-
config
|
|
9805
|
+
config
|
|
9857
9806
|
// Store config for synchronous access
|
|
9858
|
-
availableModels: models
|
|
9859
|
-
// Store models for ConfigEditor
|
|
9860
9807
|
}));
|
|
9861
9808
|
setStoreSession(newSession);
|
|
9862
9809
|
setIsInitialized(true);
|
|
@@ -10292,7 +10239,6 @@ No usage data available for the last ${USAGE_DAYS} days.`);
|
|
|
10292
10239
|
onCommand: handleCommand,
|
|
10293
10240
|
commandHistory,
|
|
10294
10241
|
config: state.config,
|
|
10295
|
-
availableModels: state.availableModels,
|
|
10296
10242
|
onSaveConfig: handleSaveConfig,
|
|
10297
10243
|
onPermissionResponse: (response) => {
|
|
10298
10244
|
if (state.permissionPrompt) {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
findMostSimilarMemento,
|
|
4
4
|
getRelevantMementos
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-W5TRKADC.js";
|
|
6
|
+
import "./chunk-ULYWSTJ2.js";
|
|
7
7
|
import "./chunk-AMDXHL6S.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-CPQLYJQO.js";
|
|
9
9
|
import "./chunk-PDX44BCA.js";
|
|
10
10
|
export {
|
|
11
11
|
findMostSimilarMemento,
|
|
@@ -120,7 +120,7 @@ import {
|
|
|
120
120
|
validateMermaidSyntax,
|
|
121
121
|
warmUpSettingsCache,
|
|
122
122
|
withRetry
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-ULYWSTJ2.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-CPQLYJQO.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-B37KE3DY.js";
|
|
6
|
+
import "./chunk-ULYWSTJ2.js";
|
|
7
7
|
import "./chunk-AMDXHL6S.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-CPQLYJQO.js";
|
|
9
9
|
import "./chunk-PDX44BCA.js";
|
|
10
10
|
export {
|
|
11
11
|
SubtractCreditsSchema,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bike4mind/cli",
|
|
3
|
-
"version": "0.2.5-
|
|
3
|
+
"version": "0.2.5-ja-fix-confluence-table-data-5752.17099+e0f9369ee",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Interactive CLI tool for Bike4Mind with ReAct agents",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -102,10 +102,10 @@
|
|
|
102
102
|
},
|
|
103
103
|
"devDependencies": {
|
|
104
104
|
"@bike4mind/agents": "0.1.0",
|
|
105
|
-
"@bike4mind/common": "2.37.1-
|
|
106
|
-
"@bike4mind/mcp": "1.19.6-
|
|
107
|
-
"@bike4mind/services": "2.32.2-
|
|
108
|
-
"@bike4mind/utils": "2.1.1-
|
|
105
|
+
"@bike4mind/common": "2.37.1-ja-fix-confluence-table-data-5752.17099+e0f9369ee",
|
|
106
|
+
"@bike4mind/mcp": "1.19.6-ja-fix-confluence-table-data-5752.17099+e0f9369ee",
|
|
107
|
+
"@bike4mind/services": "2.32.2-ja-fix-confluence-table-data-5752.17099+e0f9369ee",
|
|
108
|
+
"@bike4mind/utils": "2.1.1-ja-fix-confluence-table-data-5752.17099+e0f9369ee",
|
|
109
109
|
"@types/diff": "^5.0.9",
|
|
110
110
|
"@types/jsonwebtoken": "^9.0.4",
|
|
111
111
|
"@types/node": "^22.9.0",
|
|
@@ -117,5 +117,5 @@
|
|
|
117
117
|
"typescript": "^5.9.3",
|
|
118
118
|
"vitest": "^3.2.4"
|
|
119
119
|
},
|
|
120
|
-
"gitHead": "
|
|
120
|
+
"gitHead": "e0f9369eec122dbd470f6018c164da6f08276d03"
|
|
121
121
|
}
|