@bike4mind/cli 0.2.17-add-confluence-comments.17718 → 0.2.17-add-confluence-comments.17719
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-DXOCP4HU.js → artifactExtractor-XSGTKAZF.js} +1 -1
- package/dist/{chunk-KONNPYSH.js → chunk-3AJTWCVD.js} +2 -2
- package/dist/{chunk-ZB6QS663.js → chunk-3ZTLMG6X.js} +2 -2
- package/dist/{chunk-NRCCKB6V.js → chunk-DSL5DIST.js} +2 -2
- package/dist/{chunk-X3OOHIIY.js → chunk-OWVEIJTU.js} +1 -1
- package/dist/{chunk-B5TW7WER.js → chunk-PX57ZQYX.js} +42 -19
- package/dist/{create-7AJHBWJG.js → create-PSDXX6PZ.js} +3 -3
- package/dist/index.js +11 -11
- package/dist/{llmMarkdownGenerator-QVEBSM7H.js → llmMarkdownGenerator-LKMLXNT5.js} +1 -1
- package/dist/{markdownGenerator-DN6YGZGO.js → markdownGenerator-V463I5JV.js} +1 -1
- package/dist/{mementoService-V3DMZJKU.js → mementoService-XPU44REO.js} +3 -3
- package/dist/{src-I5L4S2Y6.js → src-6IXQF3JE.js} +1 -1
- package/dist/{src-33G7EMUP.js → src-AV4PRVNQ.js} +2 -2
- package/dist/{subtractCredits-H45A4MA7.js → subtractCredits-5IDMVNHI.js} +3 -3
- package/package.json +6 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
CurationArtifactType
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PX57ZQYX.js";
|
|
5
5
|
|
|
6
6
|
// ../../b4m-core/packages/services/dist/src/notebookCurationService/artifactExtractor.js
|
|
7
7
|
var ARTIFACT_TAG_REGEX = /<artifact\s+(.*?)>([\s\S]*?)<\/artifact>/gi;
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
getSettingsByNames,
|
|
7
7
|
obfuscateApiKey,
|
|
8
8
|
secureParameters
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OWVEIJTU.js";
|
|
10
10
|
import {
|
|
11
11
|
ApiKeyType,
|
|
12
12
|
MementoTier,
|
|
13
13
|
isSupportedEmbeddingModel
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-PX57ZQYX.js";
|
|
15
15
|
|
|
16
16
|
// ../../b4m-core/packages/services/dist/src/apiKeyService/get.js
|
|
17
17
|
import { z } from "zod";
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
getSettingsMap,
|
|
8
8
|
getSettingsValue,
|
|
9
9
|
secureParameters
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-OWVEIJTU.js";
|
|
11
11
|
import {
|
|
12
12
|
KnowledgeType,
|
|
13
13
|
SupportedFabFileMimeTypes
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-PX57ZQYX.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-OWVEIJTU.js";
|
|
6
6
|
import {
|
|
7
7
|
CompletionApiUsageTransaction,
|
|
8
8
|
GenericCreditDeductTransaction,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
RealtimeVoiceUsageTransaction,
|
|
12
12
|
TextGenerationUsageTransaction,
|
|
13
13
|
TransferCreditTransaction
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-PX57ZQYX.js";
|
|
15
15
|
|
|
16
16
|
// ../../b4m-core/packages/services/dist/src/creditService/subtractCredits.js
|
|
17
17
|
import { z } from "zod";
|
|
@@ -4979,38 +4979,61 @@ var ConfluenceApi = class {
|
|
|
4979
4979
|
return formatCommentResponse(comment, this.config.siteUrl);
|
|
4980
4980
|
}
|
|
4981
4981
|
/**
|
|
4982
|
-
* Add a comment to a page (
|
|
4982
|
+
* Add a comment to a page (Uses v2 API for creation)
|
|
4983
4983
|
*/
|
|
4984
4984
|
async addComment(params) {
|
|
4985
4985
|
const { pageId, content, parentId, inlineOriginalSelection } = params;
|
|
4986
4986
|
if (!pageId || !content) {
|
|
4987
4987
|
throw new Error("pageId and content are required to add a comment.");
|
|
4988
4988
|
}
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
type: "page"
|
|
4994
|
-
},
|
|
4995
|
-
body: {
|
|
4996
|
-
storage: {
|
|
4989
|
+
if (inlineOriginalSelection) {
|
|
4990
|
+
const payload = {
|
|
4991
|
+
pageId,
|
|
4992
|
+
body: {
|
|
4997
4993
|
value: content,
|
|
4998
4994
|
representation: "storage"
|
|
4999
|
-
}
|
|
5000
|
-
}
|
|
5001
|
-
};
|
|
5002
|
-
if (parentId) {
|
|
5003
|
-
payload.ancestors = [{ id: parentId }];
|
|
5004
|
-
}
|
|
5005
|
-
if (inlineOriginalSelection) {
|
|
5006
|
-
payload.extensions = {
|
|
4995
|
+
},
|
|
5007
4996
|
inlineProperties: {
|
|
5008
4997
|
originalSelection: inlineOriginalSelection
|
|
5009
4998
|
}
|
|
5010
4999
|
};
|
|
5000
|
+
const result = await this.post("/inline-comments", payload);
|
|
5001
|
+
return formatCommentResponse(result, this.config.siteUrl);
|
|
5002
|
+
}
|
|
5003
|
+
if (!parentId) {
|
|
5004
|
+
const payload = {
|
|
5005
|
+
pageId,
|
|
5006
|
+
body: {
|
|
5007
|
+
value: content,
|
|
5008
|
+
representation: "storage"
|
|
5009
|
+
}
|
|
5010
|
+
};
|
|
5011
|
+
const result = await this.post("/footer-comments", payload);
|
|
5012
|
+
return formatCommentResponse(result, this.config.siteUrl);
|
|
5013
|
+
}
|
|
5014
|
+
try {
|
|
5015
|
+
const payload = {
|
|
5016
|
+
type: "comment",
|
|
5017
|
+
container: {
|
|
5018
|
+
id: pageId,
|
|
5019
|
+
type: "page"
|
|
5020
|
+
},
|
|
5021
|
+
ancestors: [{ id: parentId }],
|
|
5022
|
+
body: {
|
|
5023
|
+
storage: {
|
|
5024
|
+
value: content,
|
|
5025
|
+
representation: "storage"
|
|
5026
|
+
}
|
|
5027
|
+
}
|
|
5028
|
+
};
|
|
5029
|
+
const result = await this.postV1("/content", payload);
|
|
5030
|
+
return formatCommentResponse(result, this.config.siteUrl);
|
|
5031
|
+
} catch (error) {
|
|
5032
|
+
if (error.message?.includes("410")) {
|
|
5033
|
+
throw new Error("Confluence API v1 is deprecated (410) and v2 does not yet fully support threaded replies. Please create a top-level comment instead.");
|
|
5034
|
+
}
|
|
5035
|
+
throw error;
|
|
5011
5036
|
}
|
|
5012
|
-
const result = await this.postV1("/content", payload);
|
|
5013
|
-
return formatCommentResponse(result, this.config.siteUrl);
|
|
5014
5037
|
}
|
|
5015
5038
|
/**
|
|
5016
5039
|
* Update a comment (v1 API)
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import {
|
|
3
3
|
createFabFile,
|
|
4
4
|
createFabFileSchema
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-3ZTLMG6X.js";
|
|
6
|
+
import "./chunk-OWVEIJTU.js";
|
|
7
|
+
import "./chunk-PX57ZQYX.js";
|
|
8
8
|
import "./chunk-OCYRD7D6.js";
|
|
9
9
|
export {
|
|
10
10
|
createFabFile,
|
package/dist/index.js
CHANGED
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
getEffectiveApiKey,
|
|
5
5
|
getOpenWeatherKey,
|
|
6
6
|
getSerperKey
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3AJTWCVD.js";
|
|
8
8
|
import {
|
|
9
9
|
ConfigStore
|
|
10
10
|
} from "./chunk-FFJX3FF3.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-DSL5DIST.js";
|
|
12
|
+
import "./chunk-3ZTLMG6X.js";
|
|
13
13
|
import {
|
|
14
14
|
BFLImageService,
|
|
15
15
|
BaseStorage,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
OpenAIBackend,
|
|
22
22
|
OpenAIImageService,
|
|
23
23
|
XAIImageService
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-OWVEIJTU.js";
|
|
25
25
|
import {
|
|
26
26
|
AiEvents,
|
|
27
27
|
ApiKeyEvents,
|
|
@@ -75,7 +75,7 @@ import {
|
|
|
75
75
|
XAI_IMAGE_MODELS,
|
|
76
76
|
b4mLLMTools,
|
|
77
77
|
getMcpProviderMetadata
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-PX57ZQYX.js";
|
|
79
79
|
import {
|
|
80
80
|
Logger
|
|
81
81
|
} from "./chunk-OCYRD7D6.js";
|
|
@@ -11471,7 +11471,7 @@ import { isAxiosError as isAxiosError2 } from "axios";
|
|
|
11471
11471
|
// package.json
|
|
11472
11472
|
var package_default = {
|
|
11473
11473
|
name: "@bike4mind/cli",
|
|
11474
|
-
version: "0.2.17-add-confluence-comments.
|
|
11474
|
+
version: "0.2.17-add-confluence-comments.17719+53fd34a3d",
|
|
11475
11475
|
type: "module",
|
|
11476
11476
|
description: "Interactive CLI tool for Bike4Mind with ReAct agents",
|
|
11477
11477
|
license: "UNLICENSED",
|
|
@@ -11578,10 +11578,10 @@ var package_default = {
|
|
|
11578
11578
|
},
|
|
11579
11579
|
devDependencies: {
|
|
11580
11580
|
"@bike4mind/agents": "0.1.0",
|
|
11581
|
-
"@bike4mind/common": "2.43.1-add-confluence-comments.
|
|
11582
|
-
"@bike4mind/mcp": "1.22.3-add-confluence-comments.
|
|
11583
|
-
"@bike4mind/services": "2.40.1-add-confluence-comments.
|
|
11584
|
-
"@bike4mind/utils": "2.2.1-add-confluence-comments.
|
|
11581
|
+
"@bike4mind/common": "2.43.1-add-confluence-comments.17719+53fd34a3d",
|
|
11582
|
+
"@bike4mind/mcp": "1.22.3-add-confluence-comments.17719+53fd34a3d",
|
|
11583
|
+
"@bike4mind/services": "2.40.1-add-confluence-comments.17719+53fd34a3d",
|
|
11584
|
+
"@bike4mind/utils": "2.2.1-add-confluence-comments.17719+53fd34a3d",
|
|
11585
11585
|
"@types/better-sqlite3": "^7.6.13",
|
|
11586
11586
|
"@types/diff": "^5.0.9",
|
|
11587
11587
|
"@types/jsonwebtoken": "^9.0.4",
|
|
@@ -11598,7 +11598,7 @@ var package_default = {
|
|
|
11598
11598
|
optionalDependencies: {
|
|
11599
11599
|
"@vscode/ripgrep": "^1.17.0"
|
|
11600
11600
|
},
|
|
11601
|
-
gitHead: "
|
|
11601
|
+
gitHead: "53fd34a3dcaf9e43013e42c76f8107e9b0ae6ba4"
|
|
11602
11602
|
};
|
|
11603
11603
|
|
|
11604
11604
|
// src/config/constants.ts
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import {
|
|
3
3
|
findMostSimilarMemento,
|
|
4
4
|
getRelevantMementos
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-3AJTWCVD.js";
|
|
6
|
+
import "./chunk-OWVEIJTU.js";
|
|
7
|
+
import "./chunk-PX57ZQYX.js";
|
|
8
8
|
import "./chunk-OCYRD7D6.js";
|
|
9
9
|
export {
|
|
10
10
|
findMostSimilarMemento,
|
|
@@ -129,8 +129,8 @@ import {
|
|
|
129
129
|
validateMermaidSyntax,
|
|
130
130
|
warmUpSettingsCache,
|
|
131
131
|
withRetry
|
|
132
|
-
} from "./chunk-
|
|
133
|
-
import "./chunk-
|
|
132
|
+
} from "./chunk-OWVEIJTU.js";
|
|
133
|
+
import "./chunk-PX57ZQYX.js";
|
|
134
134
|
import {
|
|
135
135
|
Logger,
|
|
136
136
|
NotificationDeduplicator,
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import {
|
|
3
3
|
SubtractCreditsSchema,
|
|
4
4
|
subtractCredits
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-DSL5DIST.js";
|
|
6
|
+
import "./chunk-OWVEIJTU.js";
|
|
7
|
+
import "./chunk-PX57ZQYX.js";
|
|
8
8
|
import "./chunk-OCYRD7D6.js";
|
|
9
9
|
export {
|
|
10
10
|
SubtractCreditsSchema,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bike4mind/cli",
|
|
3
|
-
"version": "0.2.17-add-confluence-comments.
|
|
3
|
+
"version": "0.2.17-add-confluence-comments.17719+53fd34a3d",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Interactive CLI tool for Bike4Mind with ReAct agents",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -107,10 +107,10 @@
|
|
|
107
107
|
},
|
|
108
108
|
"devDependencies": {
|
|
109
109
|
"@bike4mind/agents": "0.1.0",
|
|
110
|
-
"@bike4mind/common": "2.43.1-add-confluence-comments.
|
|
111
|
-
"@bike4mind/mcp": "1.22.3-add-confluence-comments.
|
|
112
|
-
"@bike4mind/services": "2.40.1-add-confluence-comments.
|
|
113
|
-
"@bike4mind/utils": "2.2.1-add-confluence-comments.
|
|
110
|
+
"@bike4mind/common": "2.43.1-add-confluence-comments.17719+53fd34a3d",
|
|
111
|
+
"@bike4mind/mcp": "1.22.3-add-confluence-comments.17719+53fd34a3d",
|
|
112
|
+
"@bike4mind/services": "2.40.1-add-confluence-comments.17719+53fd34a3d",
|
|
113
|
+
"@bike4mind/utils": "2.2.1-add-confluence-comments.17719+53fd34a3d",
|
|
114
114
|
"@types/better-sqlite3": "^7.6.13",
|
|
115
115
|
"@types/diff": "^5.0.9",
|
|
116
116
|
"@types/jsonwebtoken": "^9.0.4",
|
|
@@ -127,5 +127,5 @@
|
|
|
127
127
|
"optionalDependencies": {
|
|
128
128
|
"@vscode/ripgrep": "^1.17.0"
|
|
129
129
|
},
|
|
130
|
-
"gitHead": "
|
|
130
|
+
"gitHead": "53fd34a3dcaf9e43013e42c76f8107e9b0ae6ba4"
|
|
131
131
|
}
|