@bike4mind/cli 0.2.5-fix-github-issue-type.17095 → 0.2.5-ja-fix-confluence-table-data-5752.17103

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.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  CurationArtifactType
4
- } from "./chunk-7Y3E4OY6.js";
4
+ } from "./chunk-QCULHLGT.js";
5
5
  import "./chunk-PDX44BCA.js";
6
6
 
7
7
  // ../../b4m-core/packages/services/dist/src/notebookCurationService/artifactExtractor.js
@@ -6,12 +6,12 @@ import {
6
6
  getSettingsByNames,
7
7
  obfuscateApiKey,
8
8
  secureParameters
9
- } from "./chunk-KH2C4VVX.js";
9
+ } from "./chunk-WPD676KY.js";
10
10
  import {
11
11
  ApiKeyType,
12
12
  MementoTier,
13
13
  isSupportedEmbeddingModel
14
- } from "./chunk-7Y3E4OY6.js";
14
+ } from "./chunk-QCULHLGT.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-KH2C4VVX.js";
10
+ } from "./chunk-WPD676KY.js";
11
11
  import {
12
12
  KnowledgeType,
13
13
  SupportedFabFileMimeTypes
14
- } from "./chunk-7Y3E4OY6.js";
14
+ } from "./chunk-QCULHLGT.js";
15
15
 
16
16
  // ../../b4m-core/packages/services/dist/src/fabFileService/create.js
17
17
  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
- fields.description = {
5093
- type: "doc",
5094
- version: 1,
5095
- content: [
5096
- {
5097
- type: "paragraph",
5098
- content: [{ type: "text", text: description }]
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
- fields.description = {
5128
- type: "doc",
5129
- version: 1,
5130
- content: [
5131
- {
5132
- type: "paragraph",
5133
- content: [{ type: "text", text: description }]
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
- fields.description = {
5297
- type: "doc",
5298
- version: 1,
5299
- content: [
5300
- {
5301
- type: "paragraph",
5302
- content: [{ type: "text", text: description }]
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 };
@@ -5427,8 +5510,8 @@ var MCP_PROVIDER_METADATA = {
5427
5510
  defaultToolDescriptions: {
5428
5511
  // Core GitHub tools (must match b4m-core/packages/mcp/src/github/index.ts)
5429
5512
  create_issue: "Create a new issue in a GitHub repository. Requires repository owner, repository name, issue title, and optional body, labels, and assignees.",
5430
- update_issue: "Update an existing GitHub issue. Can modify title, body, state (open/closed), labels, assignees, and issue type (native GitHub issue types like Bug/Feature/Task). Use list_org_issue_types to see available types. Requires repository owner, repository name, and issue number.",
5431
- list_issues: 'List issues for a GitHub repository with optional filters (state, labels, assignee, type). Can filter by native issue type like "Bug" or "Feature". Returns issue details including title, body, status, and metadata.',
5513
+ update_issue: "Update an existing GitHub issue. Can modify title, body, state (open/closed), labels, and assignees. Requires repository owner, repository name, and issue number.",
5514
+ list_issues: "List issues for a GitHub repository with optional filters (state, labels, assignee). Returns issue details including title, body, status, and metadata.",
5432
5515
  get_issue: "Get detailed information about a specific GitHub issue by number. Returns full issue details including body, comments count, milestone, and timestamps.",
5433
5516
  search_code: "Search for code across GitHub repositories using GitHub code search syntax. Returns matching code snippets with file paths, line numbers, and repository information.",
5434
5517
  // Repository discovery and management
@@ -5442,7 +5525,6 @@ var MCP_PROVIDER_METADATA = {
5442
5525
  // Commit tools
5443
5526
  list_commits: "List commit history for a GitHub repository with optional filters (branch, file path, author). Returns commit SHA, message, author, date, and statistics.",
5444
5527
  get_commit: "Get detailed information about a specific commit including full message, author, committer, file changes, and diff statistics.",
5445
- list_org_issue_types: "List available native GitHub issue types for an organization (Bug, Feature, Task, etc.). Use this to discover what issue types can be set on issues in the organization.",
5446
5528
  // Legacy tool names (for backwards compatibility)
5447
5529
  github_list_repositories: "List GitHub repositories accessible to the connected account.",
5448
5530
  github_get_repository: "Fetch detailed information about a specific GitHub repository.",
@@ -6117,6 +6199,8 @@ export {
6117
6199
  formatUser,
6118
6200
  formatTransitionResult,
6119
6201
  formatUserList,
6202
+ wikiMarkupToAdf,
6203
+ containsWikiTable,
6120
6204
  JiraApi,
6121
6205
  getErrorMessage,
6122
6206
  getAtlassianConfig,
@@ -16,7 +16,7 @@ import {
16
16
  dayjsConfig_default,
17
17
  extractSnippetMeta,
18
18
  settingsMap
19
- } from "./chunk-7Y3E4OY6.js";
19
+ } from "./chunk-QCULHLGT.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";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  BadRequestError,
4
4
  secureParameters
5
- } from "./chunk-KH2C4VVX.js";
5
+ } from "./chunk-WPD676KY.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-7Y3E4OY6.js";
13
+ } from "./chunk-QCULHLGT.js";
14
14
 
15
15
  // ../../b4m-core/packages/services/dist/src/creditService/subtractCredits.js
16
16
  import { z } from "zod";
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  createFabFile,
4
4
  createFabFileSchema
5
- } from "./chunk-TPWKBMIZ.js";
6
- import "./chunk-KH2C4VVX.js";
5
+ } from "./chunk-GVI2BQAN.js";
6
+ import "./chunk-WPD676KY.js";
7
7
  import "./chunk-AMDXHL6S.js";
8
- import "./chunk-7Y3E4OY6.js";
8
+ import "./chunk-QCULHLGT.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-MPZQL3KY.js";
8
- import "./chunk-PKOGN2ZZ.js";
9
- import "./chunk-TPWKBMIZ.js";
7
+ } from "./chunk-3TADOGT5.js";
8
+ import "./chunk-ZYMOZ2IB.js";
9
+ import "./chunk-GVI2BQAN.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-KH2C4VVX.js";
18
+ } from "./chunk-WPD676KY.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-7Y3E4OY6.js";
76
+ } from "./chunk-QCULHLGT.js";
77
77
  import {
78
78
  __require
79
79
  } from "./chunk-PDX44BCA.js";
@@ -9402,7 +9402,7 @@ import { isAxiosError as isAxiosError2 } from "axios";
9402
9402
  // package.json
9403
9403
  var package_default = {
9404
9404
  name: "@bike4mind/cli",
9405
- version: "0.2.5-fix-github-issue-type.17095+7ae053c6e",
9405
+ version: "0.2.5-ja-fix-confluence-table-data-5752.17103+6a00a3402",
9406
9406
  type: "module",
9407
9407
  description: "Interactive CLI tool for Bike4Mind with ReAct agents",
9408
9408
  license: "UNLICENSED",
@@ -9504,10 +9504,10 @@ var package_default = {
9504
9504
  },
9505
9505
  devDependencies: {
9506
9506
  "@bike4mind/agents": "0.1.0",
9507
- "@bike4mind/common": "2.37.1-fix-github-issue-type.17095+7ae053c6e",
9508
- "@bike4mind/mcp": "1.19.6-fix-github-issue-type.17095+7ae053c6e",
9509
- "@bike4mind/services": "2.32.2-fix-github-issue-type.17095+7ae053c6e",
9510
- "@bike4mind/utils": "2.1.1-fix-github-issue-type.17095+7ae053c6e",
9507
+ "@bike4mind/common": "2.37.1-ja-fix-confluence-table-data-5752.17103+6a00a3402",
9508
+ "@bike4mind/mcp": "1.19.6-ja-fix-confluence-table-data-5752.17103+6a00a3402",
9509
+ "@bike4mind/services": "2.32.2-ja-fix-confluence-table-data-5752.17103+6a00a3402",
9510
+ "@bike4mind/utils": "2.1.1-ja-fix-confluence-table-data-5752.17103+6a00a3402",
9511
9511
  "@types/diff": "^5.0.9",
9512
9512
  "@types/jsonwebtoken": "^9.0.4",
9513
9513
  "@types/node": "^22.9.0",
@@ -9519,7 +9519,7 @@ var package_default = {
9519
9519
  typescript: "^5.9.3",
9520
9520
  vitest: "^3.2.4"
9521
9521
  },
9522
- gitHead: "7ae053c6e896d08aa21ed44cdf3502ba04ae3cb7"
9522
+ gitHead: "6a00a340293a16b1c79330247461aae6bcbf3dfa"
9523
9523
  };
9524
9524
 
9525
9525
  // src/config/constants.ts
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  CurationArtifactType
4
- } from "./chunk-7Y3E4OY6.js";
4
+ } from "./chunk-QCULHLGT.js";
5
5
  import "./chunk-PDX44BCA.js";
6
6
 
7
7
  // ../../b4m-core/packages/services/dist/src/notebookCurationService/llmMarkdownGenerator.js
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  CurationArtifactType
4
- } from "./chunk-7Y3E4OY6.js";
4
+ } from "./chunk-QCULHLGT.js";
5
5
  import "./chunk-PDX44BCA.js";
6
6
 
7
7
  // ../../b4m-core/packages/services/dist/src/notebookCurationService/markdownGenerator.js
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  findMostSimilarMemento,
4
4
  getRelevantMementos
5
- } from "./chunk-MPZQL3KY.js";
6
- import "./chunk-KH2C4VVX.js";
5
+ } from "./chunk-3TADOGT5.js";
6
+ import "./chunk-WPD676KY.js";
7
7
  import "./chunk-AMDXHL6S.js";
8
- import "./chunk-7Y3E4OY6.js";
8
+ import "./chunk-QCULHLGT.js";
9
9
  import "./chunk-PDX44BCA.js";
10
10
  export {
11
11
  findMostSimilarMemento,
@@ -227,6 +227,7 @@ import {
227
227
  canUserDeleteArtifact,
228
228
  canUserReadArtifact,
229
229
  canUserWriteArtifact,
230
+ containsWikiTable,
230
231
  createArtifactId,
231
232
  createDefaultPermissions,
232
233
  dayjsConfig_default,
@@ -290,8 +291,9 @@ import {
290
291
  validateQuest,
291
292
  validateQuestMasterArtifactV2,
292
293
  validateReactArtifactV2,
293
- validateSvgArtifactV2
294
- } from "./chunk-7Y3E4OY6.js";
294
+ validateSvgArtifactV2,
295
+ wikiMarkupToAdf
296
+ } from "./chunk-QCULHLGT.js";
295
297
  import "./chunk-PDX44BCA.js";
296
298
  export {
297
299
  ALL_IMAGE_MODELS,
@@ -521,6 +523,7 @@ export {
521
523
  canUserDeleteArtifact,
522
524
  canUserReadArtifact,
523
525
  canUserWriteArtifact,
526
+ containsWikiTable,
524
527
  createArtifactId,
525
528
  createDefaultPermissions,
526
529
  dayjsConfig_default as dayjs,
@@ -584,5 +587,6 @@ export {
584
587
  validateQuest,
585
588
  validateQuestMasterArtifactV2,
586
589
  validateReactArtifactV2,
587
- validateSvgArtifactV2
590
+ validateSvgArtifactV2,
591
+ wikiMarkupToAdf
588
592
  };
@@ -120,7 +120,7 @@ import {
120
120
  validateMermaidSyntax,
121
121
  warmUpSettingsCache,
122
122
  withRetry
123
- } from "./chunk-KH2C4VVX.js";
123
+ } from "./chunk-WPD676KY.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-7Y3E4OY6.js";
132
+ import "./chunk-QCULHLGT.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-PKOGN2ZZ.js";
6
- import "./chunk-KH2C4VVX.js";
5
+ } from "./chunk-ZYMOZ2IB.js";
6
+ import "./chunk-WPD676KY.js";
7
7
  import "./chunk-AMDXHL6S.js";
8
- import "./chunk-7Y3E4OY6.js";
8
+ import "./chunk-QCULHLGT.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-fix-github-issue-type.17095+7ae053c6e",
3
+ "version": "0.2.5-ja-fix-confluence-table-data-5752.17103+6a00a3402",
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-fix-github-issue-type.17095+7ae053c6e",
106
- "@bike4mind/mcp": "1.19.6-fix-github-issue-type.17095+7ae053c6e",
107
- "@bike4mind/services": "2.32.2-fix-github-issue-type.17095+7ae053c6e",
108
- "@bike4mind/utils": "2.1.1-fix-github-issue-type.17095+7ae053c6e",
105
+ "@bike4mind/common": "2.37.1-ja-fix-confluence-table-data-5752.17103+6a00a3402",
106
+ "@bike4mind/mcp": "1.19.6-ja-fix-confluence-table-data-5752.17103+6a00a3402",
107
+ "@bike4mind/services": "2.32.2-ja-fix-confluence-table-data-5752.17103+6a00a3402",
108
+ "@bike4mind/utils": "2.1.1-ja-fix-confluence-table-data-5752.17103+6a00a3402",
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": "7ae053c6e896d08aa21ed44cdf3502ba04ae3cb7"
120
+ "gitHead": "6a00a340293a16b1c79330247461aae6bcbf3dfa"
121
121
  }