@oodarun/cli 0.1.5 → 0.1.7

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 +20 -3
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1804,6 +1804,8 @@ async function deployToolsViaRest(projectName, token, projectRoot, onProgress) {
1804
1804
  uploads.push(writeFile(`${projectRoot}/ooda-vite-plugin.mjs`, OODA_VITE_PLUGIN));
1805
1805
  uploads.push(writeFile("/tmp/ooda-patch-config.mjs", OODA_CONFIG_PATCH_SCRIPT));
1806
1806
  await Promise.all(uploads);
1807
+ await exec(`mkdir -p "${projectRoot}/node_modules" && ln -sf $(node -e "console.log(require.resolve('ws').replace(/\\/ws\\.js$/,''))" 2>/dev/null || echo /usr/local/lib/node_modules/ws) "${projectRoot}/node_modules/ws" 2>/dev/null`).catch(() => {
1808
+ });
1807
1809
  const patchResult = await exec(`node /tmp/ooda-patch-config.mjs "${projectRoot}" 2>&1`).catch((err) => {
1808
1810
  const msg = err instanceof Error ? err.message : String(err);
1809
1811
  log(`Config patch failed: ${msg}`);
@@ -2400,10 +2402,10 @@ This project is running on an ooda cloud container.
2400
2402
 
2401
2403
  ## Networking (CRITICAL \u2014 do not remove these settings)
2402
2404
  - The dev server MUST listen on \`0.0.0.0:8080\`
2403
- - The public URL is proxied through \`*.ooda.run\`
2405
+ - **The public URL for this project is: https://${projectName}.ooda.run**
2404
2406
  - Vite-based servers MUST have \`allowedHosts: true\` in their vite server config
2405
2407
  - **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.
2408
+ - **NEVER share internal sandbox URLs with the user.** Always use the public URL above.
2407
2409
 
2408
2410
  ## Framework: ${framework}
2409
2411
  ${framework === "astro" ? `
@@ -4683,6 +4685,21 @@ async function connectAndRunClaude(projectName, apiToken, claudeToken, projectUr
4683
4685
  const projectRoot = await findProjectRoot(projectName, apiToken);
4684
4686
  console.log(` ${c.green}${c.bold}\u2713${c.reset} Connected ${c.gray}${elapsed()}${c.reset}`);
4685
4687
  pushPhase("setup", "Writing config files");
4688
+ try {
4689
+ const memRaw = await client.exec("free -m 2>/dev/null || cat /proc/meminfo 2>/dev/null | head -3");
4690
+ const memLines = memRaw.trim().split("\n");
4691
+ const memLine = memLines.find((l) => l.startsWith("Mem:"));
4692
+ if (memLine) {
4693
+ const parts = memLine.split(/\s+/);
4694
+ const total = parts[1], used = parts[2], free = parts[3];
4695
+ console.log(` ${c.gray}RAM: ${used}MB used / ${total}MB total (${free}MB free)${c.reset}`);
4696
+ }
4697
+ const cpuCount = (await client.exec("nproc 2>/dev/null")).trim();
4698
+ if (cpuCount) {
4699
+ console.log(` ${c.gray}CPUs: ${cpuCount}${c.reset}`);
4700
+ }
4701
+ } catch {
4702
+ }
4686
4703
  const devServerStatus = await readDevServerStatus(client);
4687
4704
  if (devServerStatus) {
4688
4705
  printDisabledBanner(devServerStatus);
@@ -5326,7 +5343,7 @@ async function deployFromGitHubFlow(target, apiToken, claudeToken) {
5326
5343
  }
5327
5344
 
5328
5345
  // src/cli/index.ts
5329
- var CLI_VERSION = "0.1.5";
5346
+ var CLI_VERSION = "0.1.7";
5330
5347
  function formatMutationError(result) {
5331
5348
  const parts = [];
5332
5349
  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.7",
4
4
  "description": "Launch Claude Code on cloud dev environments",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",