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.
- package/index.mjs +3 -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:
|
|
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 =
|
|
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
|