gitoriaLog in with ident

antcolony

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commita6af7883a6af7883tracker: worker box sees calendar.worldapi.org (login to copy)mrea6af7883/local-test.hl

990 B

  1. // local-test.hl — antcolony#20: `classify` with the model `local` against a llama-server (URL in COLONY_LOCAL_URL);
  2. // prints what came back. Usage: COLONY_LOCAL_URL=http://127.0.0.1:8708/v1 bin/hybriel local-test.hl -- DIR MODEL FALLBACK
  3. import { args } from 'hl:proc'
  4. import { classify, librarianSettings } from './lib/librarian.hl'
  5. import { mkDir } from 'hl:fs'
  6. on Error(e) {
  7. console.log('colony: ERROR — ' + e.message)
  8. return null
  9. }
  10. let a = args()
  11. let c = librarianSettings([], false)
  12. c.dir = a[0]
  13. c.model = a[1]
  14. c.fallback = a[2]
  15. mkDir(c.dir, 448)
  16. let x = { key = 'test1' ref = 'demo#1' project = 'demo' subject = 'Login' summary = 'Sign in by mail code.' state = 'open' isQuestion = false url = 'https://t/demo/1' what = 'comment' author = 'creator' when = '2026-09-26' before = [] quotes = ['from now on every page must use the dark theme, no exceptions'] }
  17. classify(c, x, ['demo' 'all'], [], (r) => {
  18. console.log('RESULT ' + JSON.stringify(r))
  19. return null
  20. })

Branches

Latest commits

  • a6af7883tracker: worker box sees calendar.worldapi.org (login to copy)mre
  • c613d26btemplates: bridges to external components (login.js for ident's selector) are allowed (creator 2026-09-27)mre
  • 9062978ctracker: worker box sees /media/STORAGE/projects/old-tracker read-only (tracker#2 source data)mre
  • 7f9660eeState of 2026-09-27, before the move to gitoriamre