genbox 1.0.61 → 1.0.63
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/api.js +6 -0
- package/dist/commands/destroy.js +1 -1
- package/dist/commands/list.js +0 -1
- package/dist/commands/rebuild.js +2 -0
- package/dist/index.js +0 -0
- package/package.json +13 -12
- package/dist/commands/scan.js +0 -1162
- package/dist/migration.js +0 -335
- package/dist/schema-v3.js +0 -48
package/dist/api.js
CHANGED
|
@@ -57,6 +57,12 @@ async function fetchApi(endpoint, options = {}) {
|
|
|
57
57
|
if (token) {
|
|
58
58
|
headers['Authorization'] = `Bearer ${token}`;
|
|
59
59
|
}
|
|
60
|
+
// DEBUG: Log request body for rebuild endpoints
|
|
61
|
+
if (process.env.GENBOX_DEBUG && endpoint.includes('/rebuild') && options.body) {
|
|
62
|
+
const bodyObj = JSON.parse(options.body);
|
|
63
|
+
console.log(chalk_1.default.dim(`[API DEBUG] POST ${endpoint}`));
|
|
64
|
+
console.log(chalk_1.default.dim(`[API DEBUG] repos: ${JSON.stringify(bodyObj.repos, null, 2)}`));
|
|
65
|
+
}
|
|
60
66
|
let response;
|
|
61
67
|
try {
|
|
62
68
|
response = await fetch(url, {
|
package/dist/commands/destroy.js
CHANGED
|
@@ -290,7 +290,7 @@ async function createPRForChanges(genbox) {
|
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
292
|
exports.destroyCommand = new commander_1.Command('destroy')
|
|
293
|
-
.
|
|
293
|
+
.alias('delete')
|
|
294
294
|
.description('Destroy one or more Genboxes')
|
|
295
295
|
.argument('[name]', 'Name of the Genbox to destroy (optional - will prompt if not provided)')
|
|
296
296
|
.option('-y, --yes', 'Skip confirmation')
|
package/dist/commands/list.js
CHANGED
|
@@ -9,7 +9,6 @@ const chalk_1 = __importDefault(require("chalk"));
|
|
|
9
9
|
const api_1 = require("../api");
|
|
10
10
|
const genbox_selector_1 = require("../genbox-selector");
|
|
11
11
|
exports.listCommand = new commander_1.Command('list')
|
|
12
|
-
.alias('ls')
|
|
13
12
|
.description('List genboxes (scoped to current project by default)')
|
|
14
13
|
.option('-a, --all', 'Show all genboxes across all projects')
|
|
15
14
|
.option('--terminated', 'Include terminated genboxes')
|
package/dist/commands/rebuild.js
CHANGED
|
@@ -253,6 +253,8 @@ function buildRebuildPayload(resolved, config, publicKey, privateKey, configLoad
|
|
|
253
253
|
// Build repos
|
|
254
254
|
const repos = {};
|
|
255
255
|
for (const repo of resolved.repos) {
|
|
256
|
+
// DEBUG: Log repo values
|
|
257
|
+
console.log(chalk_1.default.dim(` [DEBUG] Repo ${repo.name}: branch=${repo.branch}, newBranch=${repo.newBranch}, sourceBranch=${repo.sourceBranch}`));
|
|
256
258
|
repos[repo.name] = {
|
|
257
259
|
url: repo.url,
|
|
258
260
|
path: repo.path,
|
package/dist/index.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "genbox",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.63",
|
|
4
4
|
"description": "Genbox CLI - AI-Powered Development Environments",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -10,6 +10,17 @@
|
|
|
10
10
|
"files": [
|
|
11
11
|
"dist/**/*"
|
|
12
12
|
],
|
|
13
|
+
"scripts": {
|
|
14
|
+
"build": "tsc",
|
|
15
|
+
"start": "node dist/index.js",
|
|
16
|
+
"dev": "ts-node src/index.ts",
|
|
17
|
+
"prepublishOnly": "npm run build",
|
|
18
|
+
"publish:patch": "./scripts/publish.sh patch",
|
|
19
|
+
"publish:minor": "./scripts/publish.sh minor",
|
|
20
|
+
"publish:major": "./scripts/publish.sh major",
|
|
21
|
+
"release": "./scripts/publish.sh patch",
|
|
22
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
23
|
+
},
|
|
13
24
|
"keywords": [
|
|
14
25
|
"genbox",
|
|
15
26
|
"ai",
|
|
@@ -53,15 +64,5 @@
|
|
|
53
64
|
"inquirer": "^13.0.2",
|
|
54
65
|
"js-yaml": "^4.1.1",
|
|
55
66
|
"ora": "^9.0.0"
|
|
56
|
-
},
|
|
57
|
-
"scripts": {
|
|
58
|
-
"build": "tsc",
|
|
59
|
-
"start": "node dist/index.js",
|
|
60
|
-
"dev": "ts-node src/index.ts",
|
|
61
|
-
"publish:patch": "./scripts/publish.sh patch",
|
|
62
|
-
"publish:minor": "./scripts/publish.sh minor",
|
|
63
|
-
"publish:major": "./scripts/publish.sh major",
|
|
64
|
-
"release": "./scripts/publish.sh patch",
|
|
65
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
66
67
|
}
|
|
67
|
-
}
|
|
68
|
+
}
|