@bike4mind/cli 0.2.4 → 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.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  CurationArtifactType
4
- } from "./chunk-WR6YZRQV.js";
4
+ } from "./chunk-CPQLYJQO.js";
5
5
  import "./chunk-PDX44BCA.js";
6
6
 
7
7
  // ../../b4m-core/packages/services/dist/src/notebookCurationService/artifactExtractor.js
@@ -7,11 +7,11 @@ import {
7
7
  getSettingsMap,
8
8
  getSettingsValue,
9
9
  secureParameters
10
- } from "./chunk-LYNNVNEC.js";
10
+ } from "./chunk-ULYWSTJ2.js";
11
11
  import {
12
12
  KnowledgeType,
13
13
  SupportedFabFileMimeTypes
14
- } from "./chunk-WR6YZRQV.js";
14
+ } from "./chunk-CPQLYJQO.js";
15
15
 
16
16
  // ../../b4m-core/packages/services/dist/src/fabFileService/create.js
17
17
  import { z } from "zod";
File without changes
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  BadRequestError,
4
4
  secureParameters
5
- } from "./chunk-LYNNVNEC.js";
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-WR6YZRQV.js";
13
+ } from "./chunk-CPQLYJQO.js";
14
14
 
15
15
  // ../../b4m-core/packages/services/dist/src/creditService/subtractCredits.js
16
16
  import { z } from "zod";
File without changes
File without changes
@@ -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 };
File without changes
@@ -16,7 +16,7 @@ import {
16
16
  dayjsConfig_default,
17
17
  extractSnippetMeta,
18
18
  settingsMap
19
- } from "./chunk-WR6YZRQV.js";
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-LYNNVNEC.js";
9
+ } from "./chunk-ULYWSTJ2.js";
10
10
  import {
11
11
  ApiKeyType,
12
12
  MementoTier,
13
13
  isSupportedEmbeddingModel
14
- } from "./chunk-WR6YZRQV.js";
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-6AJODFPC.js";
6
- import "./chunk-LYNNVNEC.js";
5
+ } from "./chunk-5C4N5XV6.js";
6
+ import "./chunk-ULYWSTJ2.js";
7
7
  import "./chunk-AMDXHL6S.js";
8
- import "./chunk-WR6YZRQV.js";
8
+ import "./chunk-CPQLYJQO.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-WNBKV4FX.js";
8
- import "./chunk-LEG2UM5Q.js";
9
- import "./chunk-6AJODFPC.js";
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-LYNNVNEC.js";
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-WR6YZRQV.js";
76
+ } from "./chunk-CPQLYJQO.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.4",
9405
+ version: "0.2.5-ja-fix-confluence-table-data-5752.17099+e0f9369ee",
9406
9406
  type: "module",
9407
9407
  description: "Interactive CLI tool for Bike4Mind with ReAct agents",
9408
9408
  license: "UNLICENSED",
@@ -9503,11 +9503,11 @@ var package_default = {
9503
9503
  zustand: "^4.5.4"
9504
9504
  },
9505
9505
  devDependencies: {
9506
- "@bike4mind/agents": "workspace:*",
9507
- "@bike4mind/common": "workspace:*",
9508
- "@bike4mind/mcp": "workspace:*",
9509
- "@bike4mind/services": "workspace:*",
9510
- "@bike4mind/utils": "workspace:*",
9506
+ "@bike4mind/agents": "0.1.0",
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",
9511
9511
  "@types/diff": "^5.0.9",
9512
9512
  "@types/jsonwebtoken": "^9.0.4",
9513
9513
  "@types/node": "^22.9.0",
@@ -9518,7 +9518,8 @@ var package_default = {
9518
9518
  tsx: "^4.21.0",
9519
9519
  typescript: "^5.9.3",
9520
9520
  vitest: "^3.2.4"
9521
- }
9521
+ },
9522
+ gitHead: "e0f9369eec122dbd470f6018c164da6f08276d03"
9522
9523
  };
9523
9524
 
9524
9525
  // src/config/constants.ts
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  CurationArtifactType
4
- } from "./chunk-WR6YZRQV.js";
4
+ } from "./chunk-CPQLYJQO.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-WR6YZRQV.js";
4
+ } from "./chunk-CPQLYJQO.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-WNBKV4FX.js";
6
- import "./chunk-LYNNVNEC.js";
5
+ } from "./chunk-W5TRKADC.js";
6
+ import "./chunk-ULYWSTJ2.js";
7
7
  import "./chunk-AMDXHL6S.js";
8
- import "./chunk-WR6YZRQV.js";
8
+ import "./chunk-CPQLYJQO.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-LYNNVNEC.js";
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-WR6YZRQV.js";
132
+ import "./chunk-CPQLYJQO.js";
133
133
  import "./chunk-PDX44BCA.js";
134
134
  export {
135
135
  AWSBackend,
@@ -291,7 +291,7 @@ import {
291
291
  validateQuestMasterArtifactV2,
292
292
  validateReactArtifactV2,
293
293
  validateSvgArtifactV2
294
- } from "./chunk-WR6YZRQV.js";
294
+ } from "./chunk-CPQLYJQO.js";
295
295
  import "./chunk-PDX44BCA.js";
296
296
  export {
297
297
  ALL_IMAGE_MODELS,
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  SubtractCreditsSchema,
4
4
  subtractCredits
5
- } from "./chunk-LEG2UM5Q.js";
6
- import "./chunk-LYNNVNEC.js";
5
+ } from "./chunk-B37KE3DY.js";
6
+ import "./chunk-ULYWSTJ2.js";
7
7
  import "./chunk-AMDXHL6S.js";
8
- import "./chunk-WR6YZRQV.js";
8
+ import "./chunk-CPQLYJQO.js";
9
9
  import "./chunk-PDX44BCA.js";
10
10
  export {
11
11
  SubtractCreditsSchema,
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bike4mind/cli",
3
- "version": "0.2.4",
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",
@@ -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-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",
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/mcp": "1.19.5",
107
- "@bike4mind/services": "2.32.1",
108
- "@bike4mind/utils": "2.1.0",
109
- "@bike4mind/common": "2.37.0"
118
+ "vitest": "^3.2.4"
110
119
  },
111
- "scripts": {
112
- "dev": "tsx src/index.tsx",
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": "e0f9369eec122dbd470f6018c164da6f08276d03"
121
+ }