@kevisual/cnb 0.0.20 → 0.0.21
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/opencode.js +4 -4
- package/dist/routes.js +4 -4
- package/package.json +1 -1
- package/src/cnb-core.ts +2 -2
- package/src/workspace/index.ts +2 -0
package/dist/opencode.js
CHANGED
|
@@ -21444,7 +21444,7 @@ class InitEnv {
|
|
|
21444
21444
|
}
|
|
21445
21445
|
InitEnv.init();
|
|
21446
21446
|
|
|
21447
|
-
// node_modules/.pnpm/@kevisual+use-config@1.0.30_dotenv@17.2.
|
|
21447
|
+
// node_modules/.pnpm/@kevisual+use-config@1.0.30_dotenv@17.2.3/node_modules/@kevisual/use-config/dist/app.js
|
|
21448
21448
|
import { createRequire as createRequire2 } from "node:module";
|
|
21449
21449
|
import fs from "node:fs";
|
|
21450
21450
|
import path from "node:path";
|
|
@@ -22567,7 +22567,6 @@ class CNBCore {
|
|
|
22567
22567
|
}
|
|
22568
22568
|
delete _headers.Authorization;
|
|
22569
22569
|
}
|
|
22570
|
-
console.log("Request URL:", url2, data, _headers);
|
|
22571
22570
|
const response = await fetch(url2 || "", {
|
|
22572
22571
|
method,
|
|
22573
22572
|
headers: _headers,
|
|
@@ -22602,7 +22601,6 @@ class CNBCore {
|
|
|
22602
22601
|
if (url2 && url2.startsWith("http")) {
|
|
22603
22602
|
return url2;
|
|
22604
22603
|
}
|
|
22605
|
-
console.log("url", url2, this.baseURL);
|
|
22606
22604
|
if (url2.startsWith("/")) {
|
|
22607
22605
|
return this.baseURL + url2;
|
|
22608
22606
|
}
|
|
@@ -22678,6 +22676,8 @@ class Workspace extends CNBCore {
|
|
|
22678
22676
|
const data = {};
|
|
22679
22677
|
if (params.branch) {
|
|
22680
22678
|
data.branch = params.branch;
|
|
22679
|
+
} else {
|
|
22680
|
+
data.branch = "main";
|
|
22681
22681
|
}
|
|
22682
22682
|
if (params.ref) {
|
|
22683
22683
|
data.ref = params.ref;
|
|
@@ -36595,7 +36595,7 @@ config3(en_default());
|
|
|
36595
36595
|
// node_modules/.pnpm/zod@4.3.6/node_modules/zod/index.js
|
|
36596
36596
|
var zod_default = exports_external;
|
|
36597
36597
|
|
|
36598
|
-
// node_modules/.pnpm/@opencode-ai+plugin@1.1.
|
|
36598
|
+
// node_modules/.pnpm/@opencode-ai+plugin@1.1.51/node_modules/@opencode-ai/plugin/dist/tool.js
|
|
36599
36599
|
function tool2(input) {
|
|
36600
36600
|
return input;
|
|
36601
36601
|
}
|
package/dist/routes.js
CHANGED
|
@@ -21444,7 +21444,7 @@ class InitEnv {
|
|
|
21444
21444
|
}
|
|
21445
21445
|
InitEnv.init();
|
|
21446
21446
|
|
|
21447
|
-
// node_modules/.pnpm/@kevisual+use-config@1.0.30_dotenv@17.2.
|
|
21447
|
+
// node_modules/.pnpm/@kevisual+use-config@1.0.30_dotenv@17.2.3/node_modules/@kevisual/use-config/dist/app.js
|
|
21448
21448
|
import { createRequire as createRequire2 } from "node:module";
|
|
21449
21449
|
import fs from "node:fs";
|
|
21450
21450
|
import path from "node:path";
|
|
@@ -22567,7 +22567,6 @@ class CNBCore {
|
|
|
22567
22567
|
}
|
|
22568
22568
|
delete _headers.Authorization;
|
|
22569
22569
|
}
|
|
22570
|
-
console.log("Request URL:", url2, data, _headers);
|
|
22571
22570
|
const response = await fetch(url2 || "", {
|
|
22572
22571
|
method,
|
|
22573
22572
|
headers: _headers,
|
|
@@ -22602,7 +22601,6 @@ class CNBCore {
|
|
|
22602
22601
|
if (url2 && url2.startsWith("http")) {
|
|
22603
22602
|
return url2;
|
|
22604
22603
|
}
|
|
22605
|
-
console.log("url", url2, this.baseURL);
|
|
22606
22604
|
if (url2.startsWith("/")) {
|
|
22607
22605
|
return this.baseURL + url2;
|
|
22608
22606
|
}
|
|
@@ -22678,6 +22676,8 @@ class Workspace extends CNBCore {
|
|
|
22678
22676
|
const data = {};
|
|
22679
22677
|
if (params.branch) {
|
|
22680
22678
|
data.branch = params.branch;
|
|
22679
|
+
} else {
|
|
22680
|
+
data.branch = "main";
|
|
22681
22681
|
}
|
|
22682
22682
|
if (params.ref) {
|
|
22683
22683
|
data.ref = params.ref;
|
|
@@ -36595,7 +36595,7 @@ config3(en_default());
|
|
|
36595
36595
|
// node_modules/.pnpm/zod@4.3.6/node_modules/zod/index.js
|
|
36596
36596
|
var zod_default = exports_external;
|
|
36597
36597
|
|
|
36598
|
-
// node_modules/.pnpm/@opencode-ai+plugin@1.1.
|
|
36598
|
+
// node_modules/.pnpm/@opencode-ai+plugin@1.1.51/node_modules/@opencode-ai/plugin/dist/tool.js
|
|
36599
36599
|
function tool2(input) {
|
|
36600
36600
|
return input;
|
|
36601
36601
|
}
|
package/package.json
CHANGED
package/src/cnb-core.ts
CHANGED
|
@@ -79,7 +79,7 @@ export class CNBCore {
|
|
|
79
79
|
}
|
|
80
80
|
delete _headers.Authorization;
|
|
81
81
|
}
|
|
82
|
-
console.log('Request URL:', url, data, _headers);
|
|
82
|
+
// console.log('Request URL:', url, data, _headers);
|
|
83
83
|
const response = await fetch(url || '', {
|
|
84
84
|
method,
|
|
85
85
|
headers: _headers,
|
|
@@ -115,7 +115,7 @@ export class CNBCore {
|
|
|
115
115
|
if (url && url.startsWith('http')) {
|
|
116
116
|
return url;
|
|
117
117
|
}
|
|
118
|
-
console.log('url', url, this.baseURL)
|
|
118
|
+
// console.log('url', url, this.baseURL)
|
|
119
119
|
if (url.startsWith('/')) {
|
|
120
120
|
return this.baseURL + url;
|
|
121
121
|
}
|