@cnbcool/cnb-api-generate 2.11.4 → 2.11.6

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.
@@ -123,8 +123,6 @@ interface UploadErrorData {
123
123
  /** Issue 上传成功时的 data(asset_group_id 仅在创建 issue 流程下返回) */
124
124
  interface IssueUploadData {
125
125
  asset_link?: string;
126
- /** asset_link 的别名,语义更直观,方便 AI 理解这是一个可直接插入评论的 markdown 链接 */
127
- markdown?: string;
128
126
  name: string;
129
127
  path?: string;
130
128
  size: number;
@@ -283,13 +281,10 @@ export async function handleIssueCreateUpload(
283
281
  if (putErr) return putErr;
284
282
 
285
283
  // 3. 返回结果(asset_link 拼入创建 issue 的 body,asset_group_id 备用)
286
- // markdown 作为 asset_link 的别名,方便 AI 理解使用
287
- const assetLink = firstEntry?.asset_link;
288
284
  return {
289
285
  status: 200,
290
286
  data: {
291
- asset_link: assetLink,
292
- markdown: assetLink,
287
+ asset_link: firstEntry?.asset_link,
293
288
  name: firstEntry?.name || fileName,
294
289
  path: firstEntry?.path,
295
290
  size: fileSize,
@@ -345,10 +340,8 @@ export async function handleUpload(
345
340
  const data = apiResponse?.data as IssueAssetUploadURLResponseData | undefined;
346
341
  uploadUrl = data?.upload_url;
347
342
  if (!uploadUrl) return apiResponse as unknown as UploadResult;
348
- const assetLink = data?.asset_link;
349
343
  successData = {
350
- asset_link: assetLink,
351
- markdown: assetLink,
344
+ asset_link: data?.asset_link,
352
345
  name: data?.name || fileName,
353
346
  path: data?.path,
354
347
  size: fileSize,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cnbcool/cnb-api-generate",
3
- "version": "2.11.4",
3
+ "version": "2.11.6",
4
4
  "main": "./built/index.js",
5
5
  "module": "./src/index.ts",
6
6
  "types": "./src/index.ts",