Skip to main content

Alignment Memory: minimal timeline store + CLI for aligned conversations

Project description

=========================

Quick start (PowerShell)

=========================

python -m alignment_memory.cli new

가장 최근 세션 ID (ALMEM_DIR 있으면 거기서, 없으면 로컬 기본 경로)

$root = (if ($env:ALMEM_DIR) { $env:ALMEM_DIR } else { ".\alignment_memory\data\sessions" }) $SID = (Get-ChildItem "$root*.json" -ErrorAction SilentlyContinue | Sort-Object LastWriteTime | Select-Object -Last 1).BaseName python -m alignment_memory.cli append --id $SID --speaker user --content "hello" python -m alignment_memory.cli search --id $SID --query hello python -m alignment_memory.cli summarize --id $SID --last-k 20 python -m alignment_memory.cli export --id $SID

=================

One-minute smoke

=================

python -m alignment_memory.cli smoke

=================

Data directory

=================

Persistent (new shells)

setx ALMEM_DIR "D:\ALIGNBEING\sessions"

Current shell only

$env:ALMEM_DIR = "D:\ALIGNBEING\sessions"

==========================

Optional convenience cmds

==========================

function alm { python -m alignment_memory.cli @args } function alm-last { $root = (if ($env:ALMEM_DIR) { $env:ALMEM_DIR } else { ".\alignment_memory\data\sessions" }) $last = Get-ChildItem "$root*.json" -ErrorAction SilentlyContinue | Sort-Object LastWriteTime | Select-Object -Last 1 if ($last) { $last.BaseName } }

==========================

PATH quick fixes (Windows)

==========================

Python Scripts (auto-detect)

$py=(python -c "import sys,os;print(os.path.join(os.path.dirname(sys.executable),'Scripts'))").Trim(); $u=[Environment]::GetEnvironmentVariable('Path','User'); if($u -notlike "$py"){[Environment]::SetEnvironmentVariable('Path',($u.TrimEnd(';')+';'+$py),'User')}; $env:Path=[Environment]::GetEnvironmentVariable('Path','User') + ';' + [Environment]::GetEnvironmentVariable('Path','Machine'); where alm; where twine

Python Scripts (Windows Store default)

$s="$env:LOCALAPPDATA\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\Scripts"; $u=[Environment]::GetEnvironmentVariable('Path','User'); if($u -notlike "$s"){[Environment]::SetEnvironmentVariable('Path',($u.TrimEnd(';')+';'+$s),'User')}; $env:Path=[Environment]::GetEnvironmentVariable('Path','User') + ';' + [Environment]::GetEnvironmentVariable('Path','Machine'); where alm; where twine

Git cmd

$s="C:\Program Files\Git\cmd"; $u=[Environment]::GetEnvironmentVariable('Path','User'); if($u -notlike "$s"){[Environment]::SetEnvironmentVariable('Path',($u.TrimEnd(';')+';'+$s),'User')}; $env:Path=[Environment]::GetEnvironmentVariable('Path','User') + ';' + [Environment]::GetEnvironmentVariable('Path','Machine'); git --version

==========================

ExecutionPolicy (session)

==========================

Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass -Force

=====================================

Local wheel reinstall / dev editable

=====================================

Reinstall latest local wheel

$whl=(Get-ChildItem dist\alignment_memory-*-py3-none-any.whl | Sort-Object LastWriteTime -Descending | Select-Object -First 1).FullName; python -m pip install --force-reinstall $whl

Editable install (development)

python -m pip install -e .

==========================

CLI smoke (both variants)

==========================

python -m alignment_memory.cli smoke alm smoke

==========================

Git line-endings (global)

==========================

git config --global core.autocrlf true; git config --global core.eol crlf

Install shim (Windows)

powershell -ExecutionPolicy Bypass -File .\tools\install_alm_shim.ps1

Set-Location C:\arka_project

@'
## Install shim (Windows)
```powershell
powershell -ExecutionPolicy Bypass -File .\tools\install_alm_shim.ps1
# Tip: data-dir 지정 실행
python -m alignment_memory.cli new --data-dir "D:\ALIGNBEING\sessions"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

alignment_memory-0.1.44.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

alignment_memory-0.1.44-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file alignment_memory-0.1.44.tar.gz.

File metadata

  • Download URL: alignment_memory-0.1.44.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for alignment_memory-0.1.44.tar.gz
Algorithm Hash digest
SHA256 a4f622699c5d944fe5015fc9b43c3567fa92c179e0341336f32e2a2c5c833f4c
MD5 d4eae4c39d4b31048f0fa3d70b8a186b
BLAKE2b-256 b3e095d65a1b06fe7bbf2705d02a95ea45c157a5b5c2585010e8cb869eb05b23

See more details on using hashes here.

Provenance

The following attestation bundles were made for alignment_memory-0.1.44.tar.gz:

Publisher: publish.yml on umumhahaha-sketch/ALIGNBEING

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file alignment_memory-0.1.44-py3-none-any.whl.

File metadata

File hashes

Hashes for alignment_memory-0.1.44-py3-none-any.whl
Algorithm Hash digest
SHA256 1a02aa75dc0235579c531ea1e0bb5f1515d2f7d2e15a5c2dcad0fc2bce320c79
MD5 9e1583922ca81176ee8527dc18d666d7
BLAKE2b-256 842aa5c516db14a521147d8738c875e750bae1a477d68f5d741ec3a9fd199d7e

See more details on using hashes here.

Provenance

The following attestation bundles were made for alignment_memory-0.1.44-py3-none-any.whl:

Publisher: publish.yml on umumhahaha-sketch/ALIGNBEING

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page