release-note 0.0.4 → 0.0.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.
package/dist/bin.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  const require_chunk = require("./chunk-Cek0wNdY.cjs");
3
- const require_generate = require("./generate-Cy2c8xRC.cjs");
3
+ const require_generate = require("./generate-D2NQIyPO.cjs");
4
4
  let node_events = require("node:events");
5
5
  let node_child_process = require("node:child_process");
6
6
  node_child_process = require_chunk.__toESM(node_child_process, 1);
@@ -2982,5 +2982,3 @@ async function createArgs() {
2982
2982
  //#region src/bin.ts
2983
2983
  createArgs().then((p) => p.parse());
2984
2984
  //#endregion
2985
-
2986
- //# sourceMappingURL=bin.cjs.map
package/dist/bin.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { C as resolveConfig, t as generateReleaseNote } from "./generate-CHfRvUG7.mjs";
2
+ import { C as resolveConfig, t as generateReleaseNote } from "./generate-CSl3Pwtm.mjs";
3
3
  import { EventEmitter } from "node:events";
4
4
  import childProcess from "node:child_process";
5
5
  import path from "node:path";
@@ -2976,5 +2976,3 @@ async function createArgs() {
2976
2976
  createArgs().then((p) => p.parse());
2977
2977
  //#endregion
2978
2978
  export {};
2979
-
2980
- //# sourceMappingURL=bin.mjs.map
@@ -1,5 +1,5 @@
1
1
  require("./chunk-Cek0wNdY.cjs");
2
- const require_generate = require("./generate-Cy2c8xRC.cjs");
2
+ const require_generate = require("./generate-D2NQIyPO.cjs");
3
3
  //#region node_modules/.pnpm/@ai-sdk+openai-compatible@2.0.48_zod@4.4.3/node_modules/@ai-sdk/openai-compatible/dist/index.mjs
4
4
  function toCamelCase(str) {
5
5
  return str.replace(/[_-]([a-z])/g, (g) => g[1].toUpperCase());
@@ -1371,5 +1371,3 @@ function createOpenAICompatible(options) {
1371
1371
  }
1372
1372
  //#endregion
1373
1373
  exports.createOpenAICompatible = createOpenAICompatible;
1374
-
1375
- //# sourceMappingURL=dist-Bgu3E62L.cjs.map
@@ -1,4 +1,4 @@
1
- import { A as number, D as boolean, E as array, M as record, N as string, O as literal, P as union, S as UnsupportedFunctionalityError, T as any, _ as withUserAgentSuffix, a as convertBase64ToUint8Array, b as InvalidResponseDataError, c as createEventSourceResponseHandler, d as downloadBlob, f as generateId, g as postJsonToApi, h as postFormDataToApi, i as combineHeaders, j as object, k as looseObject, l as createJsonErrorResponseHandler, m as parseProviderOptions, o as convertToBase64, p as isParsableJson, s as convertToFormData, u as createJsonResponseHandler, v as withoutTrailingSlash, w as _enum, x as TooManyEmbeddingValuesForCallError, y as InvalidPromptError } from "./generate-CHfRvUG7.mjs";
1
+ import { A as number, D as boolean, E as array, M as record, N as string, O as literal, P as union, S as UnsupportedFunctionalityError, T as any, _ as withUserAgentSuffix, a as convertBase64ToUint8Array, b as InvalidResponseDataError, c as createEventSourceResponseHandler, d as downloadBlob, f as generateId, g as postJsonToApi, h as postFormDataToApi, i as combineHeaders, j as object, k as looseObject, l as createJsonErrorResponseHandler, m as parseProviderOptions, o as convertToBase64, p as isParsableJson, s as convertToFormData, u as createJsonResponseHandler, v as withoutTrailingSlash, w as _enum, x as TooManyEmbeddingValuesForCallError, y as InvalidPromptError } from "./generate-CSl3Pwtm.mjs";
2
2
  //#region node_modules/.pnpm/@ai-sdk+openai-compatible@2.0.48_zod@4.4.3/node_modules/@ai-sdk/openai-compatible/dist/index.mjs
3
3
  function toCamelCase(str) {
4
4
  return str.replace(/[_-]([a-z])/g, (g) => g[1].toUpperCase());
@@ -1370,5 +1370,3 @@ function createOpenAICompatible(options) {
1370
1370
  }
1371
1371
  //#endregion
1372
1372
  export { createOpenAICompatible };
1373
-
1374
- //# sourceMappingURL=dist-KSaqNpqH.mjs.map
@@ -410,196 +410,6 @@ const chalk = createChalk();
410
410
  createChalk({ level: stderrColor ? stderrColor.level : 0 });
411
411
  //#endregion
412
412
  //#region src/constants/providers.ts
413
- var import_main = (/* @__PURE__ */ __commonJSMin(((exports, module) => {
414
- (function(factory) {
415
- if (typeof module === "object" && typeof module.exports === "object") {
416
- var v = factory(__require, exports);
417
- if (v !== void 0) module.exports = v;
418
- } else if (typeof define === "function" && define.amd) define([
419
- "require",
420
- "exports",
421
- "./impl/format",
422
- "./impl/edit",
423
- "./impl/scanner",
424
- "./impl/parser"
425
- ], factory);
426
- })(function(require, exports$1) {
427
- "use strict";
428
- Object.defineProperty(exports$1, "__esModule", { value: true });
429
- exports$1.applyEdits = exports$1.modify = exports$1.format = exports$1.printParseErrorCode = exports$1.ParseErrorCode = exports$1.stripComments = exports$1.visit = exports$1.getNodeValue = exports$1.getNodePath = exports$1.findNodeAtOffset = exports$1.findNodeAtLocation = exports$1.parseTree = exports$1.parse = exports$1.getLocation = exports$1.SyntaxKind = exports$1.ScanError = exports$1.createScanner = void 0;
430
- const formatter = require("./impl/format");
431
- const edit = require("./impl/edit");
432
- const scanner = require("./impl/scanner");
433
- const parser = require("./impl/parser");
434
- /**
435
- * Creates a JSON scanner on the given text.
436
- * If ignoreTrivia is set, whitespaces or comments are ignored.
437
- */
438
- exports$1.createScanner = scanner.createScanner;
439
- var ScanError;
440
- (function(ScanError) {
441
- ScanError[ScanError["None"] = 0] = "None";
442
- ScanError[ScanError["UnexpectedEndOfComment"] = 1] = "UnexpectedEndOfComment";
443
- ScanError[ScanError["UnexpectedEndOfString"] = 2] = "UnexpectedEndOfString";
444
- ScanError[ScanError["UnexpectedEndOfNumber"] = 3] = "UnexpectedEndOfNumber";
445
- ScanError[ScanError["InvalidUnicode"] = 4] = "InvalidUnicode";
446
- ScanError[ScanError["InvalidEscapeCharacter"] = 5] = "InvalidEscapeCharacter";
447
- ScanError[ScanError["InvalidCharacter"] = 6] = "InvalidCharacter";
448
- })(ScanError || (exports$1.ScanError = ScanError = {}));
449
- var SyntaxKind;
450
- (function(SyntaxKind) {
451
- SyntaxKind[SyntaxKind["OpenBraceToken"] = 1] = "OpenBraceToken";
452
- SyntaxKind[SyntaxKind["CloseBraceToken"] = 2] = "CloseBraceToken";
453
- SyntaxKind[SyntaxKind["OpenBracketToken"] = 3] = "OpenBracketToken";
454
- SyntaxKind[SyntaxKind["CloseBracketToken"] = 4] = "CloseBracketToken";
455
- SyntaxKind[SyntaxKind["CommaToken"] = 5] = "CommaToken";
456
- SyntaxKind[SyntaxKind["ColonToken"] = 6] = "ColonToken";
457
- SyntaxKind[SyntaxKind["NullKeyword"] = 7] = "NullKeyword";
458
- SyntaxKind[SyntaxKind["TrueKeyword"] = 8] = "TrueKeyword";
459
- SyntaxKind[SyntaxKind["FalseKeyword"] = 9] = "FalseKeyword";
460
- SyntaxKind[SyntaxKind["StringLiteral"] = 10] = "StringLiteral";
461
- SyntaxKind[SyntaxKind["NumericLiteral"] = 11] = "NumericLiteral";
462
- SyntaxKind[SyntaxKind["LineCommentTrivia"] = 12] = "LineCommentTrivia";
463
- SyntaxKind[SyntaxKind["BlockCommentTrivia"] = 13] = "BlockCommentTrivia";
464
- SyntaxKind[SyntaxKind["LineBreakTrivia"] = 14] = "LineBreakTrivia";
465
- SyntaxKind[SyntaxKind["Trivia"] = 15] = "Trivia";
466
- SyntaxKind[SyntaxKind["Unknown"] = 16] = "Unknown";
467
- SyntaxKind[SyntaxKind["EOF"] = 17] = "EOF";
468
- })(SyntaxKind || (exports$1.SyntaxKind = SyntaxKind = {}));
469
- /**
470
- * For a given offset, evaluate the location in the JSON document. Each segment in the location path is either a property name or an array index.
471
- */
472
- exports$1.getLocation = parser.getLocation;
473
- /**
474
- * Parses the given text and returns the object the JSON content represents. On invalid input, the parser tries to be as fault tolerant as possible, but still return a result.
475
- * Therefore, always check the errors list to find out if the input was valid.
476
- */
477
- exports$1.parse = parser.parse;
478
- /**
479
- * Parses the given text and returns a tree representation the JSON content. On invalid input, the parser tries to be as fault tolerant as possible, but still return a result.
480
- */
481
- exports$1.parseTree = parser.parseTree;
482
- /**
483
- * Finds the node at the given path in a JSON DOM.
484
- */
485
- exports$1.findNodeAtLocation = parser.findNodeAtLocation;
486
- /**
487
- * Finds the innermost node at the given offset. If includeRightBound is set, also finds nodes that end at the given offset.
488
- */
489
- exports$1.findNodeAtOffset = parser.findNodeAtOffset;
490
- /**
491
- * Gets the JSON path of the given JSON DOM node
492
- */
493
- exports$1.getNodePath = parser.getNodePath;
494
- /**
495
- * Evaluates the JavaScript object of the given JSON DOM node
496
- */
497
- exports$1.getNodeValue = parser.getNodeValue;
498
- /**
499
- * Parses the given text and invokes the visitor functions for each object, array and literal reached.
500
- */
501
- exports$1.visit = parser.visit;
502
- /**
503
- * Takes JSON with JavaScript-style comments and remove
504
- * them. Optionally replaces every none-newline character
505
- * of comments with a replaceCharacter
506
- */
507
- exports$1.stripComments = parser.stripComments;
508
- var ParseErrorCode;
509
- (function(ParseErrorCode) {
510
- ParseErrorCode[ParseErrorCode["InvalidSymbol"] = 1] = "InvalidSymbol";
511
- ParseErrorCode[ParseErrorCode["InvalidNumberFormat"] = 2] = "InvalidNumberFormat";
512
- ParseErrorCode[ParseErrorCode["PropertyNameExpected"] = 3] = "PropertyNameExpected";
513
- ParseErrorCode[ParseErrorCode["ValueExpected"] = 4] = "ValueExpected";
514
- ParseErrorCode[ParseErrorCode["ColonExpected"] = 5] = "ColonExpected";
515
- ParseErrorCode[ParseErrorCode["CommaExpected"] = 6] = "CommaExpected";
516
- ParseErrorCode[ParseErrorCode["CloseBraceExpected"] = 7] = "CloseBraceExpected";
517
- ParseErrorCode[ParseErrorCode["CloseBracketExpected"] = 8] = "CloseBracketExpected";
518
- ParseErrorCode[ParseErrorCode["EndOfFileExpected"] = 9] = "EndOfFileExpected";
519
- ParseErrorCode[ParseErrorCode["InvalidCommentToken"] = 10] = "InvalidCommentToken";
520
- ParseErrorCode[ParseErrorCode["UnexpectedEndOfComment"] = 11] = "UnexpectedEndOfComment";
521
- ParseErrorCode[ParseErrorCode["UnexpectedEndOfString"] = 12] = "UnexpectedEndOfString";
522
- ParseErrorCode[ParseErrorCode["UnexpectedEndOfNumber"] = 13] = "UnexpectedEndOfNumber";
523
- ParseErrorCode[ParseErrorCode["InvalidUnicode"] = 14] = "InvalidUnicode";
524
- ParseErrorCode[ParseErrorCode["InvalidEscapeCharacter"] = 15] = "InvalidEscapeCharacter";
525
- ParseErrorCode[ParseErrorCode["InvalidCharacter"] = 16] = "InvalidCharacter";
526
- })(ParseErrorCode || (exports$1.ParseErrorCode = ParseErrorCode = {}));
527
- function printParseErrorCode(code) {
528
- switch (code) {
529
- case 1: return "InvalidSymbol";
530
- case 2: return "InvalidNumberFormat";
531
- case 3: return "PropertyNameExpected";
532
- case 4: return "ValueExpected";
533
- case 5: return "ColonExpected";
534
- case 6: return "CommaExpected";
535
- case 7: return "CloseBraceExpected";
536
- case 8: return "CloseBracketExpected";
537
- case 9: return "EndOfFileExpected";
538
- case 10: return "InvalidCommentToken";
539
- case 11: return "UnexpectedEndOfComment";
540
- case 12: return "UnexpectedEndOfString";
541
- case 13: return "UnexpectedEndOfNumber";
542
- case 14: return "InvalidUnicode";
543
- case 15: return "InvalidEscapeCharacter";
544
- case 16: return "InvalidCharacter";
545
- }
546
- return "<unknown ParseErrorCode>";
547
- }
548
- exports$1.printParseErrorCode = printParseErrorCode;
549
- /**
550
- * Computes the edit operations needed to format a JSON document.
551
- *
552
- * @param documentText The input text
553
- * @param range The range to format or `undefined` to format the full content
554
- * @param options The formatting options
555
- * @returns The edit operations describing the formatting changes to the original document following the format described in {@linkcode EditResult}.
556
- * To apply the edit operations to the input, use {@linkcode applyEdits}.
557
- */
558
- function format(documentText, range, options) {
559
- return formatter.format(documentText, range, options);
560
- }
561
- exports$1.format = format;
562
- /**
563
- * Computes the edit operations needed to modify a value in the JSON document.
564
- *
565
- * @param documentText The input text
566
- * @param path The path of the value to change. The path represents either to the document root, a property or an array item.
567
- * If the path points to an non-existing property or item, it will be created.
568
- * @param value The new value for the specified property or item. If the value is undefined,
569
- * the property or item will be removed.
570
- * @param options Options
571
- * @returns The edit operations describing the changes to the original document, following the format described in {@linkcode EditResult}.
572
- * To apply the edit operations to the input, use {@linkcode applyEdits}.
573
- */
574
- function modify(text, path, value, options) {
575
- return edit.setProperty(text, path, value, options);
576
- }
577
- exports$1.modify = modify;
578
- /**
579
- * Applies edits to an input string.
580
- * @param text The input text
581
- * @param edits Edit operations following the format described in {@linkcode EditResult}.
582
- * @returns The text with the applied edits.
583
- * @throws An error if the edit operations are not well-formed as described in {@linkcode EditResult}.
584
- */
585
- function applyEdits(text, edits) {
586
- let sortedEdits = edits.slice(0).sort((a, b) => {
587
- const diff = a.offset - b.offset;
588
- if (diff === 0) return a.length - b.length;
589
- return diff;
590
- });
591
- let lastModifiedOffset = text.length;
592
- for (let i = sortedEdits.length - 1; i >= 0; i--) {
593
- let e = sortedEdits[i];
594
- if (e.offset + e.length <= lastModifiedOffset) text = edit.applyEdit(text, e);
595
- else throw new Error("Overlapping edit");
596
- lastModifiedOffset = e.offset;
597
- }
598
- return text;
599
- }
600
- exports$1.applyEdits = applyEdits;
601
- });
602
- })))();
603
413
  const SUPPORTED_PROVIDERS = {
604
414
  "@ai-sdk/openai": { create: "createOpenAI" },
605
415
  "@ai-sdk/openai-compatible": { create: "createOpenAICompatible" },
@@ -1400,7 +1210,7 @@ const _parse$1 = (_Err) => (schema, value, _ctx, _params) => {
1400
1210
  }
1401
1211
  return result.value;
1402
1212
  };
1403
- const parse$2 = /* @__PURE__*/ _parse$1($ZodRealError);
1213
+ const parse$1 = /* @__PURE__*/ _parse$1($ZodRealError);
1404
1214
  const _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
1405
1215
  const ctx = _ctx ? {
1406
1216
  ..._ctx,
@@ -3952,9 +3762,9 @@ const $ZodFunction = /*@__PURE__*/ $constructor("$ZodFunction", (inst, def) => {
3952
3762
  inst.implement = (func) => {
3953
3763
  if (typeof func !== "function") throw new Error("implement() must be called with a function");
3954
3764
  return function(...args) {
3955
- const parsedArgs = inst._def.input ? parse$2(inst._def.input, args) : args;
3765
+ const parsedArgs = inst._def.input ? parse$1(inst._def.input, args) : args;
3956
3766
  const result = Reflect.apply(func, this, parsedArgs);
3957
- if (inst._def.output) return parse$2(inst._def.output, result);
3767
+ if (inst._def.output) return parse$1(inst._def.output, result);
3958
3768
  return result;
3959
3769
  };
3960
3770
  };
@@ -11929,7 +11739,7 @@ var core_exports = /* @__PURE__ */ __exportAll({
11929
11739
  isValidJWT: () => isValidJWT$1,
11930
11740
  locales: () => locales_exports,
11931
11741
  meta: () => meta$1,
11932
- parse: () => parse$2,
11742
+ parse: () => parse$1,
11933
11743
  parseAsync: () => parseAsync$1,
11934
11744
  prettifyError: () => prettifyError,
11935
11745
  process: () => process$2,
@@ -12045,7 +11855,7 @@ const ZodError$1 = /*@__PURE__*/ $constructor("ZodError", initializer);
12045
11855
  const ZodRealError = /*@__PURE__*/ $constructor("ZodError", initializer, { Parent: Error });
12046
11856
  //#endregion
12047
11857
  //#region node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/parse.js
12048
- const parse$1 = /* @__PURE__ */ _parse$1(ZodRealError);
11858
+ const parse = /* @__PURE__ */ _parse$1(ZodRealError);
12049
11859
  const parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
12050
11860
  const safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
12051
11861
  const safeParseAsync = /* @__PURE__ */ _safeParseAsync(ZodRealError);
@@ -12273,7 +12083,7 @@ const ZodType$1 = /*@__PURE__*/ $constructor("ZodType", (inst, def) => {
12273
12083
  inst.def = def;
12274
12084
  inst.type = def.type;
12275
12085
  Object.defineProperty(inst, "_def", { value: def });
12276
- inst.parse = (data, params) => parse$1(inst, data, params, { callee: inst.parse });
12086
+ inst.parse = (data, params) => parse(inst, data, params, { callee: inst.parse });
12277
12087
  inst.safeParse = (data, params) => safeParse(inst, data, params);
12278
12088
  inst.parseAsync = async (data, params) => parseAsync(inst, data, params, { callee: inst.parseAsync });
12279
12089
  inst.safeParseAsync = async (data, params) => safeParseAsync(inst, data, params);
@@ -14088,7 +13898,7 @@ var external_exports = /* @__PURE__ */ __exportAll({
14088
13898
  object: () => object$1,
14089
13899
  optional: () => optional,
14090
13900
  overwrite: () => _overwrite,
14091
- parse: () => parse$1,
13901
+ parse: () => parse,
14092
13902
  parseAsync: () => parseAsync,
14093
13903
  partialRecord: () => partialRecord,
14094
13904
  pipe: () => pipe,
@@ -14181,7 +13991,7 @@ async function resolveConfig(cwd, configPaths = CONFIG_PATHS) {
14181
13991
  console.log(chalk.green(`Using config file: ${fullPath}`));
14182
13992
  try {
14183
13993
  const configContent = await fs.promises.readFile(fullPath, "utf8");
14184
- return generateConfigSchema.parse((0, import_main.parse)(configContent));
13994
+ return generateConfigSchema.parse(JSON.parse(configContent));
14185
13995
  } catch {
14186
13996
  console.error(chalk.red(`Error parsing config file: ${fullPath}`));
14187
13997
  throw new Error(`Invalid config file: ${fullPath}`);
@@ -14209,7 +14019,7 @@ async function resolveProvider(name, options) {
14209
14019
  if (name === "@ai-sdk/openai-compatible") {
14210
14020
  if (!options.apiUrl) throw new Error("\"\"apiUrl\"\" is required for openai-compatible provider");
14211
14021
  if (!resolvedApiKey) throw new Error("No API key found in the specified environment variables");
14212
- const { createOpenAICompatible } = await import("./dist-KSaqNpqH.mjs");
14022
+ const { createOpenAICompatible } = await import("./dist-DwW1fFke.mjs");
14213
14023
  return createOpenAICompatible({
14214
14024
  name,
14215
14025
  apiKey: resolvedApiKey,
@@ -20100,7 +19910,7 @@ var require_get_vercel_oidc_token = /* @__PURE__ */ __commonJSMin(((exports, mod
20100
19910
  err = error;
20101
19911
  }
20102
19912
  try {
20103
- const [{ getTokenPayload, isExpired }, { refreshToken }] = await Promise.all([await Promise.resolve().then(() => /* @__PURE__ */ __toESM(require_token_util())), await import("./token-Bq6EKU7W.mjs").then((m) => /* @__PURE__ */ __toESM(m.default))]);
19913
+ const [{ getTokenPayload, isExpired }, { refreshToken }] = await Promise.all([await Promise.resolve().then(() => /* @__PURE__ */ __toESM(require_token_util())), await import("./token-C91WYSPw.mjs").then((m) => /* @__PURE__ */ __toESM(m.default))]);
20104
19914
  if (!token || isExpired(getTokenPayload(token), options?.expirationBufferMs)) {
20105
19915
  await refreshToken(options);
20106
19916
  token = getVercelOidcTokenSync();
@@ -23544,7 +23354,7 @@ function convertPartToLanguageModelPart(part, downloadedAssets) {
23544
23354
  const downloadedFile = downloadedAssets[data.toString()];
23545
23355
  if (downloadedFile) {
23546
23356
  data = downloadedFile.data;
23547
- mediaType ??= downloadedFile.mediaType;
23357
+ mediaType ?? (mediaType = downloadedFile.mediaType);
23548
23358
  }
23549
23359
  }
23550
23360
  switch (type) {
@@ -28364,9 +28174,10 @@ var init_git_logger = __esm({ "src/lib/git-logger.ts"() {
28364
28174
  var TasksPendingQueue;
28365
28175
  var init_tasks_pending_queue = __esm({ "src/lib/runners/tasks-pending-queue.ts"() {
28366
28176
  "use strict";
28177
+ var _TasksPendingQueue2;
28367
28178
  init_git_error();
28368
28179
  init_git_logger();
28369
- TasksPendingQueue = class _TasksPendingQueue {
28180
+ TasksPendingQueue = (_TasksPendingQueue2 = class _TasksPendingQueue {
28370
28181
  constructor(logLabel = "GitExecutor") {
28371
28182
  this.logLabel = logLabel;
28372
28183
  this._queue = /* @__PURE__ */ new Map();
@@ -28410,10 +28221,7 @@ var init_tasks_pending_queue = __esm({ "src/lib/runners/tasks-pending-queue.ts"(
28410
28221
  static getName(name = "empty") {
28411
28222
  return `task:${name}:${++_TasksPendingQueue.counter}`;
28412
28223
  }
28413
- static {
28414
- this.counter = 0;
28415
- }
28416
- };
28224
+ }, _TasksPendingQueue2.counter = 0, _TasksPendingQueue2);
28417
28225
  } });
28418
28226
  function pluginContext(task, commands) {
28419
28227
  return {
@@ -30992,12 +30800,13 @@ The release notes should be concise, informative, and highlight the key changes,
30992
30800
 
30993
30801
 
30994
30802
  ## Output format:
30995
- - Group related changes together under appropriate headings (e.g., "New Features", "Bug Fixes", "Improvements", "Breaking Changes").
30996
30803
  - Use bullet points to list individual changes for better readability.
30804
+ - Group related changes together under appropriate headings (e.g., "New Features", "Bug Fixes", "Improvements", "Breaking Changes").
30997
30805
  - If there are breaking changes, clearly indicate them in a separate section and provide guidance on how to adapt to these changes from a user perspective.
30806
+ - DO NOT start with "Here is the notes...", "Here are the changes...", "Let me generate..."; just directly write the content of the release note.
30998
30807
  - DO NOT use a top-level title to wrap the content as "Release Note"; just directly write the sections.
30999
- - DO NOT use --- to separate sections, use ## for headings instead.
31000
30808
  - Output ONLY the release note content, with no preamble, explanation, or commentary.
30809
+ - DO NOT use --- to separate sections, use ## for headings instead.
31001
30810
  `;
31002
30811
  }
31003
30812
  function buildUserPrompt(commits) {
@@ -31024,14 +30833,14 @@ function generateTools(git, logger) {
31024
30833
  description: "Get the full diff of a specific commit. Returns the patch showing all changes (additions, deletions, modifications) introduced by the commit.",
31025
30834
  inputSchema: zod_default.object({ commithash: zod_default.string().describe("The commit hash, tag, branch, or any other git ref resolvable by git rev-parse.") }),
31026
30835
  execute: async ({ commithash }) => {
31027
- logger?.(chalk.cyan(`[check_diff] fetching diff for ${commithash}`));
30836
+ logger?.(`[check_diff] fetching diff for ${commithash}`);
31028
30837
  const diff = await git.raw([
31029
30838
  "show",
31030
30839
  "--no-color",
31031
30840
  "--pretty=format:",
31032
30841
  commithash
31033
30842
  ]);
31034
- logger?.(chalk.green(`[check_diff] ${commithash} -> ${diff.length} chars of diff`));
30843
+ logger?.(`[check_diff] ${commithash} -> ${diff.length} chars of diff`);
31035
30844
  return diff;
31036
30845
  }
31037
30846
  }),
@@ -31043,10 +30852,10 @@ function generateTools(git, logger) {
31043
30852
  }),
31044
30853
  execute: async ({ commithash, path }) => {
31045
30854
  const normalized = path.replace(/^\/+|\/+$/g, "");
31046
- logger?.(chalk.cyan(`[browse_code] ${commithash} @ ${normalized === "" ? "/" : normalized}`));
30855
+ logger?.(`[browse_code] ${commithash} @ ${normalized === "" ? "/" : normalized}`);
31047
30856
  if (normalized === "") {
31048
30857
  const items = parseLsTree(await git.raw(["ls-tree", commithash]));
31049
- logger?.(chalk.green(`[browse_code] root -> folder with ${items.length} item(s)`));
30858
+ logger?.(`[browse_code] root -> folder with ${items.length} item(s)`);
31050
30859
  return {
31051
30860
  type: "folder",
31052
30861
  items
@@ -31061,12 +30870,12 @@ function generateTools(git, logger) {
31061
30870
  ref
31062
30871
  ])).trim();
31063
30872
  } catch {
31064
- logger?.(chalk.yellow(`[browse_code] ${ref} does not exist`));
30873
+ logger?.(`[browse_code] ${ref} does not exist`);
31065
30874
  return { error: "doesn't exists" };
31066
30875
  }
31067
30876
  if (objectType === "tree") {
31068
30877
  const items = parseLsTree(await git.raw(["ls-tree", ref]));
31069
- logger?.(chalk.green(`[browse_code] ${normalized} -> folder with ${items.length} item(s)`));
30878
+ logger?.(`[browse_code] ${normalized} -> folder with ${items.length} item(s)`);
31070
30879
  return {
31071
30880
  type: "folder",
31072
30881
  items
@@ -31074,13 +30883,13 @@ function generateTools(git, logger) {
31074
30883
  }
31075
30884
  if (objectType === "blob") {
31076
30885
  const content = await git.show(ref);
31077
- logger?.(chalk.green(`[browse_code] ${normalized} -> file with ${content.length} chars`));
30886
+ logger?.(`[browse_code] ${normalized} -> file with ${content.length} chars`);
31078
30887
  return {
31079
30888
  type: "file",
31080
30889
  content
31081
30890
  };
31082
30891
  }
31083
- logger?.(chalk.yellow(`[browse_code] ${ref} has unsupported object type "${objectType}"`));
30892
+ logger?.(`[browse_code] ${ref} has unsupported object type "${objectType}"`);
31084
30893
  return { error: "doesn't exists" };
31085
30894
  }
31086
30895
  })
@@ -31112,5 +30921,3 @@ async function generateReleaseNote(cwd, options) {
31112
30921
  }
31113
30922
  //#endregion
31114
30923
  export { number$1 as A, resolveConfig as C, boolean$1 as D, array$1 as E, record as M, string$1 as N, literal as O, union as P, UnsupportedFunctionalityError as S, any as T, withUserAgentSuffix as _, convertBase64ToUint8Array as a, InvalidResponseDataError as b, createEventSourceResponseHandler as c, downloadBlob as d, generateId as f, postJsonToApi as g, postFormDataToApi as h, combineHeaders as i, object$1 as j, looseObject as k, createJsonErrorResponseHandler as l, parseProviderOptions as m, require_token_util as n, convertToBase64 as o, isParsableJson as p, require_token_error as r, convertToFormData as s, generateReleaseNote as t, createJsonResponseHandler as u, withoutTrailingSlash as v, _enum as w, TooManyEmbeddingValuesForCallError as x, InvalidPromptError as y };
31115
-
31116
- //# sourceMappingURL=generate-CHfRvUG7.mjs.map