@hexclave/cli 1.0.80 → 1.0.82

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
@@ -994,7 +994,7 @@ function parseExecTarget(opts) {
994
994
  };
995
995
  }
996
996
  function registerExecCommand(program) {
997
- program.command("exec [javascript]").description("Execute JavaScript with a pre-configured StackServerApp as `hexclaveServerApp`. Pass --cloud-project-id <id> for the cloud API, or --config-file <path> for the development environment.").option("--cloud-project-id <id>", "Cloud project ID to run against (use --config-file instead for the development environment)").option("--config-file <path>", "Path to a development-environment stack.config.ts (use --cloud-project-id instead for the cloud API)").addHelpText("after", "\nFor available API methods, see: https://docs.hexclave.com/sdk/overview").action(async (javascript, opts) => {
997
+ program.command("exec [javascript]").description("Execute JavaScript with a pre-configured Hexclave server app as `hexclaveServerApp`. Pass --cloud-project-id <id> for the cloud API, or --config-file <path> for the development environment.").option("--cloud-project-id <id>", "Cloud project ID to run against (use --config-file instead for the development environment)").option("--config-file <path>", "Path to a development-environment hexclave.config.ts (use --cloud-project-id instead for the cloud API)").addHelpText("after", "\nFor available API methods, see: https://docs.hexclave.com/sdk/overview").action(async (javascript, opts) => {
998
998
  if (javascript === void 0) throw new CliError("Missing JavaScript argument. Use `hexclave exec \"<javascript>\"` or `hexclave exec --help`.");
999
999
  const target = parseExecTarget(opts);
1000
1000
  let auth;
@@ -1215,7 +1215,7 @@ function assertConfigPullTarget(filePath, opts) {
1215
1215
  }
1216
1216
  function registerConfigCommand(program) {
1217
1217
  const config = program.command("config").description("Manage project configuration files");
1218
- config.command("pull").description("Pull branch config to a local file").option("--cloud-project-id <id>", "Cloud project ID to pull config from (defaults to the STACK_PROJECT_ID env var)").option("--config-file <path>", "Path to write config file (.ts); defaults to ./hexclave.config.ts in the current directory").option("--overwrite", "Replace the config file if one already exists at the target path").action(async (opts) => {
1218
+ config.command("pull").description("Pull branch config to a local file").option("--cloud-project-id <id>", "Cloud project ID to pull config from (defaults to the HEXCLAVE_PROJECT_ID env var; STACK_PROJECT_ID is also supported)").option("--config-file <path>", "Path to write config file (.ts); defaults to ./hexclave.config.ts in the current directory").option("--overwrite", "Replace the config file if one already exists at the target path").action(async (opts) => {
1219
1219
  const auth = resolveAuth(resolveProjectId(opts.cloudProjectId));
1220
1220
  if (!isProjectAuthWithRefreshToken(auth)) throw new CliError("`hexclave config pull` requires `hexclave login`. Remove STACK_SECRET_SERVER_KEY and try again.");
1221
1221
  const filePath = resolveConfigFilePathForPull(opts, process.cwd());
@@ -1228,7 +1228,7 @@ function registerConfigCommand(program) {
1228
1228
  });
1229
1229
  console.log(`Config written to ${filePath}`);
1230
1230
  });
1231
- config.command("push").description("Push a local config file to branch config").option("--cloud-project-id <id>", "Cloud project ID to push config to (defaults to the STACK_PROJECT_ID env var)").requiredOption("--config-file <path>", "Path to config file (.js or .ts)").option("--source <type>", "Explicit source type for this push. Only 'github' is supported.").option("--source-repo <owner/repo>", "GitHub repository in 'owner/repo' format. Only allowed with --source github.").option("--source-path <path>", "Path to the config file within the source repository. Only allowed with --source github.").option("--source-workflow-path <path>", "Path to the syncing workflow file within the source repository. Only allowed with --source github.").action(async (opts) => {
1231
+ config.command("push").description("Push a local config file to branch config").option("--cloud-project-id <id>", "Cloud project ID to push config to (defaults to the HEXCLAVE_PROJECT_ID env var; STACK_PROJECT_ID is also supported)").requiredOption("--config-file <path>", "Path to config file (.js or .ts)").option("--source <type>", "Explicit source type for this push. Only 'github' is supported.").option("--source-repo <owner/repo>", "GitHub repository in 'owner/repo' format. Only allowed with --source github.").option("--source-path <path>", "Path to the config file within the source repository. Only allowed with --source github.").option("--source-workflow-path <path>", "Path to the syncing workflow file within the source repository. Only allowed with --source github.").action(async (opts) => {
1232
1232
  const auth = resolveAuth(resolveProjectId(opts.cloudProjectId));
1233
1233
  const filePath = resolveConfigFilePathOption(opts.configFile, { mustExist: true });
1234
1234
  const ext = path$1.extname(filePath);
@@ -2711,7 +2711,7 @@ async function closeSession(sessionId, secret, port) {
2711
2711
  if (!response.ok) logDev(`Failed to close development environment session (${response.status}): ${await response.text()}`);
2712
2712
  }
2713
2713
  function registerDevCommand(program) {
2714
- program.command("dev").usage("--config-file <path> -- <command> [args...]").description("Run a command with Hexclave development-environment credentials").requiredOption("--config-file <path>", "Path to stack.config.ts").argument("<command...>", "Command and arguments to run after --").action(async (commandArgs, opts) => {
2714
+ program.command("dev").usage("--config-file <path> -- <command> [args...]").description("Run a command with Hexclave development-environment credentials").requiredOption("--config-file <path>", "Path to hexclave.config.ts").argument("<command...>", "Command and arguments to run after --").action(async (commandArgs, opts) => {
2715
2715
  if (opts.configFile == null) throw new CliError("--config-file is required.");
2716
2716
  const childCommand = splitDevCommandArgs(commandArgs);
2717
2717
  const port = dashboardPort();