create-memory-soda 0.4.0 → 0.5.0

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 (3) hide show
  1. package/README.md +2 -2
  2. package/index.js +14 -2
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -31,8 +31,8 @@ cd memory-soda
31
31
  npm run dev
32
32
  ```
33
33
 
34
- Sign in to the dashboard (:3000) to create an API key. `npm run update` pulls
35
- and reinstalls later. Pass `--verbose` to stream clone/install output.
34
+ Sign in to the dashboard (:3000) to create an API key. The public repo is
35
+ remote `upstream`; `npm run update` pulls from it. Add your own repo as `origin`. Pass `--verbose` to stream clone/install output.
36
36
 
37
37
  ## Requirements
38
38
 
package/index.js CHANGED
@@ -494,11 +494,16 @@ async function main() {
494
494
  // ── 7. Install
495
495
  await runWithSpinner(`Cloning into ${chalk.bold(dirName)}`, 'git', [
496
496
  'clone',
497
- '--depth',
498
- '1',
499
497
  REPO,
500
498
  target,
501
499
  ]);
500
+ // The clone points at the public repo, which the user cannot push to.
501
+ // Name it `upstream` so `git pull upstream main` fetches fixes and `origin`
502
+ // stays free for the repo they deploy from.
503
+ execFileSync('git', ['remote', 'rename', 'origin', 'upstream'], {
504
+ cwd: target,
505
+ stdio: 'ignore',
506
+ });
502
507
  writeFileSync(
503
508
  resolve(target, '.env'),
504
509
  renderEnv({
@@ -569,6 +574,13 @@ async function main() {
569
574
  ].join('\n'),
570
575
  'Run',
571
576
  );
577
+ p.note(
578
+ [
579
+ 'Updates npm run update (git pull upstream main && npm install)',
580
+ 'Your repo git remote add origin <url> && git push -u origin main',
581
+ ].join('\n'),
582
+ 'Git',
583
+ );
572
584
  p.outro(
573
585
  `Thanks for trying Memory Soda — ${chalk.bold(basename(target))} is ready.`,
574
586
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-memory-soda",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "Scaffold a self-hosted Memory Soda instance — API, dashboard, and Postgres",
5
5
  "keywords": [
6
6
  "ai",