A small helpdesk system: an office Pixel running a patched GrapheneOS Dialer answers technician calls, records both call legs as separate channels, and a Ruby backend transcribes them through Whisper and files an AI summary against the caller. Squashed to a single commit for sharing. No credentials are included; secrets live outside the repo in /etc/helpdesk/env on the server or a gitignored .claude/env.local locally. See .claude/env.local.example for the shape. Start at README.md, then docs/architecture.md.
21 lines
675 B
Makefile
21 lines
675 B
Makefile
PORT ?= 4000
|
|
URL ?= http://127.0.0.1:$(PORT)
|
|
|
|
.PHONY: test serve sim
|
|
test: ## run the offline test suite (no network, no DB server)
|
|
ruby test/test_ledger.rb
|
|
ruby test/test_context_maintainer.rb
|
|
ruby test/test_domain.rb
|
|
ruby test/test_commands.rb
|
|
ruby test/test_summariser.rb
|
|
ruby test/test_pipeline.rb
|
|
ruby test/test_reporting.rb
|
|
ruby wiki/test_wiki_rag.rb
|
|
|
|
serve: ## run the webrick server on $(PORT)
|
|
PORT=$(PORT) ruby server.rb
|
|
|
|
sim: ## start the server, drive it end-to-end over HTTP, stop it
|
|
@PORT=$(PORT) ruby server.rb & echo $$! > .srv.pid; \
|
|
HELPDESK_URL=$(URL) ruby sim/simulator.rb; rc=$$?; \
|
|
kill `cat .srv.pid` 2>/dev/null; rm -f .srv.pid; exit $$rc
|