create-walle 0.3.2 → 0.3.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-walle",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "Set up Wall-E — your personal digital twin",
5
5
  "bin": {
6
6
  "create-walle": "bin/create-walle.js"
@@ -159,13 +159,6 @@
159
159
  btn.disabled = false;
160
160
  return;
161
161
  }
162
- if (apiVal && !apiVal.startsWith('sk-ant-')) {
163
- errMsg.textContent = 'API key should start with sk-ant-';
164
- errMsg.style.display = 'inline';
165
- btn.disabled = false;
166
- return;
167
- }
168
-
169
162
  const body = { owner_name: ownerVal, api_key: apiVal };
170
163
 
171
164
  try {
@@ -313,11 +313,7 @@ function handleApi(req, res, url) {
313
313
  : '';
314
314
  // Gateway config (corporate Portkey/cybertron setups)
315
315
  const gw = data.gateway;
316
- if (apiKey && !/^sk-ant-/.test(apiKey)) {
317
- res.writeHead(400, { 'Content-Type': 'application/json' });
318
- res.end(JSON.stringify({ error: 'API key must start with sk-ant-' }));
319
- return;
320
- }
316
+ // Accept any non-empty key (Anthropic, Portkey, or other providers)
321
317
  const envPath = path.resolve(__dirname, '..', '.env');
322
318
  const lines = [];
323
319
  // Read existing .env, strip lines we're about to replace