@vercel/dream 0.2.8 → 0.2.10

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/dream.js +13 -3
  2. package/package.json +1 -1
package/dist/dream.js CHANGED
@@ -125,9 +125,9 @@ Without this signal, the system keeps launching new iterations.`;
125
125
  var DEFAULT_TIMEOUT = 36e5;
126
126
  var DEFAULT_MAX_ITERATIONS = 100;
127
127
  var DEFAULT_MODEL = "vercel/anthropic/claude-opus-4.6";
128
+ var DREAM_VERSION = readDreamVersion();
128
129
  var DEFAULT_BOOTSTRAP_SKILL_REPOS = [
129
- { repo: "vercel-labs/agent-browser", skills: ["agent-browser"] },
130
- { repo: "vercel-labs/agent-skills", skills: ["react-best-practices"] }
130
+ { repo: "vercel-labs/agent-browser", skills: ["agent-browser"] }
131
131
  ];
132
132
  var dim = (s) => `\x1B[2m${s}\x1B[22m`;
133
133
  var bold = (s) => `\x1B[1m${s}\x1B[22m`;
@@ -178,7 +178,7 @@ function printSessionDim(message) {
178
178
  function printSessionError(message) {
179
179
  printSession(`${red("\u2717")} ${message}`);
180
180
  }
181
- program.name("dream").description("Run OpenCode in a loop until specs are complete").version("0.1.0").option("-d, --dir <directory>", "Working directory", ".");
181
+ program.name("dream").description("Run OpenCode in a loop until specs are complete").version(DREAM_VERSION).option("-d, --dir <directory>", "Working directory", ".");
182
182
  program.command("init").description("Initialize a new dream project").action(() => {
183
183
  const workDir = path.resolve(program.opts().dir);
184
184
  printTitle("init");
@@ -281,6 +281,7 @@ ${INDENT_MAIN}${red("\u2717")} specs/ not found in ${workDir}
281
281
 
282
282
  ${projectPrompt.content}` : SYSTEM_PROMPT;
283
283
  printTitle(title);
284
+ printKV("version", DREAM_VERSION);
284
285
  printKV("dir", workDir);
285
286
  printKV("model", model || dim("default"));
286
287
  printKV("timeout", formatTime(timeout));
@@ -611,6 +612,15 @@ function packageRootFromScript() {
611
612
  const scriptPath = fileURLToPath(import.meta.url);
612
613
  return path.resolve(path.dirname(scriptPath), "..");
613
614
  }
615
+ function readDreamVersion() {
616
+ try {
617
+ const packageJsonPath = path.join(packageRootFromScript(), "package.json");
618
+ const parsed = JSON.parse(fs.readFileSync(packageJsonPath, "utf8"));
619
+ return parsed.version ?? "0.0.0";
620
+ } catch {
621
+ return "0.0.0";
622
+ }
623
+ }
614
624
  function prependLocalBinsToPath(workDir) {
615
625
  const packageRoot = packageRootFromScript();
616
626
  const binPaths = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/dream",
3
- "version": "0.2.8",
3
+ "version": "0.2.10",
4
4
  "description": "A CLI that runs OpenCode in a loop until specs are complete",
5
5
  "type": "module",
6
6
  "bin": {