create-tangle-sandbox 0.1.2 → 0.1.4

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.mjs CHANGED
@@ -41,18 +41,14 @@ async function selectTemplate() {
41
41
  }
42
42
  function scaffoldProject(projectDir, template, projectName) {
43
43
  const templateDir = join(TEMPLATES_DIR, template);
44
- if (!existsSync(templateDir)) {
45
- console.error(`Template '${template}' not found at ${templateDir}`);
46
- process.exit(1);
47
- }
48
44
  mkdirSync(projectDir, { recursive: true });
49
45
  cpSync(templateDir, projectDir, { recursive: true });
50
46
  const pkgPath = join(projectDir, "package.json");
51
- if (existsSync(pkgPath)) {
52
- const pkg = JSON.parse(readFileSync(pkgPath, "utf-8"));
53
- pkg.name = projectName;
54
- writeFileSync(pkgPath, `${JSON.stringify(pkg, null, 2)}\n`);
55
- }
47
+ const pkg = JSON.parse(readFileSync(pkgPath, "utf-8"));
48
+ const ts = JSON.parse(readFileSync(join(TEMPLATES_DIR, "../package.json"), "utf-8")).devDependencies.typescript;
49
+ pkg.name = projectName;
50
+ pkg.devDependencies.typescript = ts === "catalog:" ? "latest" : ts;
51
+ writeFileSync(pkgPath, `${JSON.stringify(pkg, null, 2)}\n`);
56
52
  console.log(`\nProject created at ${projectDir}\n`);
57
53
  console.log("Next steps:\n");
58
54
  console.log(` cd ${projectName}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-tangle-sandbox",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Scaffold a new Tangle Sandbox project",
5
5
  "type": "module",
6
6
  "bin": {
@@ -20,8 +20,8 @@
20
20
  "typescript": "^6.0.3"
21
21
  },
22
22
  "tangleRelease": {
23
- "sourceSha": "72e7f17f94d9512ecaca0d9b938c582954362a4a",
24
- "mergedAt": "2026-11-05T14:42:53-08:00"
23
+ "sourceSha": "900af5714a1b75658ff2607e421e77bc49d4e1e8",
24
+ "mergedAt": "2026-11-08T23:19:49-08:00"
25
25
  },
26
26
  "scripts": {
27
27
  "build": "tsdown src/index.ts --format esm --dts",
@@ -11,7 +11,6 @@
11
11
  },
12
12
  "devDependencies": {
13
13
  "@types/node": "^22.0.0",
14
- "tsx": "^4.19.0",
15
- "typescript": "^6.0.2"
14
+ "tsx": "^4.19.0"
16
15
  }
17
16
  }
@@ -24,10 +24,8 @@ async function runTask(task: string) {
24
24
 
25
25
  console.log(`Sandbox ready: ${sandbox.id}`);
26
26
 
27
- // Send a prompt to the agent and stream the response.
28
- for await (const event of sandbox.streamPrompt(task, {
29
- model: "anthropic/claude-sonnet-4-20250514",
30
- })) {
27
+ // Send a prompt to the agent and stream the response on the managed default model.
28
+ for await (const event of sandbox.streamPrompt(task)) {
31
29
  if (event.type === "message.part.updated") {
32
30
  const part = event.data.part as { type?: string };
33
31
  if (part?.type === "text") {
@@ -11,7 +11,6 @@
11
11
  },
12
12
  "devDependencies": {
13
13
  "@types/node": "^22.0.0",
14
- "tsx": "^4.19.0",
15
- "typescript": "^6.0.2"
14
+ "tsx": "^4.19.0"
16
15
  }
17
16
  }
@@ -11,7 +11,6 @@
11
11
  },
12
12
  "devDependencies": {
13
13
  "@types/node": "^22.0.0",
14
- "tsx": "^4.19.0",
15
- "typescript": "^6.0.2"
14
+ "tsx": "^4.19.0"
16
15
  }
17
16
  }