@commandgarden/cli 1.4.0 → 1.4.2

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.
Files changed (2) hide show
  1. package/dist/main.js +12 -18
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -12206,7 +12206,7 @@ import { readFileSync as readFileSync8 } from "fs";
12206
12206
  import { homedir } from "os";
12207
12207
  import { fileURLToPath } from "url";
12208
12208
 
12209
- // node_modules/@commandgarden/shared/dist/capabilities.js
12209
+ // ../shared/dist/capabilities.js
12210
12210
  var CAPABILITIES = [
12211
12211
  "navigate",
12212
12212
  "cookie_read",
@@ -16268,7 +16268,7 @@ var coerce = {
16268
16268
  };
16269
16269
  var NEVER = INVALID;
16270
16270
 
16271
- // node_modules/@commandgarden/shared/dist/pipeline.js
16271
+ // ../shared/dist/pipeline.js
16272
16272
  var STEP_CAPABILITY_MAP = {
16273
16273
  navigate: "navigate",
16274
16274
  wait: "navigate",
@@ -16361,7 +16361,7 @@ var pipelineStepSchema = external_exports.discriminatedUnion("step", [
16361
16361
  jsEvaluateStepSchema
16362
16362
  ]);
16363
16363
 
16364
- // node_modules/@commandgarden/shared/dist/connector.js
16364
+ // ../shared/dist/connector.js
16365
16365
  var capabilityEnum = external_exports.enum(CAPABILITIES);
16366
16366
  var connectorArgSchema = external_exports.object({
16367
16367
  name: external_exports.string(),
@@ -16388,7 +16388,7 @@ var connectorSchema = external_exports.object({
16388
16388
  pipeline: external_exports.array(pipelineStepSchema).min(1)
16389
16389
  });
16390
16390
 
16391
- // node_modules/@commandgarden/shared/dist/loader.js
16391
+ // ../shared/dist/loader.js
16392
16392
  var import_yaml = __toESM(require_dist(), 1);
16393
16393
  function parseConnectorYaml(yamlContent) {
16394
16394
  let parsed;
@@ -16459,10 +16459,10 @@ function validateConnectorSemantics(connector) {
16459
16459
  return errors;
16460
16460
  }
16461
16461
 
16462
- // node_modules/@commandgarden/shared/dist/events.js
16462
+ // ../shared/dist/events.js
16463
16463
  import { randomUUID } from "crypto";
16464
16464
 
16465
- // node_modules/@commandgarden/shared/dist/daemon-client.js
16465
+ // ../shared/dist/daemon-client.js
16466
16466
  import { readFileSync } from "fs";
16467
16467
  function readToken(tokenPath) {
16468
16468
  try {
@@ -17407,7 +17407,6 @@ async function executeDown(cgHome) {
17407
17407
 
17408
17408
  // src/commands/extension-cmd.ts
17409
17409
  import { dirname as dirname2 } from "path";
17410
- import { spawn as spawn3 } from "child_process";
17411
17410
  function executeExtensionSetup(baseDir) {
17412
17411
  const manifestPath = resolveScript(
17413
17412
  baseDir,
@@ -17416,22 +17415,17 @@ function executeExtensionSetup(baseDir) {
17416
17415
  "dist/manifest.json"
17417
17416
  );
17418
17417
  const extensionDir = dirname2(manifestPath);
17419
- const [command, args] = process.platform === "darwin" ? ["open", ["chrome://extensions"]] : process.platform === "win32" ? ["cmd", ["/c", "start", "", "chrome://extensions"]] : ["xdg-open", ["chrome://extensions"]];
17420
- const child = spawn3(command, args, { stdio: "ignore", detached: true });
17421
- child.on("error", () => {
17422
- });
17423
- child.unref();
17424
17418
  return [
17425
17419
  "",
17426
- "Chrome extension path:",
17420
+ "Extension path:",
17427
17421
  ` ${extensionDir}`,
17428
17422
  "",
17429
17423
  "To install:",
17430
- ' 1. Enable "Developer mode" (top-right toggle)',
17431
- ' 2. Click "Load unpacked"',
17432
- " 3. Select the path above",
17433
- "",
17434
- "Opening chrome://extensions...",
17424
+ " 1. Open your browser's extensions page",
17425
+ " Chrome/Brave: chrome://extensions | Edge: edge://extensions",
17426
+ ' 2. Enable "Developer mode" (top-right toggle)',
17427
+ ' 3. Click "Load unpacked"',
17428
+ " 4. Select the path above",
17435
17429
  ""
17436
17430
  ].join("\n");
17437
17431
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commandgarden/cli",
3
- "version": "1.4.0",
3
+ "version": "1.4.2",
4
4
  "description": "Enterprise browser automation CLI",
5
5
  "type": "module",
6
6
  "license": "MIT",