@bike4mind/cli 0.2.10-ja-fix-confluence-table-data-5752.17252 → 0.2.10-slack-message-validated-length.17267

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-THQIBKD4.js";
4
+ } from "./chunk-DJPXSSP4.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-3I4UTS5N.js";
10
+ } from "./chunk-GCVIRGIN.js";
11
11
  import {
12
12
  KnowledgeType,
13
13
  SupportedFabFileMimeTypes
14
- } from "./chunk-THQIBKD4.js";
14
+ } from "./chunk-DJPXSSP4.js";
15
15
 
16
16
  // ../../b4m-core/packages/services/dist/src/fabFileService/create.js
17
17
  import { z } from "zod";
@@ -5052,74 +5052,6 @@ function formatUserList(users) {
5052
5052
  }
5053
5053
 
5054
5054
  // ../../b4m-core/packages/common/dist/src/jira/api.js
5055
- function wikiMarkupToAdf(text) {
5056
- const lines = text.split("\n");
5057
- const content = [];
5058
- let currentTableRows = [];
5059
- let inTable = false;
5060
- for (const line of lines) {
5061
- const trimmedLine = line.trim();
5062
- if (trimmedLine.startsWith("||") && trimmedLine.endsWith("||")) {
5063
- inTable = true;
5064
- const cells = trimmedLine.slice(2, -2).split("||").map((cell) => cell.trim());
5065
- const headerRow = {
5066
- type: "tableRow",
5067
- content: cells.map((cell) => ({
5068
- type: "tableHeader",
5069
- attrs: {},
5070
- content: [{ type: "paragraph", content: [{ type: "text", text: cell || " " }] }]
5071
- }))
5072
- };
5073
- currentTableRows.push(headerRow);
5074
- continue;
5075
- }
5076
- if (trimmedLine.startsWith("|") && trimmedLine.endsWith("|") && !trimmedLine.startsWith("||")) {
5077
- inTable = true;
5078
- const cells = trimmedLine.slice(1, -1).split("|").map((cell) => cell.trim());
5079
- const dataRow = {
5080
- type: "tableRow",
5081
- content: cells.map((cell) => ({
5082
- type: "tableCell",
5083
- attrs: {},
5084
- content: [{ type: "paragraph", content: [{ type: "text", text: cell || " " }] }]
5085
- }))
5086
- };
5087
- currentTableRows.push(dataRow);
5088
- continue;
5089
- }
5090
- if (inTable && currentTableRows.length > 0) {
5091
- const table = {
5092
- type: "table",
5093
- attrs: { isNumberColumnEnabled: false, layout: "default" },
5094
- content: currentTableRows
5095
- };
5096
- content.push(table);
5097
- currentTableRows = [];
5098
- inTable = false;
5099
- }
5100
- if (trimmedLine) {
5101
- content.push({
5102
- type: "paragraph",
5103
- content: [{ type: "text", text: trimmedLine }]
5104
- });
5105
- }
5106
- }
5107
- if (currentTableRows.length > 0) {
5108
- const table = {
5109
- type: "table",
5110
- attrs: { isNumberColumnEnabled: false, layout: "default" },
5111
- content: currentTableRows
5112
- };
5113
- content.push(table);
5114
- }
5115
- if (content.length === 0) {
5116
- content.push({ type: "paragraph", content: [{ type: "text", text: " " }] });
5117
- }
5118
- return { type: "doc", version: 1, content };
5119
- }
5120
- function containsWikiTable(text) {
5121
- return /^\|\|.+\|\|$/m.test(text) || /^\|(?!\|).+\|$/m.test(text);
5122
- }
5123
5055
  var JiraApi = class {
5124
5056
  config;
5125
5057
  constructor(config) {
@@ -5199,21 +5131,16 @@ var JiraApi = class {
5199
5131
  ...customFields
5200
5132
  };
5201
5133
  if (description) {
5202
- if (containsWikiTable(description)) {
5203
- console.log("[JIRA-ADF] Converting wiki table to ADF", { length: description.length });
5204
- fields.description = wikiMarkupToAdf(description);
5205
- } else {
5206
- fields.description = {
5207
- type: "doc",
5208
- version: 1,
5209
- content: [
5210
- {
5211
- type: "paragraph",
5212
- content: [{ type: "text", text: description }]
5213
- }
5214
- ]
5215
- };
5216
- }
5134
+ fields.description = {
5135
+ type: "doc",
5136
+ version: 1,
5137
+ content: [
5138
+ {
5139
+ type: "paragraph",
5140
+ content: [{ type: "text", text: description }]
5141
+ }
5142
+ ]
5143
+ };
5217
5144
  }
5218
5145
  if (assignee) {
5219
5146
  fields.assignee = { id: assignee };
@@ -5239,21 +5166,16 @@ var JiraApi = class {
5239
5166
  fields.summary = summary;
5240
5167
  }
5241
5168
  if (description) {
5242
- if (containsWikiTable(description)) {
5243
- console.log("[JIRA-ADF] Converting wiki table to ADF (update)", { length: description.length });
5244
- fields.description = wikiMarkupToAdf(description);
5245
- } else {
5246
- fields.description = {
5247
- type: "doc",
5248
- version: 1,
5249
- content: [
5250
- {
5251
- type: "paragraph",
5252
- content: [{ type: "text", text: description }]
5253
- }
5254
- ]
5255
- };
5256
- }
5169
+ fields.description = {
5170
+ type: "doc",
5171
+ version: 1,
5172
+ content: [
5173
+ {
5174
+ type: "paragraph",
5175
+ content: [{ type: "text", text: description }]
5176
+ }
5177
+ ]
5178
+ };
5257
5179
  }
5258
5180
  if (labels) {
5259
5181
  fields.labels = labels;
@@ -5413,21 +5335,16 @@ var JiraApi = class {
5413
5335
  issuetype: { name: issueTypeName }
5414
5336
  };
5415
5337
  if (description) {
5416
- if (containsWikiTable(description)) {
5417
- console.log("[JIRA-ADF] Converting wiki table to ADF (bulk)", { length: description.length });
5418
- fields.description = wikiMarkupToAdf(description);
5419
- } else {
5420
- fields.description = {
5421
- type: "doc",
5422
- version: 1,
5423
- content: [
5424
- {
5425
- type: "paragraph",
5426
- content: [{ type: "text", text: description }]
5427
- }
5428
- ]
5429
- };
5430
- }
5338
+ fields.description = {
5339
+ type: "doc",
5340
+ version: 1,
5341
+ content: [
5342
+ {
5343
+ type: "paragraph",
5344
+ content: [{ type: "text", text: description }]
5345
+ }
5346
+ ]
5347
+ };
5431
5348
  }
5432
5349
  if (assignee) {
5433
5350
  fields.assignee = { id: assignee };
@@ -6244,8 +6161,6 @@ export {
6244
6161
  formatUser,
6245
6162
  formatTransitionResult,
6246
6163
  formatUserList,
6247
- wikiMarkupToAdf,
6248
- containsWikiTable,
6249
6164
  JiraApi,
6250
6165
  getErrorMessage,
6251
6166
  getAtlassianConfig,
@@ -16,7 +16,7 @@ import {
16
16
  dayjsConfig_default,
17
17
  extractSnippetMeta,
18
18
  settingsMap
19
- } from "./chunk-THQIBKD4.js";
19
+ } from "./chunk-DJPXSSP4.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-3I4UTS5N.js";
9
+ } from "./chunk-GCVIRGIN.js";
10
10
  import {
11
11
  ApiKeyType,
12
12
  MementoTier,
13
13
  isSupportedEmbeddingModel
14
- } from "./chunk-THQIBKD4.js";
14
+ } from "./chunk-DJPXSSP4.js";
15
15
 
16
16
  // ../../b4m-core/packages/services/dist/src/apiKeyService/get.js
17
17
  import { z } from "zod";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  BadRequestError,
4
4
  secureParameters
5
- } from "./chunk-3I4UTS5N.js";
5
+ } from "./chunk-GCVIRGIN.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-THQIBKD4.js";
13
+ } from "./chunk-DJPXSSP4.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-Y7TWJGN7.js";
6
- import "./chunk-3I4UTS5N.js";
5
+ } from "./chunk-AQBZVAYO.js";
6
+ import "./chunk-GCVIRGIN.js";
7
7
  import "./chunk-AMDXHL6S.js";
8
- import "./chunk-THQIBKD4.js";
8
+ import "./chunk-DJPXSSP4.js";
9
9
  import "./chunk-PDX44BCA.js";
10
10
  export {
11
11
  createFabFile,