memoir-cli 1.4.2 → 1.4.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "memoir-cli",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "description": "Your AI remembers everything. Sync it everywhere.",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -57,16 +57,23 @@ export async function initCommand() {
57
57
  }]);
58
58
  config.localPath = localPath;
59
59
  } else {
60
- const { username } = await inquirer.prompt([{
61
- type: 'input',
62
- name: 'username',
63
- message: 'GitHub username:',
64
- default: gitUser || undefined,
65
- validate: (input) => input.trim() ? true : 'Required'
66
- }]);
60
+ const { username, repo } = await inquirer.prompt([
61
+ {
62
+ type: 'input',
63
+ name: 'username',
64
+ message: 'GitHub username:',
65
+ validate: (input) => input.trim() ? true : 'Required'
66
+ },
67
+ {
68
+ type: 'input',
69
+ name: 'repo',
70
+ message: 'Repo name:',
71
+ default: 'ai-memory',
72
+ validate: (input) => input.trim() ? true : 'Required'
73
+ }
74
+ ]);
67
75
 
68
- config.gitRepo = `https://github.com/${username.trim()}/ai-memory.git`;
69
- console.log(chalk.gray(` Using repo: ${config.gitRepo}`));
76
+ config.gitRepo = `https://github.com/${username.trim()}/${repo.trim()}.git`;
70
77
  }
71
78
 
72
79
  await saveConfig(config);