@ghl-ai/aw 0.1.47-beta.11 → 0.1.47-beta.13
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/commands/push.mjs +24 -0
- package/ecc.mjs +1 -1
- package/package.json +1 -1
package/commands/push.mjs
CHANGED
|
@@ -241,6 +241,29 @@ function isOnlyUntrackedAwSymlink(status, cloneDir) {
|
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
243
|
|
|
244
|
+
async function removeTrackedAwSymlink(cloneDir) {
|
|
245
|
+
try {
|
|
246
|
+
if (!lstatSync(join(cloneDir, '.aw')).isSymbolicLink()) return false;
|
|
247
|
+
} catch {
|
|
248
|
+
return false;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
try {
|
|
252
|
+
await execFile('git', ['ls-files', '--error-unmatch', '.aw'], {
|
|
253
|
+
cwd: cloneDir,
|
|
254
|
+
encoding: 'utf8',
|
|
255
|
+
});
|
|
256
|
+
} catch {
|
|
257
|
+
return false;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
await execFile('git', ['rm', '-f', '.aw'], {
|
|
261
|
+
cwd: cloneDir,
|
|
262
|
+
encoding: 'utf8',
|
|
263
|
+
});
|
|
264
|
+
return true;
|
|
265
|
+
}
|
|
266
|
+
|
|
244
267
|
async function getGitStatus(repoDir) {
|
|
245
268
|
const { stdout } = await execFile('git', ['status', '--porcelain'], {
|
|
246
269
|
cwd: repoDir,
|
|
@@ -331,6 +354,7 @@ async function ensureAwDocsRepoClone(home, publishConfig) {
|
|
|
331
354
|
encoding: 'utf8',
|
|
332
355
|
});
|
|
333
356
|
}
|
|
357
|
+
await removeTrackedAwSymlink(cloneDir);
|
|
334
358
|
return cloneDir;
|
|
335
359
|
}
|
|
336
360
|
|
package/ecc.mjs
CHANGED
|
@@ -12,7 +12,7 @@ import { applyStoredStartupPreferences } from "./startup.mjs";
|
|
|
12
12
|
|
|
13
13
|
const AW_ECC_REPO_SSH = "git@github.com:shreyansh-ghl/aw-ecc.git";
|
|
14
14
|
const AW_ECC_REPO_HTTPS = "https://github.com/shreyansh-ghl/aw-ecc.git";
|
|
15
|
-
export const AW_ECC_TAG = "v1.4.
|
|
15
|
+
export const AW_ECC_TAG = "v1.4.57";
|
|
16
16
|
|
|
17
17
|
const MARKETPLACE_NAME = "aw-marketplace";
|
|
18
18
|
const PLUGIN_KEY = `aw@${MARKETPLACE_NAME}`;
|