@c4t4/heyamigo 0.1.2 → 0.1.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.
Files changed (2) hide show
  1. package/dist/cli/setup.js +5 -46
  2. package/package.json +1 -1
package/dist/cli/setup.js CHANGED
@@ -378,51 +378,6 @@ export async function runSetup() {
378
378
  run('mkdir -p storage/memory/buckets storage/memory/persons storage/memory/chats');
379
379
  p.log.success('Storage directories ready');
380
380
  // ── Import existing knowledge ────────────────────────────────
381
- p.log.info('The bot has a long-term memory system organized into buckets (projects, people, topics). ' +
382
- 'If you have an existing knowledge folder (notes, project files, docs), ' +
383
- 'you can import it now. Claude will read the folder and distill it into ' +
384
- 'organized memory buckets the bot can reference during conversations.');
385
- const wantImport = await p.confirm({
386
- message: 'Import an existing knowledge folder?',
387
- initialValue: false,
388
- });
389
- if (!p.isCancel(wantImport) && wantImport) {
390
- const importPath = await p.text({
391
- message: 'Path to the folder',
392
- placeholder: '/home/user/my-notes',
393
- validate: (v) => {
394
- if (!v || !v.trim())
395
- return 'Required';
396
- if (!existsSync(v.trim()))
397
- return 'Folder not found';
398
- return undefined;
399
- },
400
- });
401
- if (!p.isCancel(importPath)) {
402
- p.log.info('You can customize what gets imported by editing config/import-instructions.md before running. ' +
403
- 'See config/import-instructions.HOWTO.md for details.');
404
- const importNow = await p.confirm({
405
- message: 'Run import now? (can take a few minutes)',
406
- initialValue: true,
407
- });
408
- if (!p.isCancel(importNow) && importNow) {
409
- const si = p.spinner();
410
- si.start('Importing knowledge (this may take several minutes)...');
411
- try {
412
- const { runImport } = await import('../memory/importer.js');
413
- await runImport(importPath);
414
- si.stop('Knowledge imported');
415
- }
416
- catch (err) {
417
- si.stop('Import failed');
418
- p.log.warning(`Import error: ${err.message}\nYou can retry later: npx @c4t4/heyamigo import ${importPath}`);
419
- }
420
- }
421
- else {
422
- p.log.info(`Run later: npx @c4t4/heyamigo import ${importPath}`);
423
- }
424
- }
425
- }
426
381
  // ── WhatsApp pairing ──────────────────────────────────────────
427
382
  const credsPath = resolve(cwd, 'storage/auth/creds.json');
428
383
  let shouldPair = false;
@@ -688,9 +643,13 @@ export async function runSetup() {
688
643
  'Check logs:',
689
644
  ' npx @c4t4/heyamigo logs',
690
645
  '',
646
+ 'Import existing knowledge:',
647
+ ' Got notes, docs, or an old AI workspace? Import it:',
648
+ ' npx @c4t4/heyamigo import /path/to/folder',
649
+ ' Claude reads everything and organizes it into memory.',
650
+ '',
691
651
  'Other commands:',
692
652
  ' npx @c4t4/heyamigo stop / restart / status',
693
- ' npx @c4t4/heyamigo import <path>',
694
653
  '',
695
654
  'Configuration:',
696
655
  ' config/config.json — triggers, model, timeouts',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c4t4/heyamigo",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "WhatsApp AI bot powered by Claude with long-term memory, browser control, and role-based access",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",