cortex-sync 0.4.4 → 0.4.5

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.
Files changed (2) hide show
  1. package/dist/cli.js +4 -0
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1661,6 +1661,7 @@ Cloning ${repoUrl} \u2192 ~/.cortex/team/`);
1661
1661
 
1662
1662
  // src/commands/team/push.ts
1663
1663
  import { writeFile as writeFile13, mkdir as mkdir12 } from "fs/promises";
1664
+ import { randomUUID as randomUUID2 } from "crypto";
1664
1665
  import { join as join18 } from "path";
1665
1666
  import { password as password6 } from "@inquirer/prompts";
1666
1667
  async function teamPushCommand() {
@@ -1690,6 +1691,9 @@ async function teamPushCommand() {
1690
1691
  "utf-8"
1691
1692
  );
1692
1693
  if (shareSession) {
1694
+ if (!identifyProject(process.cwd())) {
1695
+ await writeProjectConfig({ projectId: randomUUID2() });
1696
+ }
1693
1697
  let derived;
1694
1698
  if (encryptSessions) {
1695
1699
  const teamPassphrase = await password6({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cortex-sync",
3
- "version": "0.4.4",
3
+ "version": "0.4.5",
4
4
  "description": "Sync Claude Code sessions between machines with automatic path remapping and skill conversion",
5
5
  "license": "AGPL-3.0",
6
6
  "type": "module",