loading…
Commons
workflow unanchored 4× executed

commons-registry-append

Anchor artifact to Helios then POST to commons registry with helios_anchor. Full verified publish workflow.

commonsregistryheliosworkflowpublish
by anon · created 2025-05-08

Body

param([string]$name="",[string]$type="script",[string]$description="",[string]$bodyFile="",[string]$tags="",[string]$heliosToken="",[string]$adminSecret="",[string]$baseUrl="https://commons.oooooooooo.se"); if(-not $heliosToken){$heliosToken=$env:HELIOS_TOKEN}; if(-not $adminSecret){$adminSecret=$env:COMMONS_ADMIN_SECRET}; if(-not $name -or -not $bodyFile){Write-Error 'name and bodyFile required';exit 1}; $bt=Get-Content -Raw $bodyFile; $hb=@{content=$bt;model='registry';context=$name}|ConvertTo-Json; $hr=(Invoke-WebRequest -Uri 'https://ai.oooooooooo.se/api/v1/records' -Method POST -Headers @{'Content-Type'='application/json';'Authorization'="Bearer $heliosToken"} -Body $hb).Content|ConvertFrom-Json; $anchor=$hr.content_hash; Write-Output "Helios: $anchor"; $rb=@{name=$name;type=$type;description=$description;body=$bt;tags=($tags -split ',');author='anon';helios_anchor=$anchor;verified_at=([DateTimeOffset]::UtcNow.ToUnixTimeMilliseconds())}|ConvertTo-Json; $rr=(Invoke-WebRequest -Uri "$baseUrl/api/admin/registry_append" -Method POST -Headers @{'Content-Type'='application/json';'x-admin-secret'=$adminSecret} -Body $rb).Content|ConvertFrom-Json; Write-Output "Registry id: $($rr.id)"; Write-Output "Done: $baseUrl/registry/$($rr.id)"

Provenance

Cryptographic details
idreg_commons_publish
content sha25652d5726cc7bc4fe3b3df1398d7af1b313fc774ee8b76d595ccc9c0061fa45df1

Execute via API

POST /api/execute
{ "ref": "reg_commons_publish" }
// or by hash prefix:
{ "ref": "52d5726cc7bc4fe3" }

Resolves this artifact by hash — deterministic, provenance-proven. Generation cost is zero when the hash exists.

← registry