personal memory agent
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'hopper-ev2d3q3k'

+16 -5
+16 -5
think/importer.py
··· 631 631 action="store_true", 632 632 help="Force re-import by deleting existing import directory", 633 633 ) 634 + parser.add_argument( 635 + "--auto", 636 + action="store_true", 637 + help="Auto-accept detected timestamp and proceed with import", 638 + ) 634 639 args, extra = setup_cli(parser, parse_known=True) 635 640 if extra and not args.timestamp: 636 641 args.timestamp = extra[0] ··· 638 643 # Track detection result for metadata 639 644 detection_result = None 640 645 641 - # If no timestamp provided, detect it and show instruction 646 + # If no timestamp provided, detect it 642 647 if not args.timestamp: 643 648 # Pass the original filename for better detection 644 649 detection_result = detect_created( ··· 651 656 ): 652 657 detected_timestamp = f"{detection_result['day']}_{detection_result['time']}" 653 658 display = _format_timestamp_display(detected_timestamp) 654 - print(f"Detected timestamp: {detected_timestamp} ({display})") 655 - print("\nRun:") 656 - print(f" sol import {args.media} --timestamp {detected_timestamp}") 657 - return 659 + if args.auto: 660 + print( 661 + f"Detected timestamp: {detected_timestamp} ({display}) — auto-importing" 662 + ) 663 + args.timestamp = detected_timestamp 664 + else: 665 + print(f"Detected timestamp: {detected_timestamp} ({display})") 666 + print("\nRun:") 667 + print(f" sol import {args.media} --timestamp {detected_timestamp}") 668 + return 658 669 else: 659 670 raise SystemExit( 660 671 "Could not detect timestamp. Please provide --timestamp YYYYMMDD_HHMMSS"