@akanjs/cli 2.2.2 → 2.2.3-rc.1
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/incrementalBuilder.proc.js +1 -3
- package/index.js +4 -10
- package/package.json +2 -2
|
@@ -225,7 +225,6 @@ class CloudApi {
|
|
|
225
225
|
});
|
|
226
226
|
}
|
|
227
227
|
async uploadEnv(devProjectId, file) {
|
|
228
|
-
await this.#ensureAccessTokenLive();
|
|
229
228
|
const formData = new FormData;
|
|
230
229
|
formData.append("devProjectId", devProjectId);
|
|
231
230
|
formData.append("file", file);
|
|
@@ -233,7 +232,6 @@ class CloudApi {
|
|
|
233
232
|
return data;
|
|
234
233
|
}
|
|
235
234
|
async downloadEnv(devProjectId) {
|
|
236
|
-
await this.#ensureAccessTokenLive();
|
|
237
235
|
const localPath = `${this.#workspace.workspaceRoot}/local/env.tar`;
|
|
238
236
|
await this.#api.getFile(`/downloadEnv/${devProjectId}`, localPath);
|
|
239
237
|
return localPath;
|
|
@@ -4662,7 +4660,7 @@ export default function GeneratedLayout({ children, params, searchParams }: Layo
|
|
|
4662
4660
|
gaTrackingId={userLayout.gaTrackingId ?? inheritedLayout.gaTrackingId}
|
|
4663
4661
|
layoutStyle={userLayout.layoutStyle ?? inheritedLayout.layoutStyle}
|
|
4664
4662
|
reconnect={userLayout.reconnect ?? inheritedLayout.reconnect ?? false}
|
|
4665
|
-
|
|
4663
|
+
allDictionary={process.env.AKAN_PUBLIC_RENDER_ENV === "ssr" ? allDictionary : undefined}
|
|
4666
4664
|
>
|
|
4667
4665
|
<UserLayout params={params} searchParams={searchParams}>{children}</UserLayout>
|
|
4668
4666
|
</System.Provider>
|
package/index.js
CHANGED
|
@@ -223,7 +223,6 @@ class CloudApi {
|
|
|
223
223
|
});
|
|
224
224
|
}
|
|
225
225
|
async uploadEnv(devProjectId, file) {
|
|
226
|
-
await this.#ensureAccessTokenLive();
|
|
227
226
|
const formData = new FormData;
|
|
228
227
|
formData.append("devProjectId", devProjectId);
|
|
229
228
|
formData.append("file", file);
|
|
@@ -231,7 +230,6 @@ class CloudApi {
|
|
|
231
230
|
return data;
|
|
232
231
|
}
|
|
233
232
|
async downloadEnv(devProjectId) {
|
|
234
|
-
await this.#ensureAccessTokenLive();
|
|
235
233
|
const localPath = `${this.#workspace.workspaceRoot}/local/env.tar`;
|
|
236
234
|
await this.#api.getFile(`/downloadEnv/${devProjectId}`, localPath);
|
|
237
235
|
return localPath;
|
|
@@ -4660,7 +4658,7 @@ export default function GeneratedLayout({ children, params, searchParams }: Layo
|
|
|
4660
4658
|
gaTrackingId={userLayout.gaTrackingId ?? inheritedLayout.gaTrackingId}
|
|
4661
4659
|
layoutStyle={userLayout.layoutStyle ?? inheritedLayout.layoutStyle}
|
|
4662
4660
|
reconnect={userLayout.reconnect ?? inheritedLayout.reconnect ?? false}
|
|
4663
|
-
|
|
4661
|
+
allDictionary={process.env.AKAN_PUBLIC_RENDER_ENV === "ssr" ? allDictionary : undefined}
|
|
4664
4662
|
>
|
|
4665
4663
|
<UserLayout params={params} searchParams={searchParams}>{children}</UserLayout>
|
|
4666
4664
|
</System.Provider>
|
|
@@ -11449,14 +11447,10 @@ ${chalk7.green("\u27A4")} Authentication Required`));
|
|
|
11449
11447
|
return normalized;
|
|
11450
11448
|
}
|
|
11451
11449
|
async downloadEnv(cloudApi2, workspace, workspaceId) {
|
|
11452
|
-
const envArchivePath = "local/env.tar";
|
|
11453
11450
|
await workspace.mkdir("local");
|
|
11454
|
-
await
|
|
11455
|
-
await
|
|
11456
|
-
await workspace.
|
|
11457
|
-
cwd: workspace.workspaceRoot
|
|
11458
|
-
});
|
|
11459
|
-
await workspace.remove(envArchivePath);
|
|
11451
|
+
const localPath = await cloudApi2.downloadEnv(workspaceId);
|
|
11452
|
+
await workspace.spawn("tar", ["-xf", localPath], { cwd: workspace.workspaceRoot });
|
|
11453
|
+
await workspace.remove(localPath);
|
|
11460
11454
|
}
|
|
11461
11455
|
async uploadEnv(cloudApi2, workspaceId, filePath) {
|
|
11462
11456
|
const file = new File([Bun.file(filePath)], path38.basename(filePath));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akanjs/cli",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.3-rc.1",
|
|
4
4
|
"sourceType": "module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@langchain/openai": "^1.4.6",
|
|
36
36
|
"@tailwindcss/node": "^4.3.0",
|
|
37
37
|
"@trapezedev/project": "^7.1.4",
|
|
38
|
-
"akanjs": "2.2.
|
|
38
|
+
"akanjs": "2.2.3-rc.1",
|
|
39
39
|
"chalk": "^5.6.2",
|
|
40
40
|
"commander": "^14.0.3",
|
|
41
41
|
"daisyui": "^5.5.20",
|