@oodarun/cli 0.1.16 → 0.1.17

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 (3) hide show
  1. package/README.md +5 -4
  2. package/dist/cli.js +12 -6
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -78,15 +78,16 @@ Publish a built static site to a permanent shareable URL at `{slug}-p.ooda.run`.
78
78
  From the CLI — fully non-interactive, so agents and CI can drive it:
79
79
 
80
80
  ```bash
81
- ooda publish ./dist # publish a built site
82
- ooda publish ./dist --slug my-app # choose the slug
81
+ ooda publish # run in the project root (auto-detects the build dir)
82
+ ooda publish --slug my-app # choose the slug
83
83
  ooda sites list # list published sites
84
84
  ooda sites access my-app --mode password --password s3cret # gate access
85
85
  ooda sites delete my-app # unpublish
86
86
  ```
87
87
 
88
- `publish` uploads an already-built output directory (it looks for `dist`,
89
- `build`, `out`, `.output/public`, or `.next/static`) run your build first.
88
+ Run `publish` from your **project root** it auto-detects the build output
89
+ (`dist`, `build`, `out`, `.output/public`, or `.next/static`) inside it. Don't
90
+ pass the build folder itself (`ooda publish ./dist` is wrong). Build first.
90
91
  Add `--json` to any command for machine-readable output, and set
91
92
  `OODA_ACCESS_TOKEN` + `OODA_ORG_ID` to run without an interactive login.
92
93
 
package/dist/cli.js CHANGED
@@ -1168,7 +1168,12 @@ async function handleEmailPasswordAuth() {
1168
1168
  return passwordLoginInteractive();
1169
1169
  }
1170
1170
  async function emailCodeLoginInteractive(prefillEmail) {
1171
- const email = prefillEmail || await prompt(` ${c.blue}${c.bold}Email:${c.reset} `);
1171
+ const remembered = getOrgEmail();
1172
+ let email = prefillEmail;
1173
+ if (!email) {
1174
+ const label = remembered ? ` ${c.blue}${c.bold}Email${c.reset} ${c.gray}(${remembered}):${c.reset} ` : ` ${c.blue}${c.bold}Email:${c.reset} `;
1175
+ email = await prompt(label) || remembered || "";
1176
+ }
1172
1177
  if (!email) process.exit(1);
1173
1178
  if (!await requestLoginCode(email)) {
1174
1179
  console.log(` ${c.red}Couldn't send a login code. Check the email address and try again.${c.reset}`);
@@ -5940,9 +5945,10 @@ login
5940
5945
  --json Machine-readable JSON output
5941
5946
 
5942
5947
  publish [path]
5943
- Publishes an already-built static site (no build is run). Looks for a build
5944
- output dir (dist, build, out, .output/public, .next/static) in [path] (default:
5945
- current dir). Requires an org login.
5948
+ Publishes an already-built static site (no build is run). Run it from your
5949
+ project ROOT \u2014 [path] is the project directory (default: current dir), NOT the
5950
+ build folder. The CLI finds the build output inside it (dist, build, out,
5951
+ .output/public, .next/static). Requires an org login.
5946
5952
  --slug <slug> Override the slug (default: ooda.json name, else folder name)
5947
5953
  --json Machine-readable JSON output
5948
5954
 
@@ -5968,14 +5974,14 @@ Local dev:
5968
5974
  stack instead of production.
5969
5975
 
5970
5976
  Examples:
5971
- ooda publish ./dist --slug my-app
5977
+ ooda publish --slug my-app # run from the project root (auto-detects the build dir)
5972
5978
  ooda sites list --json
5973
5979
  ooda sites access my-app --mode password --password hunter2
5974
5980
  ooda sites delete my-app --json`;
5975
5981
  }
5976
5982
 
5977
5983
  // src/cli/index.ts
5978
- var CLI_VERSION = "0.1.16";
5984
+ var CLI_VERSION = "0.1.17";
5979
5985
  function formatMutationError(result) {
5980
5986
  const parts = [];
5981
5987
  if (result.status !== void 0) parts.push(String(result.status));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oodarun/cli",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "Launch Claude Code on cloud dev environments",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",