|
|
před 22 hodinami | |
|---|---|---|
| app | před 22 hodinami | |
| core | před 22 hodinami | |
| db/migrations | před 23 hodinami | |
| public | před 23 hodinami | |
| scripts | před 23 hodinami | |
| tests | před 22 hodinami | |
| .gitattributes | před 1 dnem | |
| .gitignore | před 23 hodinami | |
| AGENTS.md | před 22 hodinami | |
| CLAUDE.md | před 1 dnem | |
| README.md | před 22 hodinami | |
| Universal-Agent-Memory-Specification.md | před 1 dnem | |
| docker-compose.yml | před 23 hodinami | |
A clean starting point for Classic ASP applications on AxonASP, a Go-based Classic ASP / VBScript 5.8 runtime. It ships a small MVC framework (router, controllers, views, flash messages, CSRF helper), a SQLite data layer on the native G3DB library, migrations, and code generators for tables, repositories, HTML controllers and JSON APIs.
No sample modules are included: the first table you add is yours.
Requires Docker.
docker compose up -d
Open http://localhost:8801. The compose file mounts this folder into the container and serves public/.
After editing ASP code, restart the container so cached scripts are recompiled: docker restart axonasp.
public/ web root: Default.asp (front controller + routes), web.config (rewrite, settings)
core/ framework: mvc.asp, router, DAL (G3DB), migrations, JsonLite, helpers, lib.*.asp
app/
controllers/ <Name>Controller.asp (HTML), Api<Name>Controller.asp (JSON), autoload_controllers.asp
models/ POBO_<Table>.asp, <Table>Repository.asp (generated), autoload_models.asp
views/ <Name>/ views; shared/ layout (header, footer); Home, Error, Docs
db/
migrations/ YYYYMMDDHHMMSS_name.asp (Migration_Up / Migration_Down)
app.sqlite created by the first migration run (git-ignored)
scripts/ gen.cmd (generators), migrate.cmd, templates/
docker-compose.yml the AxonASP container (mounts this folder at /opt/axonasp/site)
All commands run from this folder on Windows and execute inside the container through the AxonASP CLI. Run gen.cmd controller from PowerShell or cmd (not Git Bash).
scripts\gen.cmd migration create_things_table, edit Migration_Up / Migration_Down, then scripts\migrate.cmd up (also status, down).scripts\gen.cmd api /table:Things /pk:Id. This writes the model and repository, ApiThingsController.asp, wires the includes, controller whitelist and routes (/api/things), and creates public/api/things.openapi.json and api-tests/things.http.scripts\gen.cmd controller Things Index "Show(id)" NewForm Create "Edit(id)" "Update(id)" "Delete(id)" creates a stub controller and wires it; fill in the actions and add views under app/views/Things/.docker restart axonasp, then try it.The Swagger UI at http://localhost:8801/api/docs lists every generated API spec and lets you call the endpoints.
//api/docsImplements Universal-Agent-Memory-Specification.md on top of this starter. API base /api/v1, spec in public/api/memory-v1.openapi.json (Swagger at /api/docs). Auth is Authorization: Bearer <key>; the tenant comes from the key. A caller without permission on a namespace gets 404.
Done
core/lib.Search.asp), documents/chunks/jobs, lexical search over chunks (FTS5), POST /recall over memories, verification (POST /memories/:id/verifications), content_trust labelling.POST /context assembles a task briefing under a token budget: constraints loaded by scope (required; 422 context_budget_exceeded when they do not fit), working state from a session checkpoint, preferences, disputed items as conflicts, decisions/lessons/knowledge and reference passages by hybrid match, optional unverified items; deduplicated and trust-labelled.nomic-embed-text), vectors in Qdrant, both as containers in docker-compose.yml. /recall, /search and /context fuse lexical and vector ranks (reciprocal rank fusion) and fall back to lexical with a warning when the provider is off or down. SQLite stays the source of truth: embedding_index tracks model, dimensions, revision and status per memory/chunk, writes index after commit (never failing the write), and scripts\embed.cmd status|run|reindex catches up or rebuilds. Common English stopwords are dropped from lexical queries. The embed-worker container retries pending/failed items every 30 seconds; GET /health/ready reports degraded (still 200) and the backlog when the provider or vector store is down.POST /sessions/:id/events) and propose knowledge with evidence (POST /learn: a new memory, or a new revision of target_memory_id at base_revision). Another principal with verify reviews it (POST /candidates/:id/review); the author cannot approve its own candidate without admin. Accepting creates the memory (an identical active one is reused), or revises the target if it has not changed meanwhile (else 409 stale_candidate), copies the evidence with pinned target revisions and, with "verify": true, records a verification. GET /memories/:id/sources shows evidence and verifications per revision (evidence the caller cannot read is shown as available: false, without its id). Recall, search and context return a query_id and record the returned results and revisions (the query text is kept only as a hash); POST /feedback rates one result (useful, not_useful, incorrect, harmful). Forgetting a memory removes its evidence, verifications, feedback and telemetry rows.Known limitation
unsupported_character: the pinned AxonASP build cannot hold them (see AGENTS.md section 8).Tooling
scripts\provision.cmd (tenant, principal, key, namespace, grant, revoke, list, purge); see AGENTS.md section 1. Quote permission lists in PowerShell: '"read,write"'.scripts\export-memories.ps1 / scripts/export-memories.sh: dump every readable memory (set AMK_KEY).scripts\embed.cmd status|run|reindex: semantic index status, catch up on pending/failed items, or rebuild (after changing the model).bash tests/phase1-api.sh (79 checks), bash tests/phase2-api.sh (45), bash tests/phase3-context.sh (60), bash tests/phase3-semantic.sh (30; stops and restarts the ollama container once), bash tests/phase3-learning.sh (85). Each creates and purges its own tenants.Next (not started)
provision.cmd).public/web.config: ConnectionString (sqlite:/opt/axonasp/site/db/app.sqlite), environment and UI settings, and the Embedding* / VectorStoreUrl settings (EmbeddingProvider none turns semantic retrieval off). Settings are cached per process: docker restart axonasp after editing.docker compose up -d, then docker exec ollama ollama pull nomic-embed-text once (the model lives in the ollama-models volume). The ollama image is about 6 GB./opt/axonasp/config/axonasp.toml (inside the container): server settings; any key can be overridden with an environment variable (see docker-compose.yml).See AGENTS.md at the repository root: language rules, AxonASP quirks verified in this project, security checklist and working rules.
Powered by TurnKey Linux.