@oodarun/cli 0.1.5 → 0.1.6

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/cli.js +18 -3
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -2400,10 +2400,10 @@ This project is running on an ooda cloud container.
2400
2400
 
2401
2401
  ## Networking (CRITICAL \u2014 do not remove these settings)
2402
2402
  - The dev server MUST listen on \`0.0.0.0:8080\`
2403
- - The public URL is proxied through \`*.ooda.run\`
2403
+ - **The public URL for this project is: https://${projectName}.ooda.run**
2404
2404
  - Vite-based servers MUST have \`allowedHosts: true\` in their vite server config
2405
2405
  - **WARNING**: If you edit the framework config file (astro.config, vite.config, next.config), you MUST preserve all networking settings listed above. Removing \`allowedHosts: true\` will break the site.
2406
- - **NEVER share internal sandbox URLs with the user.** Always use ooda.run URLs instead.
2406
+ - **NEVER share internal sandbox URLs with the user.** Always use the public URL above.
2407
2407
 
2408
2408
  ## Framework: ${framework}
2409
2409
  ${framework === "astro" ? `
@@ -4683,6 +4683,21 @@ async function connectAndRunClaude(projectName, apiToken, claudeToken, projectUr
4683
4683
  const projectRoot = await findProjectRoot(projectName, apiToken);
4684
4684
  console.log(` ${c.green}${c.bold}\u2713${c.reset} Connected ${c.gray}${elapsed()}${c.reset}`);
4685
4685
  pushPhase("setup", "Writing config files");
4686
+ try {
4687
+ const memRaw = await client.exec("free -m 2>/dev/null || cat /proc/meminfo 2>/dev/null | head -3");
4688
+ const memLines = memRaw.trim().split("\n");
4689
+ const memLine = memLines.find((l) => l.startsWith("Mem:"));
4690
+ if (memLine) {
4691
+ const parts = memLine.split(/\s+/);
4692
+ const total = parts[1], used = parts[2], free = parts[3];
4693
+ console.log(` ${c.gray}RAM: ${used}MB used / ${total}MB total (${free}MB free)${c.reset}`);
4694
+ }
4695
+ const cpuCount = (await client.exec("nproc 2>/dev/null")).trim();
4696
+ if (cpuCount) {
4697
+ console.log(` ${c.gray}CPUs: ${cpuCount}${c.reset}`);
4698
+ }
4699
+ } catch {
4700
+ }
4686
4701
  const devServerStatus = await readDevServerStatus(client);
4687
4702
  if (devServerStatus) {
4688
4703
  printDisabledBanner(devServerStatus);
@@ -5326,7 +5341,7 @@ async function deployFromGitHubFlow(target, apiToken, claudeToken) {
5326
5341
  }
5327
5342
 
5328
5343
  // src/cli/index.ts
5329
- var CLI_VERSION = "0.1.5";
5344
+ var CLI_VERSION = "0.1.6";
5330
5345
  function formatMutationError(result) {
5331
5346
  const parts = [];
5332
5347
  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.5",
3
+ "version": "0.1.6",
4
4
  "description": "Launch Claude Code on cloud dev environments",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",