Skip to content

feat: add text-paste import (ele paste + web UI + .txt files)#84

Merged
Alphanymous merged 1 commit into
masterfrom
feat/text-paste-import
Jul 4, 2026
Merged

feat: add text-paste import (ele paste + web UI + .txt files)#84
Alphanymous merged 1 commit into
masterfrom
feat/text-paste-import

Conversation

@Alphanymous

Copy link
Copy Markdown
Contributor

Summary

  • ele paste CLI command — paste memories as a text argument, pipe via stdin, or interactive multi-line input. Supports --source to label the origin.
  • from_plaintext() adapter in normalize.py — splits on double-newline (paragraph blocks) or falls back to one memory per line. Reuses _coerce_memory_entries() for consistency.
  • Web UI textarea on the Import page — paste text, pick a source from the dropdown, click "Import from text". Result shown in the existing import-result area.
  • .txt file supportele import memories.txt now works through normalize_file()
  • i18npaste_prompt and paste_empty strings in all 7 languages

Closes the "Text-paste import" roadmap item from README and website.

Test plan

  • 13 new tests in tests/test_paste.py — all pass
  • Full suite: 305 tests pass (292 existing + 13 new)
  • Web API verified: POST /api/import with {text: ...} creates memories with correct source/type/source_ref
  • Web UI elements verified in DOM: textarea, source dropdown (7 options), import button
  • Manual: ele paste "I use Rust" creates one memory
  • Manual: echo "fact one\nfact two" | ele paste creates two memories
  • Manual: Web UI → Import → paste text → Import from text → memories appear in Browse

🤖 Generated with Claude Code

… support

ChatGPT, Claude, and Gemini now use copy-paste memory exports instead of
file-based ones. This adds a clean path for that plain text:

- `ele paste` CLI command (text arg, stdin pipe, or interactive)
- `from_plaintext()` adapter in normalize.py (splits on paragraphs or lines)
- Web UI textarea on the Import page with source selector
- `ele import file.txt` support via normalize_file()
- 13 new tests (305 total)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Alphanymous Alphanymous merged commit 77c8a25 into master Jul 4, 2026
11 checks passed
@Alphanymous Alphanymous deleted the feat/text-paste-import branch July 4, 2026 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant