@wix/ditto-codegen-public 1.0.24 → 1.0.25
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/out.js +1 -31
- package/package.json +2 -2
package/dist/out.js
CHANGED
|
@@ -74903,35 +74903,6 @@ var require_main = __commonJS({
|
|
|
74903
74903
|
}
|
|
74904
74904
|
});
|
|
74905
74905
|
|
|
74906
|
-
// dist/read-access-token-from-dev-machine.js
|
|
74907
|
-
var require_read_access_token_from_dev_machine = __commonJS({
|
|
74908
|
-
"dist/read-access-token-from-dev-machine.js"(exports2) {
|
|
74909
|
-
"use strict";
|
|
74910
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
74911
|
-
exports2.readAccessTokenFromDevMachine = readAccessTokenFromDevMachine;
|
|
74912
|
-
var fs_1 = require("fs");
|
|
74913
|
-
function readAccessTokenFromDevMachine() {
|
|
74914
|
-
const authFilePath = "/root/.wix/auth/api-key.json";
|
|
74915
|
-
if (!(0, fs_1.existsSync)(authFilePath)) {
|
|
74916
|
-
console.warn(`\u26A0\uFE0F ${authFilePath} doesn't exist so can't use it to get access token`);
|
|
74917
|
-
return void 0;
|
|
74918
|
-
}
|
|
74919
|
-
try {
|
|
74920
|
-
const fileContent = (0, fs_1.readFileSync)(authFilePath, "utf8");
|
|
74921
|
-
const authData = JSON.parse(fileContent);
|
|
74922
|
-
if (typeof authData.token === "string") {
|
|
74923
|
-
return authData.token;
|
|
74924
|
-
}
|
|
74925
|
-
console.warn(`\u26A0\uFE0F ${authFilePath} doesn't contain the auth token property`);
|
|
74926
|
-
return void 0;
|
|
74927
|
-
} catch (error) {
|
|
74928
|
-
console.warn(`\u26A0\uFE0F ${authFilePath} isn't found or isn't parseable`, error);
|
|
74929
|
-
return void 0;
|
|
74930
|
-
}
|
|
74931
|
-
}
|
|
74932
|
-
}
|
|
74933
|
-
});
|
|
74934
|
-
|
|
74935
74906
|
// dist/context.js
|
|
74936
74907
|
var require_context = __commonJS({
|
|
74937
74908
|
"dist/context.js"(exports2) {
|
|
@@ -74944,7 +74915,6 @@ var require_context = __commonJS({
|
|
|
74944
74915
|
var CodeGenService_1 = require_CodeGenService();
|
|
74945
74916
|
var dotenv_1 = __importDefault2(require_main());
|
|
74946
74917
|
var path_1 = __importDefault2(require("path"));
|
|
74947
|
-
var read_access_token_from_dev_machine_1 = require_read_access_token_from_dev_machine();
|
|
74948
74918
|
dotenv_1.default.config({ path: path_1.default.join(__dirname, "../.env"), override: true });
|
|
74949
74919
|
var HistoryManager = class {
|
|
74950
74920
|
constructor() {
|
|
@@ -74969,7 +74939,7 @@ var require_context = __commonJS({
|
|
|
74969
74939
|
projectId: process.env.PROJECT_ID || "test",
|
|
74970
74940
|
apiKey: process.env.ANTHROPIC_API_KEY,
|
|
74971
74941
|
siteId: process.env.SITE_ID,
|
|
74972
|
-
accessToken:
|
|
74942
|
+
accessToken: process.env.ACCESS_TOKEN,
|
|
74973
74943
|
hasActiveJobs: () => {
|
|
74974
74944
|
return Object.keys(exports2.ctx.activeJobs).some((jobId) => exports2.ctx.activeJobs[jobId] === CodeGenService_1.TaskStatus.RUNNING);
|
|
74975
74945
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/ditto-codegen-public",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.25",
|
|
4
4
|
"description": "AI-powered Wix CLI app generator - standalone executable",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "node build.mjs",
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"@wix/ditto-codegen": "1.0.0",
|
|
25
25
|
"esbuild": "^0.25.9"
|
|
26
26
|
},
|
|
27
|
-
"falconPackageHash": "
|
|
27
|
+
"falconPackageHash": "b24ba6efefd8a795997f4dd6ac5911e420fa23dab8f81d70ad141f64"
|
|
28
28
|
}
|