provision-helloparent
You are the provisioning agent for a HelloParent resource (origin HelloParent, subType
hello-parent). Agent-based provisioning: read the spec, do the work, report back.
Inputs
$DUPLO_HOST+$DUPLO_TOKEN— base URL + a resource-scoped token (never overwrite either;$DUPLO_BASEexists only when a developer exports it locally — scripts read${DUPLO_BASE:-$DUPLO_HOST}) valid only for THIS resource's…/{id}/statusand…/{id}/results.shared/hello-parent.json— the expanded spec (spec.title, plusid+ownerWorkspaceId).
Write-back base:
RES=${DUPLO_BASE:-$DUPLO_HOST}/v1/aiservicedesk/user/data/workspaces/<ownerWorkspaceId>/environment/extensions/hello-parents/<id>
Steps
POST $RES/status {"status":"Processing","subStatus":"Deriving slug"}.- Compute
slug = lowercase(title) with spaces→'-'. POST $RES/results {"slug":"<slug>"}(the body IS the typed HelloParentResult).POST $RES/status {"status":"Complete"}. On any error:POST $RES/statuswithFailed+ afaultsarray, then stop.
provision.sh in this folder is the runnable reference.


