create-openthrottle 1.0.0 → 1.1.0

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/index.mjs +3 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -108,6 +108,7 @@ async function promptConfig(detected) {
108
108
  type: (prev) => prev ? 'number' : null,
109
109
  name: 'maxRounds', message: 'Max review rounds', initial: 3, min: 1, max: 10,
110
110
  },
111
+ { type: 'text', name: 'snapshotName', message: 'Daytona snapshot name', initial: 'openthrottle' },
111
112
  {
112
113
  type: 'select', name: 'snapshotMode', message: 'Snapshot source',
113
114
  choices: [
@@ -135,7 +136,7 @@ function generateConfig(config) {
135
136
  build: config.build || undefined,
136
137
  notifications: config.notifications === 'none' ? undefined : config.notifications,
137
138
  agent: config.agent,
138
- snapshot: `openthrottle`,
139
+ snapshot: config.snapshotName || 'openthrottle',
139
140
  post_bootstrap: [config.postBootstrap],
140
141
  mcp_servers: {},
141
142
  review: {
@@ -184,7 +185,7 @@ async function setupDaytona(config) {
184
185
  }
185
186
 
186
187
  const daytona = new Daytona();
187
- const snapshotName = `openthrottle`;
188
+ const snapshotName = config.snapshotName || 'openthrottle';
188
189
  const volumeName = `openthrottle-${config.name}`;
189
190
 
190
191
  // Create snapshot — from pre-built image or from Dockerfile
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-openthrottle",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "Set up openthrottle in any Node.js project — agent-agnostic, config-driven.",
5
5
  "type": "module",
6
6
  "bin": {