@botpress/adk 1.7.12 → 1.7.14

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/index.js CHANGED
@@ -654,7 +654,7 @@ var PRETTIER_CONFIG, formatCode = async (code, filepath) => {
654
654
  `));
655
655
  return code;
656
656
  }
657
- }, ADK_VERSION = "1.7.12", relative2 = (from, to) => {
657
+ }, ADK_VERSION = "1.7.14", relative2 = (from, to) => {
658
658
  const fromDir = path10.dirname(from);
659
659
  const relative3 = path10.relative(fromDir, to);
660
660
  return relative3.startsWith(".") ? relative3 : `./${relative3}`;
@@ -797,7 +797,7 @@ var init_integration_action_types = __esm(() => {
797
797
  var require_package = __commonJS((exports, module) => {
798
798
  module.exports = {
799
799
  name: "@botpress/adk",
800
- version: "1.7.12",
800
+ version: "1.7.14",
801
801
  description: "Core ADK library for building AI agents on Botpress",
802
802
  type: "module",
803
803
  main: "dist/index.js",
@@ -844,7 +844,7 @@ var require_package = __commonJS((exports, module) => {
844
844
  "@botpress/cli": "^4.23",
845
845
  "@botpress/client": "^1.27.0",
846
846
  "@botpress/cognitive": "^0.2.0",
847
- "@botpress/runtime": "^1.7.12",
847
+ "@botpress/runtime": "^1.7.14",
848
848
  "@botpress/sdk": "^4.18.1",
849
849
  "@bpinternal/yargs-extra": "^0.0.21",
850
850
  "@parcel/watcher": "^2.5.1",
@@ -4829,7 +4829,7 @@ class AgentProjectGenerator {
4829
4829
  deploy: "adk deploy"
4830
4830
  },
4831
4831
  dependencies: {
4832
- "@botpress/runtime": `^${"1.7.12"}`
4832
+ "@botpress/runtime": `^${"1.7.14"}`
4833
4833
  },
4834
4834
  devDependencies: {
4835
4835
  typescript: "^5.9.3"
@@ -7734,495 +7734,6 @@ class AgentConfigSyncManager {
7734
7734
  }
7735
7735
  }
7736
7736
 
7737
- // ../../node_modules/chalk/source/vendor/ansi-styles/index.js
7738
- var ANSI_BACKGROUND_OFFSET = 10;
7739
- var wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
7740
- var wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
7741
- var wrapAnsi16m = (offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`;
7742
- var styles = {
7743
- modifier: {
7744
- reset: [0, 0],
7745
- bold: [1, 22],
7746
- dim: [2, 22],
7747
- italic: [3, 23],
7748
- underline: [4, 24],
7749
- overline: [53, 55],
7750
- inverse: [7, 27],
7751
- hidden: [8, 28],
7752
- strikethrough: [9, 29]
7753
- },
7754
- color: {
7755
- black: [30, 39],
7756
- red: [31, 39],
7757
- green: [32, 39],
7758
- yellow: [33, 39],
7759
- blue: [34, 39],
7760
- magenta: [35, 39],
7761
- cyan: [36, 39],
7762
- white: [37, 39],
7763
- blackBright: [90, 39],
7764
- gray: [90, 39],
7765
- grey: [90, 39],
7766
- redBright: [91, 39],
7767
- greenBright: [92, 39],
7768
- yellowBright: [93, 39],
7769
- blueBright: [94, 39],
7770
- magentaBright: [95, 39],
7771
- cyanBright: [96, 39],
7772
- whiteBright: [97, 39]
7773
- },
7774
- bgColor: {
7775
- bgBlack: [40, 49],
7776
- bgRed: [41, 49],
7777
- bgGreen: [42, 49],
7778
- bgYellow: [43, 49],
7779
- bgBlue: [44, 49],
7780
- bgMagenta: [45, 49],
7781
- bgCyan: [46, 49],
7782
- bgWhite: [47, 49],
7783
- bgBlackBright: [100, 49],
7784
- bgGray: [100, 49],
7785
- bgGrey: [100, 49],
7786
- bgRedBright: [101, 49],
7787
- bgGreenBright: [102, 49],
7788
- bgYellowBright: [103, 49],
7789
- bgBlueBright: [104, 49],
7790
- bgMagentaBright: [105, 49],
7791
- bgCyanBright: [106, 49],
7792
- bgWhiteBright: [107, 49]
7793
- }
7794
- };
7795
- var modifierNames = Object.keys(styles.modifier);
7796
- var foregroundColorNames = Object.keys(styles.color);
7797
- var backgroundColorNames = Object.keys(styles.bgColor);
7798
- var colorNames = [...foregroundColorNames, ...backgroundColorNames];
7799
- function assembleStyles() {
7800
- const codes = new Map;
7801
- for (const [groupName, group] of Object.entries(styles)) {
7802
- for (const [styleName, style] of Object.entries(group)) {
7803
- styles[styleName] = {
7804
- open: `\x1B[${style[0]}m`,
7805
- close: `\x1B[${style[1]}m`
7806
- };
7807
- group[styleName] = styles[styleName];
7808
- codes.set(style[0], style[1]);
7809
- }
7810
- Object.defineProperty(styles, groupName, {
7811
- value: group,
7812
- enumerable: false
7813
- });
7814
- }
7815
- Object.defineProperty(styles, "codes", {
7816
- value: codes,
7817
- enumerable: false
7818
- });
7819
- styles.color.close = "\x1B[39m";
7820
- styles.bgColor.close = "\x1B[49m";
7821
- styles.color.ansi = wrapAnsi16();
7822
- styles.color.ansi256 = wrapAnsi256();
7823
- styles.color.ansi16m = wrapAnsi16m();
7824
- styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
7825
- styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
7826
- styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
7827
- Object.defineProperties(styles, {
7828
- rgbToAnsi256: {
7829
- value(red, green, blue) {
7830
- if (red === green && green === blue) {
7831
- if (red < 8) {
7832
- return 16;
7833
- }
7834
- if (red > 248) {
7835
- return 231;
7836
- }
7837
- return Math.round((red - 8) / 247 * 24) + 232;
7838
- }
7839
- return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
7840
- },
7841
- enumerable: false
7842
- },
7843
- hexToRgb: {
7844
- value(hex) {
7845
- const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
7846
- if (!matches) {
7847
- return [0, 0, 0];
7848
- }
7849
- let [colorString] = matches;
7850
- if (colorString.length === 3) {
7851
- colorString = [...colorString].map((character) => character + character).join("");
7852
- }
7853
- const integer = Number.parseInt(colorString, 16);
7854
- return [
7855
- integer >> 16 & 255,
7856
- integer >> 8 & 255,
7857
- integer & 255
7858
- ];
7859
- },
7860
- enumerable: false
7861
- },
7862
- hexToAnsi256: {
7863
- value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
7864
- enumerable: false
7865
- },
7866
- ansi256ToAnsi: {
7867
- value(code) {
7868
- if (code < 8) {
7869
- return 30 + code;
7870
- }
7871
- if (code < 16) {
7872
- return 90 + (code - 8);
7873
- }
7874
- let red;
7875
- let green;
7876
- let blue;
7877
- if (code >= 232) {
7878
- red = ((code - 232) * 10 + 8) / 255;
7879
- green = red;
7880
- blue = red;
7881
- } else {
7882
- code -= 16;
7883
- const remainder = code % 36;
7884
- red = Math.floor(code / 36) / 5;
7885
- green = Math.floor(remainder / 6) / 5;
7886
- blue = remainder % 6 / 5;
7887
- }
7888
- const value = Math.max(red, green, blue) * 2;
7889
- if (value === 0) {
7890
- return 30;
7891
- }
7892
- let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
7893
- if (value === 2) {
7894
- result += 60;
7895
- }
7896
- return result;
7897
- },
7898
- enumerable: false
7899
- },
7900
- rgbToAnsi: {
7901
- value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
7902
- enumerable: false
7903
- },
7904
- hexToAnsi: {
7905
- value: (hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
7906
- enumerable: false
7907
- }
7908
- });
7909
- return styles;
7910
- }
7911
- var ansiStyles = assembleStyles();
7912
- var ansi_styles_default = ansiStyles;
7913
-
7914
- // ../../node_modules/chalk/source/vendor/supports-color/index.js
7915
- import process3 from "node:process";
7916
- import os7 from "node:os";
7917
- import tty from "node:tty";
7918
- function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : process3.argv) {
7919
- const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
7920
- const position = argv.indexOf(prefix + flag);
7921
- const terminatorPosition = argv.indexOf("--");
7922
- return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
7923
- }
7924
- var { env } = process3;
7925
- var flagForceColor;
7926
- if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
7927
- flagForceColor = 0;
7928
- } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
7929
- flagForceColor = 1;
7930
- }
7931
- function envForceColor() {
7932
- if ("FORCE_COLOR" in env) {
7933
- if (env.FORCE_COLOR === "true") {
7934
- return 1;
7935
- }
7936
- if (env.FORCE_COLOR === "false") {
7937
- return 0;
7938
- }
7939
- return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
7940
- }
7941
- }
7942
- function translateLevel(level) {
7943
- if (level === 0) {
7944
- return false;
7945
- }
7946
- return {
7947
- level,
7948
- hasBasic: true,
7949
- has256: level >= 2,
7950
- has16m: level >= 3
7951
- };
7952
- }
7953
- function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
7954
- const noFlagForceColor = envForceColor();
7955
- if (noFlagForceColor !== undefined) {
7956
- flagForceColor = noFlagForceColor;
7957
- }
7958
- const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
7959
- if (forceColor === 0) {
7960
- return 0;
7961
- }
7962
- if (sniffFlags) {
7963
- if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
7964
- return 3;
7965
- }
7966
- if (hasFlag("color=256")) {
7967
- return 2;
7968
- }
7969
- }
7970
- if ("TF_BUILD" in env && "AGENT_NAME" in env) {
7971
- return 1;
7972
- }
7973
- if (haveStream && !streamIsTTY && forceColor === undefined) {
7974
- return 0;
7975
- }
7976
- const min = forceColor || 0;
7977
- if (env.TERM === "dumb") {
7978
- return min;
7979
- }
7980
- if (process3.platform === "win32") {
7981
- const osRelease = os7.release().split(".");
7982
- if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
7983
- return Number(osRelease[2]) >= 14931 ? 3 : 2;
7984
- }
7985
- return 1;
7986
- }
7987
- if ("CI" in env) {
7988
- if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => (key in env))) {
7989
- return 3;
7990
- }
7991
- if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => (sign in env)) || env.CI_NAME === "codeship") {
7992
- return 1;
7993
- }
7994
- return min;
7995
- }
7996
- if ("TEAMCITY_VERSION" in env) {
7997
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
7998
- }
7999
- if (env.COLORTERM === "truecolor") {
8000
- return 3;
8001
- }
8002
- if (env.TERM === "xterm-kitty") {
8003
- return 3;
8004
- }
8005
- if (env.TERM === "xterm-ghostty") {
8006
- return 3;
8007
- }
8008
- if (env.TERM === "wezterm") {
8009
- return 3;
8010
- }
8011
- if ("TERM_PROGRAM" in env) {
8012
- const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
8013
- switch (env.TERM_PROGRAM) {
8014
- case "iTerm.app": {
8015
- return version >= 3 ? 3 : 2;
8016
- }
8017
- case "Apple_Terminal": {
8018
- return 2;
8019
- }
8020
- }
8021
- }
8022
- if (/-256(color)?$/i.test(env.TERM)) {
8023
- return 2;
8024
- }
8025
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
8026
- return 1;
8027
- }
8028
- if ("COLORTERM" in env) {
8029
- return 1;
8030
- }
8031
- return min;
8032
- }
8033
- function createSupportsColor(stream, options = {}) {
8034
- const level = _supportsColor(stream, {
8035
- streamIsTTY: stream && stream.isTTY,
8036
- ...options
8037
- });
8038
- return translateLevel(level);
8039
- }
8040
- var supportsColor = {
8041
- stdout: createSupportsColor({ isTTY: tty.isatty(1) }),
8042
- stderr: createSupportsColor({ isTTY: tty.isatty(2) })
8043
- };
8044
- var supports_color_default = supportsColor;
8045
-
8046
- // ../../node_modules/chalk/source/utilities.js
8047
- function stringReplaceAll(string, substring, replacer) {
8048
- let index = string.indexOf(substring);
8049
- if (index === -1) {
8050
- return string;
8051
- }
8052
- const substringLength = substring.length;
8053
- let endIndex = 0;
8054
- let returnValue = "";
8055
- do {
8056
- returnValue += string.slice(endIndex, index) + substring + replacer;
8057
- endIndex = index + substringLength;
8058
- index = string.indexOf(substring, endIndex);
8059
- } while (index !== -1);
8060
- returnValue += string.slice(endIndex);
8061
- return returnValue;
8062
- }
8063
- function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
8064
- let endIndex = 0;
8065
- let returnValue = "";
8066
- do {
8067
- const gotCR = string[index - 1] === "\r";
8068
- returnValue += string.slice(endIndex, gotCR ? index - 1 : index) + prefix + (gotCR ? `\r
8069
- ` : `
8070
- `) + postfix;
8071
- endIndex = index + 1;
8072
- index = string.indexOf(`
8073
- `, endIndex);
8074
- } while (index !== -1);
8075
- returnValue += string.slice(endIndex);
8076
- return returnValue;
8077
- }
8078
-
8079
- // ../../node_modules/chalk/source/index.js
8080
- var { stdout: stdoutColor, stderr: stderrColor } = supports_color_default;
8081
- var GENERATOR = Symbol("GENERATOR");
8082
- var STYLER = Symbol("STYLER");
8083
- var IS_EMPTY = Symbol("IS_EMPTY");
8084
- var levelMapping = [
8085
- "ansi",
8086
- "ansi",
8087
- "ansi256",
8088
- "ansi16m"
8089
- ];
8090
- var styles2 = Object.create(null);
8091
- var applyOptions = (object, options = {}) => {
8092
- if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
8093
- throw new Error("The `level` option should be an integer from 0 to 3");
8094
- }
8095
- const colorLevel = stdoutColor ? stdoutColor.level : 0;
8096
- object.level = options.level === undefined ? colorLevel : options.level;
8097
- };
8098
- var chalkFactory = (options) => {
8099
- const chalk = (...strings) => strings.join(" ");
8100
- applyOptions(chalk, options);
8101
- Object.setPrototypeOf(chalk, createChalk.prototype);
8102
- return chalk;
8103
- };
8104
- function createChalk(options) {
8105
- return chalkFactory(options);
8106
- }
8107
- Object.setPrototypeOf(createChalk.prototype, Function.prototype);
8108
- for (const [styleName, style] of Object.entries(ansi_styles_default)) {
8109
- styles2[styleName] = {
8110
- get() {
8111
- const builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);
8112
- Object.defineProperty(this, styleName, { value: builder });
8113
- return builder;
8114
- }
8115
- };
8116
- }
8117
- styles2.visible = {
8118
- get() {
8119
- const builder = createBuilder(this, this[STYLER], true);
8120
- Object.defineProperty(this, "visible", { value: builder });
8121
- return builder;
8122
- }
8123
- };
8124
- var getModelAnsi = (model, level, type, ...arguments_) => {
8125
- if (model === "rgb") {
8126
- if (level === "ansi16m") {
8127
- return ansi_styles_default[type].ansi16m(...arguments_);
8128
- }
8129
- if (level === "ansi256") {
8130
- return ansi_styles_default[type].ansi256(ansi_styles_default.rgbToAnsi256(...arguments_));
8131
- }
8132
- return ansi_styles_default[type].ansi(ansi_styles_default.rgbToAnsi(...arguments_));
8133
- }
8134
- if (model === "hex") {
8135
- return getModelAnsi("rgb", level, type, ...ansi_styles_default.hexToRgb(...arguments_));
8136
- }
8137
- return ansi_styles_default[type][model](...arguments_);
8138
- };
8139
- var usedModels = ["rgb", "hex", "ansi256"];
8140
- for (const model of usedModels) {
8141
- styles2[model] = {
8142
- get() {
8143
- const { level } = this;
8144
- return function(...arguments_) {
8145
- const styler = createStyler(getModelAnsi(model, levelMapping[level], "color", ...arguments_), ansi_styles_default.color.close, this[STYLER]);
8146
- return createBuilder(this, styler, this[IS_EMPTY]);
8147
- };
8148
- }
8149
- };
8150
- const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
8151
- styles2[bgModel] = {
8152
- get() {
8153
- const { level } = this;
8154
- return function(...arguments_) {
8155
- const styler = createStyler(getModelAnsi(model, levelMapping[level], "bgColor", ...arguments_), ansi_styles_default.bgColor.close, this[STYLER]);
8156
- return createBuilder(this, styler, this[IS_EMPTY]);
8157
- };
8158
- }
8159
- };
8160
- }
8161
- var proto = Object.defineProperties(() => {}, {
8162
- ...styles2,
8163
- level: {
8164
- enumerable: true,
8165
- get() {
8166
- return this[GENERATOR].level;
8167
- },
8168
- set(level) {
8169
- this[GENERATOR].level = level;
8170
- }
8171
- }
8172
- });
8173
- var createStyler = (open, close, parent) => {
8174
- let openAll;
8175
- let closeAll;
8176
- if (parent === undefined) {
8177
- openAll = open;
8178
- closeAll = close;
8179
- } else {
8180
- openAll = parent.openAll + open;
8181
- closeAll = close + parent.closeAll;
8182
- }
8183
- return {
8184
- open,
8185
- close,
8186
- openAll,
8187
- closeAll,
8188
- parent
8189
- };
8190
- };
8191
- var createBuilder = (self, _styler, _isEmpty) => {
8192
- const builder = (...arguments_) => applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
8193
- Object.setPrototypeOf(builder, proto);
8194
- builder[GENERATOR] = self;
8195
- builder[STYLER] = _styler;
8196
- builder[IS_EMPTY] = _isEmpty;
8197
- return builder;
8198
- };
8199
- var applyStyle = (self, string) => {
8200
- if (self.level <= 0 || !string) {
8201
- return self[IS_EMPTY] ? "" : string;
8202
- }
8203
- let styler = self[STYLER];
8204
- if (styler === undefined) {
8205
- return string;
8206
- }
8207
- const { openAll, closeAll } = styler;
8208
- if (string.includes("\x1B")) {
8209
- while (styler !== undefined) {
8210
- string = stringReplaceAll(string, styler.close, styler.open);
8211
- styler = styler.parent;
8212
- }
8213
- }
8214
- const lfIndex = string.indexOf(`
8215
- `);
8216
- if (lfIndex !== -1) {
8217
- string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
8218
- }
8219
- return openAll + string + closeAll;
8220
- };
8221
- Object.defineProperties(createChalk.prototype, styles2);
8222
- var chalk = createChalk();
8223
- var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
8224
- var source_default = chalk;
8225
-
8226
7737
  // src/preflight/formatter.ts
8227
7738
  import { readFileSync } from "fs";
8228
7739
  import { join as join8 } from "path";
@@ -8244,14 +7755,11 @@ var getAdkVersion = () => {
8244
7755
  class PreflightFormatter {
8245
7756
  static format(result) {
8246
7757
  const sections = [];
8247
- const purple = "#D2A6FF";
8248
- const logoLine1 = source_default.hex(purple)(" ▄▀█ █▀▄ █▄▀") + " Botpress ADK";
8249
- const logoLine2 = source_default.hex(purple)(" █▀█ █▄▀ █░█") + ` v${getAdkVersion()}`;
8250
7758
  sections.push("");
8251
- sections.push(logoLine1);
8252
- sections.push(logoLine2);
7759
+ sections.push(" ▄▀█ █▀▄ █▄▀ Botpress ADK");
7760
+ sections.push(` █▀█ █▄▀ █░█ v${getAdkVersion()}`);
8253
7761
  sections.push("");
8254
- sections.push(source_default.hex(purple)("Running") + " preflight checks...");
7762
+ sections.push("Running preflight checks...");
8255
7763
  sections.push("");
8256
7764
  const allIntegrations = [
8257
7765
  ...result.integrations.toRemove,
@@ -8260,45 +7768,45 @@ class PreflightFormatter {
8260
7768
  ];
8261
7769
  const maxWidth = Math.max(...allIntegrations.map((i) => `${i.alias} (v${i.version})`.length), 30);
8262
7770
  if (hasIntegrationChanges(result.integrations)) {
8263
- sections.push(source_default.bold(`Integrations:
8264
- `));
7771
+ sections.push(`Integrations:
7772
+ `);
8265
7773
  if (result.integrations.toRemove.length > 0) {
8266
- sections.push(source_default.bold("Installed Remotely but NOT in agent.config.ts"));
8267
- sections.push(source_default.gray(`(these will be DISABLED or REMOVED)
8268
- `));
7774
+ sections.push("Installed Remotely but NOT in agent.config.ts");
7775
+ sections.push(`(these will be DISABLED or REMOVED)
7776
+ `);
8269
7777
  for (const integration of result.integrations.toRemove) {
8270
7778
  const name = `${integration.alias} (v${integration.version})`;
8271
7779
  const padding = " ".repeat(maxWidth - name.length + 4);
8272
- sections.push(` ${source_default.red("")} ${name}${padding}${source_default.red("")} Not present locally`);
8273
- sections.push(` Action: ${source_default.red("Remove")}
7780
+ sections.push(` — ${name}${padding}✗ Not present locally`);
7781
+ sections.push(` Action: Remove
8274
7782
  `);
8275
7783
  }
8276
7784
  }
8277
7785
  if (result.integrations.toInstall.length > 0) {
8278
- sections.push(source_default.bold("Present Locally but NOT Installed Remotely"));
8279
- sections.push(source_default.gray(`(these will be INSTALLED)
8280
- `));
7786
+ sections.push("Present Locally but NOT Installed Remotely");
7787
+ sections.push(`(these will be INSTALLED)
7788
+ `);
8281
7789
  for (const integration of result.integrations.toInstall) {
8282
7790
  const name = `${integration.alias} (v${integration.version})`;
8283
7791
  const padding = " ".repeat(maxWidth - name.length + 4);
8284
- sections.push(` ${source_default.green("")} ${name}${padding}${source_default.green("+")} Missing remotely`);
8285
- sections.push(` Action: ${source_default.green("Install")}
7792
+ sections.push(` — ${name}${padding}+ Missing remotely`);
7793
+ sections.push(` Action: Install
8286
7794
  `);
8287
7795
  }
8288
7796
  }
8289
7797
  if (result.integrations.toUpdate.length > 0) {
8290
- sections.push(source_default.bold("Present on both, but config DIFFERS"));
8291
- sections.push(source_default.gray(`(these will be UPDATED)
8292
- `));
7798
+ sections.push("Present on both, but config DIFFERS");
7799
+ sections.push(`(these will be UPDATED)
7800
+ `);
8293
7801
  for (const integration of result.integrations.toUpdate) {
8294
- sections.push(` ${source_default.yellow("")} ${integration.alias} (v${integration.version})`);
7802
+ sections.push(` — ${integration.alias} (v${integration.version})`);
8295
7803
  if (integration.configChanges && integration.configChanges.length > 0) {
8296
- sections.push(source_default.yellow(` Configuration differences:
8297
- `));
7804
+ sections.push(` Configuration differences:
7805
+ `);
8298
7806
  for (const change of integration.configChanges) {
8299
7807
  sections.push(` ${change.field}:`);
8300
- sections.push(` ${source_default.red("-")} Remote: ${this.formatValue(change.oldValue)}`);
8301
- sections.push(` ${source_default.green("+")} Local: ${this.formatValue(change.newValue)}
7808
+ sections.push(` - Remote: ${this.formatValue(change.oldValue)}`);
7809
+ sections.push(` + Local: ${this.formatValue(change.newValue)}
8302
7810
  `);
8303
7811
  }
8304
7812
  }
@@ -8306,51 +7814,51 @@ class PreflightFormatter {
8306
7814
  }
8307
7815
  }
8308
7816
  if (result.agentConfig.length > 0) {
8309
- sections.push(source_default.bold("Agent Configuration Differences"));
8310
- sections.push(source_default.gray(`(These are top-level agent settings, not integration settings)
8311
- `));
7817
+ sections.push("Agent Configuration Differences");
7818
+ sections.push(`(These are top-level agent settings, not integration settings)
7819
+ `);
8312
7820
  for (const diff of result.agentConfig) {
8313
7821
  sections.push(` agent.${diff.field}:`);
8314
- sections.push(` ${source_default.red("-")} Remote: ${this.formatValue(diff.oldValue)}`);
8315
- sections.push(` ${source_default.green("+")} Local: ${this.formatValue(diff.newValue)}
7822
+ sections.push(` - Remote: ${this.formatValue(diff.oldValue)}`);
7823
+ sections.push(` + Local: ${this.formatValue(diff.newValue)}
8316
7824
  `);
8317
7825
  }
8318
7826
  }
8319
- sections.push(source_default.bold(`Summary of Actions
8320
- `));
7827
+ sections.push(`Summary of Actions
7828
+ `);
8321
7829
  const install = result.integrations.toInstall.length;
8322
7830
  const remove = result.integrations.toRemove.length;
8323
7831
  const update = result.integrations.toUpdate.length;
8324
7832
  const agentConfig = result.agentConfig.length;
8325
7833
  if (install > 0) {
8326
- sections.push(` • ${source_default.green("Install:")} ${pluralize(install, "integration")}`);
7834
+ sections.push(` • Install: ${pluralize(install, "integration")}`);
8327
7835
  }
8328
7836
  if (remove > 0) {
8329
- sections.push(` • ${source_default.red("Remove:")} ${pluralize(remove, "integration")}`);
7837
+ sections.push(` • Remove: ${pluralize(remove, "integration")}`);
8330
7838
  }
8331
7839
  if (update > 0) {
8332
- sections.push(` • ${source_default.yellow("Update:")} ${pluralize(update, "integration")}`);
7840
+ sections.push(` • Update: ${pluralize(update, "integration")}`);
8333
7841
  }
8334
7842
  if (agentConfig > 0) {
8335
- sections.push(` • ${source_default.cyan("Agent config:")} ${pluralize(agentConfig, "change")}`);
7843
+ sections.push(` • Agent config: ${pluralize(agentConfig, "change")}`);
8336
7844
  }
8337
7845
  sections.push("");
8338
7846
  return sections.join(`
8339
7847
  `);
8340
7848
  }
8341
7849
  static formatPrompt() {
8342
- return source_default.bold.red(`❓ Apply these changes before continuing?
8343
- `) + source_default.gray("Proceed? [y/N] ");
7850
+ return `❓ Apply these changes before continuing?
7851
+ Proceed? [y/N] `;
8344
7852
  }
8345
7853
  static formatValue(value) {
8346
7854
  if (value === undefined || value === null) {
8347
- return source_default.gray("(not set)");
7855
+ return "(not set)";
8348
7856
  }
8349
7857
  if (typeof value === "string") {
8350
7858
  return `"${value}"`;
8351
7859
  }
8352
7860
  if (typeof value === "boolean") {
8353
- return value ? source_default.green("true") : source_default.red("false");
7861
+ return value ? "true" : "false";
8354
7862
  }
8355
7863
  if (Array.isArray(value)) {
8356
7864
  return `[${value.map((v) => this.formatValue(v)).join(", ")}]`;
@@ -8585,5 +8093,5 @@ export {
8585
8093
  AgentProject
8586
8094
  };
8587
8095
 
8588
- //# debugId=2099CC0161971ADE64756E2164756E21
8096
+ //# debugId=778298C97818353564756E2164756E21
8589
8097
  //# sourceMappingURL=index.js.map