@buildautomaton/cli 0.1.17 → 0.1.18

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/cli.js CHANGED
@@ -38132,6 +38132,13 @@ async function runBridge(options) {
38132
38132
  }
38133
38133
 
38134
38134
  // src/cli/run-cli-action.ts
38135
+ var GOLDEN_YELLOW = "\x1B[38;5;220m";
38136
+ var REDDISH_ORANGE = "\x1B[38;5;208m";
38137
+ var RESET = "\x1B[0m";
38138
+ var E2EE_CERTIFICATES_OPTION = "--e2ee-certificates-dir <path>";
38139
+ function colorize(color, message) {
38140
+ return `${color}${message}${RESET}`;
38141
+ }
38135
38142
  async function runCliAction(program2, opts) {
38136
38143
  const positionalUrl = program2.args?.[0];
38137
38144
  const urlFromPositional = typeof positionalUrl === "string" && /^https?:\/\//i.test(positionalUrl) ? positionalUrl : void 0;
@@ -38155,6 +38162,12 @@ async function runCliAction(program2, opts) {
38155
38162
  process.chdir(resolvedCwd);
38156
38163
  }
38157
38164
  initBridgeWorkspaceDirectory();
38165
+ console.log(
38166
+ colorize(
38167
+ GOLDEN_YELLOW,
38168
+ `[Workspace] Using ${getBridgeWorkspaceDirectory()} as the working directory for file access and agents.`
38169
+ )
38170
+ );
38158
38171
  let worktreesRootAbs;
38159
38172
  if (opts.worktreesRoot && opts.worktreesRoot.trim()) {
38160
38173
  worktreesRootAbs = path33.resolve(opts.worktreesRoot.trim());
@@ -38168,6 +38181,13 @@ async function runCliAction(program2, opts) {
38168
38181
  console.log(
38169
38182
  `[E2EE] Active key: ${e2eCertificates.activeCertificate.name} (${e2eCertificates.activeCertificate.id})`
38170
38183
  );
38184
+ } else {
38185
+ console.warn(
38186
+ colorize(
38187
+ REDDISH_ORANGE,
38188
+ `[E2EE] Warning: this CLI session is not end-to-end encrypted. Start with ${E2EE_CERTIFICATES_OPTION} to enable end-to-end encryption.`
38189
+ )
38190
+ );
38171
38191
  }
38172
38192
  let refreshToken;
38173
38193
  if ((!workspaceId || !authToken) && opts.config !== false) {